@nrwl/eslint-plugin-nx 14.2.0-beta.2 → 14.2.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [14.2.0-beta.2](https://github.com/nrwl/nx/compare/14.1.9...14.2.0-beta.2) (2022-05-31)
6
+ # [14.2.0-beta.5](https://github.com/nrwl/nx/compare/14.1.9...14.2.0-beta.5) (2022-06-02)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/eslint-plugin-nx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/eslint-plugin-nx",
3
- "version": "14.2.0-beta.2",
3
+ "version": "14.2.0-beta.5",
4
4
  "description": "ESLint Plugin for Nx",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,11 +32,11 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@nrwl/devkit": "14.2.0-beta.2",
36
- "@nrwl/workspace": "14.2.0-beta.2",
35
+ "@nrwl/devkit": "14.2.0-beta.5",
36
+ "@nrwl/workspace": "14.2.0-beta.5",
37
37
  "@typescript-eslint/experimental-utils": "~5.24.0",
38
38
  "chalk": "4.1.0",
39
39
  "confusing-browser-globals": "^1.0.9"
40
40
  },
41
- "gitHead": "e491c6f7382064fb1f17c0dcd2e642428ca822e4"
41
+ "gitHead": "914f0ce707740743d2ca4ff08685bd5c574405da"
42
42
  }
@@ -1,8 +1,3 @@
1
- declare const _default: {
2
- plugins: string[];
3
- extends: string[];
4
- rules: {};
5
- };
6
1
  /**
7
2
  * This configuration is intended to be applied to ALL .html files in Angular
8
3
  * projects within an Nx workspace, as well as extracted inline templates from
@@ -17,4 +12,9 @@ declare const _default: {
17
12
  * This configuration is intended to be combined with other configs from this
18
13
  * package.
19
14
  */
15
+ declare const _default: {
16
+ plugins: string[];
17
+ extends: string[];
18
+ rules: {};
19
+ };
20
20
  export default _default;
@@ -1,3 +1,14 @@
1
+ /**
2
+ * This configuration is intended to be applied to ALL .ts files in Angular
3
+ * projects within an Nx workspace.
4
+ *
5
+ * It should therefore NOT contain any rules or plugins which are related to
6
+ * Angular Templates, or more cross-cutting concerns which are not specific
7
+ * to Angular.
8
+ *
9
+ * This configuration is intended to be combined with other configs from this
10
+ * package.
11
+ */
1
12
  declare const _default: {
2
13
  env: {
3
14
  browser: boolean;
@@ -11,15 +22,4 @@ declare const _default: {
11
22
  };
12
23
  rules: {};
13
24
  };
14
- /**
15
- * This configuration is intended to be applied to ALL .ts files in Angular
16
- * projects within an Nx workspace.
17
- *
18
- * It should therefore NOT contain any rules or plugins which are related to
19
- * Angular Templates, or more cross-cutting concerns which are not specific
20
- * to Angular.
21
- *
22
- * This configuration is intended to be combined with other configs from this
23
- * package.
24
- */
25
25
  export default _default;
@@ -1,3 +1,19 @@
1
+ /**
2
+ * This configuration is intended to be applied to ALL .js and .jsx files
3
+ * within an Nx workspace.
4
+ *
5
+ * It should therefore NOT contain any rules or plugins which are specific
6
+ * to one ecosystem, such as React, Angular, Node etc.
7
+ *
8
+ * We use @typescript-eslint/parser rather than the built in JS parser
9
+ * because that is what Nx ESLint configs have always done and we don't
10
+ * want to change too much all at once.
11
+ *
12
+ * TODO: Evaluate switching to the built-in JS parser (espree) in Nx v11,
13
+ * it should yield a performance improvement but could introduce subtle
14
+ * breaking changes - we should also look to replace all the @typescript-eslint
15
+ * related plugins and rules below.
16
+ */
1
17
  declare const _default: {
2
18
  env: {
3
19
  browser: boolean;
@@ -23,20 +39,4 @@ declare const _default: {
23
39
  '@typescript-eslint/no-var-requires': string;
24
40
  };
25
41
  };
26
- /**
27
- * This configuration is intended to be applied to ALL .js and .jsx files
28
- * within an Nx workspace.
29
- *
30
- * It should therefore NOT contain any rules or plugins which are specific
31
- * to one ecosystem, such as React, Angular, Node etc.
32
- *
33
- * We use @typescript-eslint/parser rather than the built in JS parser
34
- * because that is what Nx ESLint configs have always done and we don't
35
- * want to change too much all at once.
36
- *
37
- * TODO: Evaluate switching to the built-in JS parser (espree) in Nx v11,
38
- * it should yield a performance improvement but could introduce subtle
39
- * breaking changes - we should also look to replace all the @typescript-eslint
40
- * related plugins and rules below.
41
- */
42
42
  export default _default;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Rule set originally adapted from:
3
+ * https://github.com/facebook/create-react-app/blob/567f36c9235f1e1fd4a76dc6d1ae00be754ca047/packages/eslint-config-react-app/index.js
4
+ */
1
5
  declare const _default: {
2
6
  plugins: string[];
3
7
  env: {
@@ -105,8 +109,4 @@ declare const _default: {
105
109
  'import/no-webpack-loader-syntax': string;
106
110
  };
107
111
  };
108
- /**
109
- * Rule set originally adapted from:
110
- * https://github.com/facebook/create-react-app/blob/567f36c9235f1e1fd4a76dc6d1ae00be754ca047/packages/eslint-config-react-app/index.js
111
- */
112
112
  export default _default;
@@ -1,3 +1,13 @@
1
+ /**
2
+ * This configuration is intended to be applied to ONLY files which contain JSX/TSX
3
+ * code.
4
+ *
5
+ * It should therefore NOT contain any rules or plugins which are generic
6
+ * to all file types within variants of React projects.
7
+ *
8
+ * This configuration is intended to be combined with other configs from this
9
+ * package.
10
+ */
1
11
  declare const _default: {
2
12
  settings: {
3
13
  react: {
@@ -58,14 +68,4 @@ declare const _default: {
58
68
  'jsx-a11y/scope': string;
59
69
  };
60
70
  };
61
- /**
62
- * This configuration is intended to be applied to ONLY files which contain JSX/TSX
63
- * code.
64
- *
65
- * It should therefore NOT contain any rules or plugins which are generic
66
- * to all file types within variants of React projects.
67
- *
68
- * This configuration is intended to be combined with other configs from this
69
- * package.
70
- */
71
71
  export default _default;
@@ -1,6 +1,3 @@
1
- declare const _default: {
2
- extends: string[];
3
- };
4
1
  /**
5
2
  * THIS IS A TEMPORARY CONFIG WHICH MATCHES THE CURRENT BEHAVIOR
6
3
  * of including all the rules for all file types within the ESLint
@@ -9,4 +6,7 @@ declare const _default: {
9
6
  * It will be refactored in a follow up PR to correctly apply rules
10
7
  * to the right file types via overrides.
11
8
  */
9
+ declare const _default: {
10
+ extends: string[];
11
+ };
12
12
  export default _default;
@@ -1,3 +1,13 @@
1
+ /**
2
+ * This configuration is intended to be applied to ONLY .ts and .tsx files within a
3
+ * React project in an Nx workspace.
4
+ *
5
+ * It should therefore NOT contain any rules or plugins which are generic
6
+ * to all variants of React projects, e.g. TypeScript vs JavaScript, .js vs .jsx etc
7
+ *
8
+ * This configuration is intended to be combined with other configs from this
9
+ * package.
10
+ */
1
11
  declare const _default: {
2
12
  rules: {
3
13
  'default-case': string;
@@ -28,14 +38,4 @@ declare const _default: {
28
38
  })[];
29
39
  };
30
40
  };
31
- /**
32
- * This configuration is intended to be applied to ONLY .ts and .tsx files within a
33
- * React project in an Nx workspace.
34
- *
35
- * It should therefore NOT contain any rules or plugins which are generic
36
- * to all variants of React projects, e.g. TypeScript vs JavaScript, .js vs .jsx etc
37
- *
38
- * This configuration is intended to be combined with other configs from this
39
- * package.
40
- */
41
41
  export default _default;
@@ -1,3 +1,10 @@
1
+ /**
2
+ * This configuration is intended to be applied to ALL .ts and .tsx files
3
+ * within an Nx workspace.
4
+ *
5
+ * It should therefore NOT contain any rules or plugins which are specific
6
+ * to one ecosystem, such as React, Angular, Node etc.
7
+ */
1
8
  declare const _default: {
2
9
  parser: string;
3
10
  parserOptions: {
@@ -14,11 +21,4 @@ declare const _default: {
14
21
  '@typescript-eslint/no-parameter-properties': string;
15
22
  };
16
23
  };
17
- /**
18
- * This configuration is intended to be applied to ALL .ts and .tsx files
19
- * within an Nx workspace.
20
- *
21
- * It should therefore NOT contain any rules or plugins which are specific
22
- * to one ecosystem, such as React, Angular, Node etc.
23
- */
24
24
  export default _default;