Skip to content

Commit

Permalink
feat(linter): rename @nx/eslint-plugin-nx to @nx/eslint-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Apr 19, 2023
1 parent 0fc3d44 commit 5251479
Show file tree
Hide file tree
Showing 88 changed files with 226 additions and 200 deletions.
12 changes: 6 additions & 6 deletions docs/generated/manifests/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -4405,26 +4405,26 @@
"disableCollapsible": false
},
{
"id": "eslint-plugin-nx",
"path": "/packages/eslint-plugin-nx",
"name": "eslint-plugin-nx",
"id": "eslint-plugin",
"path": "/packages/eslint-plugin",
"name": "eslint-plugin",
"children": [
{
"id": "documents",
"path": "/packages/eslint-plugin-nx/documents",
"path": "/packages/eslint-plugin/documents",
"name": "documents",
"children": [
{
"name": "Overview",
"path": "/packages/eslint-plugin-nx/documents/overview",
"path": "/packages/eslint-plugin/documents/overview",
"id": "overview",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "The `enforce-module-boundaries` rule",
"path": "/packages/eslint-plugin-nx/documents/enforce-module-boundaries",
"path": "/packages/eslint-plugin/documents/enforce-module-boundaries",
"id": "enforce-module-boundaries",
"isExternal": false,
"children": [],
Expand Down
26 changes: 13 additions & 13 deletions docs/generated/manifests/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,40 +645,40 @@
},
"path": "/packages/esbuild"
},
"eslint-plugin-nx": {
"eslint-plugin": {
"githubRoot": "https://github.com/nrwl/nx/blob/master",
"name": "eslint-plugin-nx",
"packageName": "@nrwl/eslint-plugin-nx",
"name": "eslint-plugin",
"packageName": "@nrwl/eslint-plugin",
"description": "The eslint-plugin-nx package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
"documents": {
"/packages/eslint-plugin-nx/documents/overview": {
"/packages/eslint-plugin/documents/overview": {
"id": "overview",
"name": "Overview",
"description": "The eslint-plugin-nx package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
"file": "generated/packages/eslint-plugin-nx/documents/overview",
"file": "generated/packages/eslint-plugin/documents/overview",
"itemList": [],
"isExternal": false,
"path": "/packages/eslint-plugin-nx/documents/overview",
"path": "/packages/eslint-plugin/documents/overview",
"tags": [],
"originalFilePath": "shared/packages/linter/eslint-plugin-nx"
"originalFilePath": "shared/packages/linter/eslint-plugin"
},
"/packages/eslint-plugin-nx/documents/enforce-module-boundaries": {
"/packages/eslint-plugin/documents/enforce-module-boundaries": {
"id": "enforce-module-boundaries",
"name": "The `enforce-module-boundaries` rule",
"description": "The eslint-plugin-nx package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
"file": "generated/packages/eslint-plugin-nx/documents/enforce-module-boundaries",
"file": "generated/packages/eslint-plugin/documents/enforce-module-boundaries",
"itemList": [],
"isExternal": false,
"path": "/packages/eslint-plugin-nx/documents/enforce-module-boundaries",
"path": "/packages/eslint-plugin/documents/enforce-module-boundaries",
"tags": [],
"originalFilePath": "shared/packages/linter/enforce-module-boundaries"
}
},
"root": "/packages/eslint-plugin-nx",
"source": "/packages/eslint-plugin-nx/src",
"root": "/packages/eslint-plugin",
"source": "/packages/eslint-plugin/src",
"executors": {},
"generators": {},
"path": "/packages/eslint-plugin-nx"
"path": "/packages/eslint-plugin"
},
"expo": {
"githubRoot": "https://github.com/nrwl/nx/blob/master",
Expand Down
18 changes: 9 additions & 9 deletions docs/generated/packages-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,32 +645,32 @@
"id": "overview",
"name": "Overview",
"description": "The eslint-plugin-nx package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
"file": "generated/packages/eslint-plugin-nx/documents/overview",
"file": "generated/packages/eslint-plugin/documents/overview",
"itemList": [],
"isExternal": false,
"path": "eslint-plugin-nx/documents/overview",
"path": "eslint-plugin/documents/overview",
"tags": [],
"originalFilePath": "shared/packages/linter/eslint-plugin-nx"
"originalFilePath": "shared/packages/linter/eslint-plugin"
},
{
"id": "enforce-module-boundaries",
"name": "The `enforce-module-boundaries` rule",
"description": "The eslint-plugin-nx package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
"file": "generated/packages/eslint-plugin-nx/documents/enforce-module-boundaries",
"file": "generated/packages/eslint-plugin/documents/enforce-module-boundaries",
"itemList": [],
"isExternal": false,
"path": "eslint-plugin-nx/documents/enforce-module-boundaries",
"path": "eslint-plugin/documents/enforce-module-boundaries",
"tags": [],
"originalFilePath": "shared/packages/linter/enforce-module-boundaries"
}
],
"executors": [],
"generators": [],
"githubRoot": "https://github.com/nrwl/nx/blob/master",
"name": "eslint-plugin-nx",
"packageName": "@nrwl/eslint-plugin-nx",
"root": "/packages/eslint-plugin-nx",
"source": "/packages/eslint-plugin-nx/src"
"name": "eslint-plugin",
"packageName": "@nrwl/eslint-plugin",
"root": "/packages/eslint-plugin",
"source": "/packages/eslint-plugin/src"
},
{
"description": "The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ You can also use `@nrwl/nx/react` which includes all three `@nrwl/nx/react-*` pl

### Enforce Module Boundaries rule

The `enforce-module-boundaries` ESLint rule enables you to define strict rules for accessing resources between different projects in the repository. Enforcing strict boundaries helps keep prevent unplanned cross-dependencies. Read more about it on a [dedicated page](/packages/eslint-plugin-nx/documents/enforce-module-boundaries)
The `enforce-module-boundaries` ESLint rule enables you to define strict rules for accessing resources between different projects in the repository. Enforcing strict boundaries helps keep prevent unplanned cross-dependencies. Read more about it on a [dedicated page](/packages/eslint-plugin/documents/enforce-module-boundaries)
2 changes: 1 addition & 1 deletion docs/generated/packages/linter/documents/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ nx lint my-lib

## ESLint plugin

Read about our dedicated ESLint plugin - [eslint-plugin-nx](/packages/eslint-plugin-nx/documents/overview).
Read about our dedicated ESLint plugin - [eslint-plugin-nx](/packages/eslint-plugin/documents/overview).
10 changes: 5 additions & 5 deletions docs/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -1936,20 +1936,20 @@
]
},
{
"name": "eslint-plugin-nx",
"id": "eslint-plugin-nx",
"name": "eslint-plugin",
"id": "eslint-plugin",
"description": "ESLint plugin package.",
"itemList": [
{
"id": "overview",
"name": "Overview",
"path": "/packages/eslint-plugin-nx",
"file": "shared/packages/linter/eslint-plugin-nx"
"path": "/packages/eslint-plugin",
"file": "shared/packages/linter/eslint-plugin"
},
{
"id": "enforce-module-boundaries",
"name": "The `enforce-module-boundaries` rule",
"path": "/packages/eslint-plugin-nx",
"path": "/packages/eslint-plugin",
"file": "shared/packages/linter/enforce-module-boundaries"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ You can also use `@nrwl/nx/react` which includes all three `@nrwl/nx/react-*` pl

### Enforce Module Boundaries rule

The `enforce-module-boundaries` ESLint rule enables you to define strict rules for accessing resources between different projects in the repository. Enforcing strict boundaries helps keep prevent unplanned cross-dependencies. Read more about it on a [dedicated page](/packages/eslint-plugin-nx/documents/enforce-module-boundaries)
The `enforce-module-boundaries` ESLint rule enables you to define strict rules for accessing resources between different projects in the repository. Enforcing strict boundaries helps keep prevent unplanned cross-dependencies. Read more about it on a [dedicated page](/packages/eslint-plugin/documents/enforce-module-boundaries)
2 changes: 1 addition & 1 deletion docs/shared/packages/linter/linter-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ nx lint my-lib

## ESLint plugin

Read about our dedicated ESLint plugin - [eslint-plugin-nx](/packages/eslint-plugin-nx/documents/overview).
Read about our dedicated ESLint plugin - [eslint-plugin-nx](/packages/eslint-plugin/documents/overview).
7 changes: 6 additions & 1 deletion nx-dev/nx-dev/redirect-rules.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ const packagesIndexes = {
'/cypress': '/packages/cypress',
'/detox': '/packages/detox',
'/esbuild': '/packages/esbuild',
'/eslint-plugin-nx': '/packages/eslint',
'/eslint-plugin-nx': '/packages/eslint-plugin-nx',
'/expo': '/packages/expo',
'/express': '/packages/express',
'/jest': '/packages/jest',
Expand Down Expand Up @@ -514,6 +514,11 @@ const packagesDocuments = {
'/packages/add-nx-to-monorepo': '/packages/nx/documents/init',
'/packages/cra-to-nx': '/packages/nx/documents/init',
'/packages/make-angular-cli-faster': '/packages/nx/documents/init',
'/packages/eslint-plugin-nx': '/packages/eslint-plugin',
'/packages/eslint-plugin-nx/documents/enforce-module-boundaries':
'/packages/eslint-plugin/documents/enforce-module-boundaries',
'/packages/eslint-plugin-nx/documents/overview':
'/packages/eslint-plugin/documents/overview',
};

/**
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-references/src/lib/icons-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const iconsMap: Record<string, string> = {
detox: '/images/icons/react.svg',
devkit: '/images/icons/nx.svg',
esbuild: '/images/icons/esbuild.svg',
'eslint-plugin-nx': '/images/icons/eslint.svg',
'eslint-plugin': '/images/icons/eslint.svg',
expo: '/images/icons/expo.svg',
express: '/images/icons/express.svg',
jest: '/images/icons/jest.svg',
Expand Down
2 changes: 1 addition & 1 deletion packages-legacy/eslint-plugin-nx/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## @nrwl/eslint-plugin-nx has been deprecated!

@nrwl/eslint-plugin-nx has been deprecated in favor of [@nx/eslint-plugin-nx](https://www.npmjs.com/package/@nx/eslint-plugin-nx). Please use that instead.
@nrwl/eslint-plugin-nx has been deprecated in favor of [@nx/eslint-plugin](https://www.npmjs.com/package/@nx/eslint-plugin). Please use that instead.

@nrwl/eslint-plugin-nx will no longer be published in Nx v17.

Expand Down
2 changes: 1 addition & 1 deletion packages-legacy/eslint-plugin-nx/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from '@nx/eslint-plugin-nx';
export * from '@nx/eslint-plugin';
2 changes: 1 addition & 1 deletion packages-legacy/eslint-plugin-nx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://nx.dev",
"dependencies": {
"@nx/eslint-plugin-nx": "file:../../packages/eslint-plugin-nx"
"@nx/eslint-plugin": "file:../../packages/eslint-plugin"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions packages-legacy/linter/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@
]
}
}
},
"implicitDependencies": ["eslint-plugin-nx"]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`addLinting generator should correctly generate the .eslintrc.json file
"overrides": [
{
"extends": [
"plugin:@nx/nx/angular",
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates",
],
"files": [
Expand All @@ -38,7 +38,7 @@ exports[`addLinting generator should correctly generate the .eslintrc.json file
},
{
"extends": [
"plugin:@nx/nx/angular-template",
"plugin:@nx/angular-template",
],
"files": [
"*.html",
Expand All @@ -60,7 +60,7 @@ exports[`addLinting generator support angular v14 should correctly generate the
"overrides": [
{
"extends": [
"plugin:@nx/nx/angular",
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates",
],
"files": [
Expand All @@ -87,7 +87,7 @@ exports[`addLinting generator support angular v14 should correctly generate the
},
{
"extends": [
"plugin:@nx/nx/angular-template",
"plugin:@nx/angular-template",
],
"files": [
"*.html",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const extendAngularEslintJson = (
files: ['*.ts'],
extends: [
...(json.overrides[0].extends || []),
'plugin:@nx/nx/angular',
'plugin:@nx/angular',
'plugin:@angular-eslint/template/process-inline-templates',
],
rules: {
Expand All @@ -42,7 +42,7 @@ export const extendAngularEslintJson = (
},
{
files: ['*.html'],
extends: ['plugin:@nx/nx/angular-template'],
extends: ['plugin:@nx/angular-template'],
/**
* Having an empty rules object present makes it more obvious to the user where they would
* extend things from if they needed to
Expand Down Expand Up @@ -75,7 +75,7 @@ export function createEsLintConfiguration(
{
files: ['*.ts'],
extends: [
'plugin:@nx/nx/angular',
'plugin:@nx/angular',
'plugin:@angular-eslint/template/process-inline-templates',
],
/**
Expand Down Expand Up @@ -117,7 +117,7 @@ export function createEsLintConfiguration(
},
{
files: ['*.html'],
extends: ['plugin:@nx/nx/angular-template'],
extends: ['plugin:@nx/angular-template'],
/**
* Having an empty rules object present makes it more obvious to the user where they would
* extend things from if they needed to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ describe('app', () => {
"overrides": [
{
"extends": [
"plugin:@nx/nx/angular",
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates",
],
"files": [
Expand All @@ -533,7 +533,7 @@ describe('app', () => {
},
{
"extends": [
"plugin:@nx/nx/angular-template",
"plugin:@nx/angular-template",
],
"files": [
"*.html",
Expand Down
Loading

0 comments on commit 5251479

Please sign in to comment.