@nrwl/eslint-plugin-nx 15.9.2 → 16.0.0-beta.1
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/index.d.ts +1 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/package.json +8 -18
- package/README.md +0 -63
- package/src/configs/angular-template.d.ts +0 -20
- package/src/configs/angular-template.js +0 -22
- package/src/configs/angular-template.js.map +0 -1
- package/src/configs/angular.d.ts +0 -25
- package/src/configs/angular.js +0 -43
- package/src/configs/angular.js.map +0 -1
- package/src/configs/javascript.d.ts +0 -42
- package/src/configs/javascript.js +0 -51
- package/src/configs/javascript.js.map +0 -1
- package/src/configs/react-base.d.ts +0 -112
- package/src/configs/react-base.js +0 -141
- package/src/configs/react-base.js.map +0 -1
- package/src/configs/react-jsx.d.ts +0 -71
- package/src/configs/react-jsx.js +0 -65
- package/src/configs/react-jsx.js.map +0 -1
- package/src/configs/react-tmp.d.ts +0 -12
- package/src/configs/react-tmp.js +0 -18
- package/src/configs/react-tmp.js.map +0 -1
- package/src/configs/react-typescript.d.ts +0 -41
- package/src/configs/react-typescript.js +0 -56
- package/src/configs/react-typescript.js.map +0 -1
- package/src/configs/typescript.d.ts +0 -24
- package/src/configs/typescript.js +0 -34
- package/src/configs/typescript.js.map +0 -1
- package/src/constants.d.ts +0 -12
- package/src/constants.js +0 -18
- package/src/constants.js.map +0 -1
- package/src/index.d.ts +0 -1
- package/src/index.js +0 -28
- package/src/index.js.map +0 -1
- package/src/resolve-workspace-rules.d.ts +0 -4
- package/src/resolve-workspace-rules.js +0 -36
- package/src/resolve-workspace-rules.js.map +0 -1
- package/src/rules/enforce-module-boundaries.d.ts +0 -16
- package/src/rules/enforce-module-boundaries.js +0 -428
- package/src/rules/enforce-module-boundaries.js.map +0 -1
- package/src/rules/nx-plugin-checks.d.ts +0 -21
- package/src/rules/nx-plugin-checks.js +0 -358
- package/src/rules/nx-plugin-checks.js.map +0 -1
- package/src/utils/ast-utils.d.ts +0 -12
- package/src/utils/ast-utils.js +0 -168
- package/src/utils/ast-utils.js.map +0 -1
- package/src/utils/config-utils.d.ts +0 -6
- package/src/utils/config-utils.js +0 -21
- package/src/utils/config-utils.js.map +0 -1
- package/src/utils/create-eslint-rule.d.ts +0 -2
- package/src/utils/create-eslint-rule.js +0 -6
- package/src/utils/create-eslint-rule.js.map +0 -1
- package/src/utils/graph-utils.d.ts +0 -5
- package/src/utils/graph-utils.js +0 -117
- package/src/utils/graph-utils.js.map +0 -1
- package/src/utils/project-graph-utils.d.ts +0 -7
- package/src/utils/project-graph-utils.js +0 -46
- package/src/utils/project-graph-utils.js.map +0 -1
- package/src/utils/runtime-lint-utils.d.ts +0 -85
- package/src/utils/runtime-lint-utils.js +0 -329
- package/src/utils/runtime-lint-utils.js.map +0 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@nx/eslint-plugin-nx';
|
package/index.js
ADDED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages-legacy/eslint-plugin-nx/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/eslint-plugin-nx",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"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.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/nrwl/nx.git",
|
|
9
|
-
"directory": "packages/eslint-plugin-nx"
|
|
9
|
+
"directory": "packages-legacy/eslint-plugin-nx"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"Monorepo",
|
|
@@ -23,25 +23,15 @@
|
|
|
23
23
|
"url": "https://github.com/nrwl/nx/issues"
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://nx.dev",
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"@typescript-eslint/parser": "^5.29.0",
|
|
28
|
-
"eslint-config-prettier": "^8.1.0"
|
|
29
|
-
},
|
|
30
|
-
"peerDependenciesMeta": {
|
|
31
|
-
"eslint-config-prettier": {
|
|
32
|
-
"optional": true
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
26
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@typescript-eslint/utils": "^5.36.1",
|
|
38
|
-
"chalk": "^4.1.0",
|
|
39
|
-
"confusing-browser-globals": "^1.0.9",
|
|
40
|
-
"semver": "7.3.4"
|
|
27
|
+
"@nx/eslint-plugin-nx": "16.0.0-beta.1"
|
|
41
28
|
},
|
|
42
29
|
"publishConfig": {
|
|
43
30
|
"access": "public"
|
|
44
31
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
32
|
+
"nx-migrations": {
|
|
33
|
+
"migrations": "@nx/eslint-plugin-nx/migrations.json"
|
|
34
|
+
},
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
|
+
"gitHead": "abf534c265f5aa3aac146e55bb31de598ea281d7"
|
|
47
37
|
}
|
package/README.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
|
|
2
|
-
|
|
3
|
-
<div style="text-align: center;">
|
|
4
|
-
|
|
5
|
-
[](https://circleci.com/gh/nrwl/nx)
|
|
6
|
-
[]()
|
|
7
|
-
[](https://www.npmjs.com/@nrwl/workspace)
|
|
8
|
-
[]()
|
|
9
|
-
[](http://commitizen.github.io/cz-cli/)
|
|
10
|
-
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
11
|
-
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
12
|
-
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<hr>
|
|
17
|
-
|
|
18
|
-
# Nx: Smart, Fast and Extensible Build System
|
|
19
|
-
|
|
20
|
-
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
21
|
-
|
|
22
|
-
This package is an ESLint plugin for Nx.
|
|
23
|
-
|
|
24
|
-
## Getting Started
|
|
25
|
-
|
|
26
|
-
### Creating an Nx Workspace
|
|
27
|
-
|
|
28
|
-
**Using `npx`**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npx create-nx-workspace
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Using `npm init`**
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm init nx-workspace
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Using `yarn create`**
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
yarn create nx-workspace
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Adding Nx to an Existing Repository
|
|
47
|
-
|
|
48
|
-
Run:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npx nx@latest init
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Documentation & Resources
|
|
55
|
-
|
|
56
|
-
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
|
57
|
-
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
|
58
|
-
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
|
59
|
-
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
60
|
-
|
|
61
|
-
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
62
|
-
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
63
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This configuration is intended to be applied to ALL .html files in Angular
|
|
3
|
-
* projects within an Nx workspace, as well as extracted inline templates from
|
|
4
|
-
* .component.ts files (or similar).
|
|
5
|
-
*
|
|
6
|
-
* It should therefore NOT contain any rules or plugins which are related to
|
|
7
|
-
* Angular source code.
|
|
8
|
-
*
|
|
9
|
-
* NOTE: The processor to extract the inline templates is applied in users'
|
|
10
|
-
* configs by the relevant schematic.
|
|
11
|
-
*
|
|
12
|
-
* This configuration is intended to be combined with other configs from this
|
|
13
|
-
* package.
|
|
14
|
-
*/
|
|
15
|
-
declare const _default: {
|
|
16
|
-
plugins: string[];
|
|
17
|
-
extends: string[];
|
|
18
|
-
rules: {};
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/**
|
|
4
|
-
* This configuration is intended to be applied to ALL .html files in Angular
|
|
5
|
-
* projects within an Nx workspace, as well as extracted inline templates from
|
|
6
|
-
* .component.ts files (or similar).
|
|
7
|
-
*
|
|
8
|
-
* It should therefore NOT contain any rules or plugins which are related to
|
|
9
|
-
* Angular source code.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: The processor to extract the inline templates is applied in users'
|
|
12
|
-
* configs by the relevant schematic.
|
|
13
|
-
*
|
|
14
|
-
* This configuration is intended to be combined with other configs from this
|
|
15
|
-
* package.
|
|
16
|
-
*/
|
|
17
|
-
exports.default = {
|
|
18
|
-
plugins: ['@angular-eslint/template'],
|
|
19
|
-
extends: ['plugin:@angular-eslint/template/recommended'],
|
|
20
|
-
rules: {},
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=angular-template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"angular-template.js","sourceRoot":"","sources":["../../../../../packages/eslint-plugin-nx/src/configs/angular-template.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;GAaG;AACH,kBAAe;IACb,OAAO,EAAE,CAAC,0BAA0B,CAAC;IACrC,OAAO,EAAE,CAAC,6CAA6C,CAAC;IACxD,KAAK,EAAE,EAAE;CACV,CAAC"}
|
package/src/configs/angular.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
*/
|
|
12
|
-
declare const _default: {
|
|
13
|
-
env: {
|
|
14
|
-
browser: boolean;
|
|
15
|
-
es6: boolean;
|
|
16
|
-
node: boolean;
|
|
17
|
-
};
|
|
18
|
-
plugins: string[];
|
|
19
|
-
extends: string[];
|
|
20
|
-
parserOptions: {
|
|
21
|
-
project: any[];
|
|
22
|
-
};
|
|
23
|
-
rules: {};
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
package/src/configs/angular.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
let angularEslintPlugin;
|
|
5
|
-
try {
|
|
6
|
-
angularEslintPlugin = require('@angular-eslint/eslint-plugin');
|
|
7
|
-
}
|
|
8
|
-
catch (_b) { }
|
|
9
|
-
/**
|
|
10
|
-
* This configuration is intended to be applied to ALL .ts files in Angular
|
|
11
|
-
* projects within an Nx workspace.
|
|
12
|
-
*
|
|
13
|
-
* It should therefore NOT contain any rules or plugins which are related to
|
|
14
|
-
* Angular Templates, or more cross-cutting concerns which are not specific
|
|
15
|
-
* to Angular.
|
|
16
|
-
*
|
|
17
|
-
* This configuration is intended to be combined with other configs from this
|
|
18
|
-
* package.
|
|
19
|
-
*/
|
|
20
|
-
exports.default = {
|
|
21
|
-
env: {
|
|
22
|
-
browser: true,
|
|
23
|
-
es6: true,
|
|
24
|
-
node: true,
|
|
25
|
-
},
|
|
26
|
-
plugins: ['@angular-eslint'],
|
|
27
|
-
extends: [
|
|
28
|
-
'plugin:@angular-eslint/recommended',
|
|
29
|
-
/**
|
|
30
|
-
* TODO: Consider dropping this extends and explicitly carrying over rules we care about
|
|
31
|
-
* into our typescript preset in v13
|
|
32
|
-
*/
|
|
33
|
-
...(((_a = angularEslintPlugin === null || angularEslintPlugin === void 0 ? void 0 : angularEslintPlugin.configs) === null || _a === void 0 ? void 0 : _a['recommended--extra'])
|
|
34
|
-
? ['plugin:@angular-eslint/recommended--extra']
|
|
35
|
-
: []),
|
|
36
|
-
],
|
|
37
|
-
parserOptions: {
|
|
38
|
-
// Unset the default value for parserOptions.project that is found in earlier versions of @angular-eslint
|
|
39
|
-
project: [],
|
|
40
|
-
},
|
|
41
|
-
rules: {},
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=angular.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"angular.js","sourceRoot":"","sources":["../../../../../packages/eslint-plugin-nx/src/configs/angular.ts"],"names":[],"mappings":";;;AAEA,IAAI,mBAA+C,CAAC;AACpD,IAAI;IACF,mBAAmB,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAChE;AAAC,WAAM,GAAE;AAEV;;;;;;;;;;GAUG;AACH,kBAAe;IACb,GAAG,EAAE;QACH,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,IAAI;KACX;IACD,OAAO,EAAE,CAAC,iBAAiB,CAAC;IAC5B,OAAO,EAAE;QACP,oCAAoC;QACpC;;;WAGG;QACH,GAAG,CAAC,CAAA,MAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,OAAO,0CAAG,oBAAoB,CAAC;YACtD,CAAC,CAAC,CAAC,2CAA2C,CAAC;YAC/C,CAAC,CAAC,EAAE,CAAC;KACR;IACD,aAAa,EAAE;QACb,yGAAyG;QACzG,OAAO,EAAE,EAAE;KACZ;IACD,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
*/
|
|
17
|
-
declare const _default: {
|
|
18
|
-
env: {
|
|
19
|
-
browser: boolean;
|
|
20
|
-
node: boolean;
|
|
21
|
-
};
|
|
22
|
-
parser: string;
|
|
23
|
-
parserOptions: {
|
|
24
|
-
ecmaVersion: number;
|
|
25
|
-
sourceType: string;
|
|
26
|
-
};
|
|
27
|
-
plugins: string[];
|
|
28
|
-
extends: string[];
|
|
29
|
-
rules: {
|
|
30
|
-
'@typescript-eslint/explicit-member-accessibility': string;
|
|
31
|
-
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
32
|
-
'@typescript-eslint/explicit-function-return-type': string;
|
|
33
|
-
'@typescript-eslint/no-parameter-properties': string;
|
|
34
|
-
/**
|
|
35
|
-
* Until ESM usage in Node matures, using require in e.g. JS config files
|
|
36
|
-
* is by far the more common thing to do, so disabling this to avoid users
|
|
37
|
-
* having to frequently use "eslint-disable-next-line" in their configs.
|
|
38
|
-
*/
|
|
39
|
-
'@typescript-eslint/no-var-requires': string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export default _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const config_utils_1 = require("../utils/config-utils");
|
|
4
|
-
const isPrettierAvailable = (0, config_utils_1.packageExists)('prettier') && (0, config_utils_1.packageExists)('eslint-config-prettier');
|
|
5
|
-
/**
|
|
6
|
-
* This configuration is intended to be applied to ALL .js and .jsx files
|
|
7
|
-
* within an Nx workspace.
|
|
8
|
-
*
|
|
9
|
-
* It should therefore NOT contain any rules or plugins which are specific
|
|
10
|
-
* to one ecosystem, such as React, Angular, Node etc.
|
|
11
|
-
*
|
|
12
|
-
* We use @typescript-eslint/parser rather than the built in JS parser
|
|
13
|
-
* because that is what Nx ESLint configs have always done and we don't
|
|
14
|
-
* want to change too much all at once.
|
|
15
|
-
*
|
|
16
|
-
* TODO: Evaluate switching to the built-in JS parser (espree) in Nx v11,
|
|
17
|
-
* it should yield a performance improvement but could introduce subtle
|
|
18
|
-
* breaking changes - we should also look to replace all the @typescript-eslint
|
|
19
|
-
* related plugins and rules below.
|
|
20
|
-
*/
|
|
21
|
-
exports.default = {
|
|
22
|
-
env: {
|
|
23
|
-
browser: true,
|
|
24
|
-
node: true,
|
|
25
|
-
},
|
|
26
|
-
parser: '@typescript-eslint/parser',
|
|
27
|
-
parserOptions: {
|
|
28
|
-
ecmaVersion: 2020,
|
|
29
|
-
sourceType: 'module',
|
|
30
|
-
},
|
|
31
|
-
plugins: ['@typescript-eslint'],
|
|
32
|
-
extends: [
|
|
33
|
-
'eslint:recommended',
|
|
34
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
35
|
-
'plugin:@typescript-eslint/recommended',
|
|
36
|
-
...(isPrettierAvailable ? ['prettier'] : []),
|
|
37
|
-
],
|
|
38
|
-
rules: {
|
|
39
|
-
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
40
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
41
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
42
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
43
|
-
/**
|
|
44
|
-
* Until ESM usage in Node matures, using require in e.g. JS config files
|
|
45
|
-
* is by far the more common thing to do, so disabling this to avoid users
|
|
46
|
-
* having to frequently use "eslint-disable-next-line" in their configs.
|
|
47
|
-
*/
|
|
48
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=javascript.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"javascript.js","sourceRoot":"","sources":["../../../../../packages/eslint-plugin-nx/src/configs/javascript.ts"],"names":[],"mappings":";;AAAA,wDAAsD;AAEtD,MAAM,mBAAmB,GACvB,IAAA,4BAAa,EAAC,UAAU,CAAC,IAAI,IAAA,4BAAa,EAAC,wBAAwB,CAAC,CAAC;AAEvE;;;;;;;;;;;;;;;GAeG;AACH,kBAAe;IACb,GAAG,EAAE;QACH,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,IAAI;KACX;IACD,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;KACrB;IACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;IAC/B,OAAO,EAAE;QACP,oBAAoB;QACpB,8CAA8C;QAC9C,uCAAuC;QACvC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7C;IACD,KAAK,EAAE;QACL,kDAAkD,EAAE,KAAK;QACzD,mDAAmD,EAAE,KAAK;QAC1D,kDAAkD,EAAE,KAAK;QACzD,4CAA4C,EAAE,KAAK;QACnD;;;;WAIG;QACH,oCAAoC,EAAE,KAAK;KAC5C;CACF,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
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
|
-
*/
|
|
5
|
-
declare const _default: {
|
|
6
|
-
plugins: string[];
|
|
7
|
-
env: {
|
|
8
|
-
browser: boolean;
|
|
9
|
-
commonjs: boolean;
|
|
10
|
-
es6: boolean;
|
|
11
|
-
jest: boolean;
|
|
12
|
-
node: boolean;
|
|
13
|
-
};
|
|
14
|
-
rules: {
|
|
15
|
-
/**
|
|
16
|
-
* Standard ESLint rule configurations
|
|
17
|
-
* https://eslint.org/docs/rules
|
|
18
|
-
*/
|
|
19
|
-
'array-callback-return': string;
|
|
20
|
-
'dot-location': string[];
|
|
21
|
-
eqeqeq: string[];
|
|
22
|
-
'new-parens': string;
|
|
23
|
-
'no-caller': string;
|
|
24
|
-
'no-cond-assign': string[];
|
|
25
|
-
'no-const-assign': string;
|
|
26
|
-
'no-control-regex': string;
|
|
27
|
-
'no-delete-var': string;
|
|
28
|
-
'no-dupe-args': string;
|
|
29
|
-
'no-dupe-keys': string;
|
|
30
|
-
'no-duplicate-case': string;
|
|
31
|
-
'no-empty-character-class': string;
|
|
32
|
-
'no-empty-pattern': string;
|
|
33
|
-
'no-eval': string;
|
|
34
|
-
'no-ex-assign': string;
|
|
35
|
-
'no-extend-native': string;
|
|
36
|
-
'no-extra-bind': string;
|
|
37
|
-
'no-extra-label': string;
|
|
38
|
-
'no-fallthrough': string;
|
|
39
|
-
'no-func-assign': string;
|
|
40
|
-
'no-implied-eval': string;
|
|
41
|
-
'no-invalid-regexp': string;
|
|
42
|
-
'no-iterator': string;
|
|
43
|
-
'no-label-var': string;
|
|
44
|
-
'no-labels': (string | {
|
|
45
|
-
allowLoop: boolean;
|
|
46
|
-
allowSwitch: boolean;
|
|
47
|
-
})[];
|
|
48
|
-
'no-lone-blocks': string;
|
|
49
|
-
'no-loop-func': string;
|
|
50
|
-
'no-mixed-operators': (string | {
|
|
51
|
-
groups: string[][];
|
|
52
|
-
allowSamePrecedence: boolean;
|
|
53
|
-
})[];
|
|
54
|
-
'no-multi-str': string;
|
|
55
|
-
'no-native-reassign': string;
|
|
56
|
-
'no-negated-in-lhs': string;
|
|
57
|
-
'no-new-func': string;
|
|
58
|
-
'no-new-object': string;
|
|
59
|
-
'no-new-symbol': string;
|
|
60
|
-
'no-new-wrappers': string;
|
|
61
|
-
'no-obj-calls': string;
|
|
62
|
-
'no-octal': string;
|
|
63
|
-
'no-octal-escape': string;
|
|
64
|
-
'no-redeclare': string;
|
|
65
|
-
'no-regex-spaces': string;
|
|
66
|
-
'no-restricted-syntax': string[];
|
|
67
|
-
'no-script-url': string;
|
|
68
|
-
'no-self-assign': string;
|
|
69
|
-
'no-self-compare': string;
|
|
70
|
-
'no-sequences': string;
|
|
71
|
-
'no-shadow-restricted-names': string;
|
|
72
|
-
'no-sparse-arrays': string;
|
|
73
|
-
'no-template-curly-in-string': string;
|
|
74
|
-
'no-this-before-super': string;
|
|
75
|
-
'no-throw-literal': string;
|
|
76
|
-
'no-restricted-globals': string[];
|
|
77
|
-
'no-unexpected-multiline': string;
|
|
78
|
-
'no-unreachable': string;
|
|
79
|
-
'no-unused-expressions': string;
|
|
80
|
-
'no-unused-labels': string;
|
|
81
|
-
'no-useless-computed-key': string;
|
|
82
|
-
'no-useless-concat': string;
|
|
83
|
-
'no-useless-escape': string;
|
|
84
|
-
'no-useless-rename': (string | {
|
|
85
|
-
ignoreDestructuring: boolean;
|
|
86
|
-
ignoreImport: boolean;
|
|
87
|
-
ignoreExport: boolean;
|
|
88
|
-
})[];
|
|
89
|
-
'no-with': string;
|
|
90
|
-
'no-whitespace-before-property': string;
|
|
91
|
-
'require-yield': string;
|
|
92
|
-
'rest-spread-spacing': string[];
|
|
93
|
-
strict: string[];
|
|
94
|
-
'unicode-bom': string[];
|
|
95
|
-
'use-isnan': string;
|
|
96
|
-
'valid-typeof': string;
|
|
97
|
-
'no-restricted-properties': (string | {
|
|
98
|
-
object: string;
|
|
99
|
-
property: string;
|
|
100
|
-
message: string;
|
|
101
|
-
})[];
|
|
102
|
-
'getter-return': string;
|
|
103
|
-
/**
|
|
104
|
-
* Import rule configurations
|
|
105
|
-
* https://github.com/benmosher/eslint-plugin-import
|
|
106
|
-
*/
|
|
107
|
-
'import/first': string;
|
|
108
|
-
'import/no-amd': string;
|
|
109
|
-
'import/no-webpack-loader-syntax': string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
export default _default;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/**
|
|
4
|
-
* This configuration is intended to be applied to ALL files within a React
|
|
5
|
-
* project in an Nx workspace.
|
|
6
|
-
*
|
|
7
|
-
* It should therefore NOT contain any rules or plugins which are specific
|
|
8
|
-
* to one particular variant, e.g. TypeScript vs JavaScript, .js vs .jsx etc
|
|
9
|
-
*
|
|
10
|
-
* This configuration is intended to be combined with other configs from this
|
|
11
|
-
* package.
|
|
12
|
-
*/
|
|
13
|
-
const restrictedGlobals = require("confusing-browser-globals");
|
|
14
|
-
/**
|
|
15
|
-
* Rule set originally adapted from:
|
|
16
|
-
* https://github.com/facebook/create-react-app/blob/567f36c9235f1e1fd4a76dc6d1ae00be754ca047/packages/eslint-config-react-app/index.js
|
|
17
|
-
*/
|
|
18
|
-
exports.default = {
|
|
19
|
-
plugins: ['import'],
|
|
20
|
-
env: {
|
|
21
|
-
browser: true,
|
|
22
|
-
commonjs: true,
|
|
23
|
-
es6: true,
|
|
24
|
-
jest: true,
|
|
25
|
-
node: true,
|
|
26
|
-
},
|
|
27
|
-
rules: {
|
|
28
|
-
/**
|
|
29
|
-
* Standard ESLint rule configurations
|
|
30
|
-
* https://eslint.org/docs/rules
|
|
31
|
-
*/
|
|
32
|
-
'array-callback-return': 'warn',
|
|
33
|
-
'dot-location': ['warn', 'property'],
|
|
34
|
-
eqeqeq: ['warn', 'smart'],
|
|
35
|
-
'new-parens': 'warn',
|
|
36
|
-
'no-caller': 'warn',
|
|
37
|
-
'no-cond-assign': ['warn', 'except-parens'],
|
|
38
|
-
'no-const-assign': 'warn',
|
|
39
|
-
'no-control-regex': 'warn',
|
|
40
|
-
'no-delete-var': 'warn',
|
|
41
|
-
'no-dupe-args': 'warn',
|
|
42
|
-
'no-dupe-keys': 'warn',
|
|
43
|
-
'no-duplicate-case': 'warn',
|
|
44
|
-
'no-empty-character-class': 'warn',
|
|
45
|
-
'no-empty-pattern': 'warn',
|
|
46
|
-
'no-eval': 'warn',
|
|
47
|
-
'no-ex-assign': 'warn',
|
|
48
|
-
'no-extend-native': 'warn',
|
|
49
|
-
'no-extra-bind': 'warn',
|
|
50
|
-
'no-extra-label': 'warn',
|
|
51
|
-
'no-fallthrough': 'warn',
|
|
52
|
-
'no-func-assign': 'warn',
|
|
53
|
-
'no-implied-eval': 'warn',
|
|
54
|
-
'no-invalid-regexp': 'warn',
|
|
55
|
-
'no-iterator': 'warn',
|
|
56
|
-
'no-label-var': 'warn',
|
|
57
|
-
'no-labels': ['warn', { allowLoop: true, allowSwitch: false }],
|
|
58
|
-
'no-lone-blocks': 'warn',
|
|
59
|
-
'no-loop-func': 'warn',
|
|
60
|
-
'no-mixed-operators': [
|
|
61
|
-
'warn',
|
|
62
|
-
{
|
|
63
|
-
groups: [
|
|
64
|
-
['&', '|', '^', '~', '<<', '>>', '>>>'],
|
|
65
|
-
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
|
|
66
|
-
['&&', '||'],
|
|
67
|
-
['in', 'instanceof'],
|
|
68
|
-
],
|
|
69
|
-
allowSamePrecedence: false,
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
'no-multi-str': 'warn',
|
|
73
|
-
'no-native-reassign': 'warn',
|
|
74
|
-
'no-negated-in-lhs': 'warn',
|
|
75
|
-
'no-new-func': 'warn',
|
|
76
|
-
'no-new-object': 'warn',
|
|
77
|
-
'no-new-symbol': 'warn',
|
|
78
|
-
'no-new-wrappers': 'warn',
|
|
79
|
-
'no-obj-calls': 'warn',
|
|
80
|
-
'no-octal': 'warn',
|
|
81
|
-
'no-octal-escape': 'warn',
|
|
82
|
-
'no-redeclare': 'warn',
|
|
83
|
-
'no-regex-spaces': 'warn',
|
|
84
|
-
'no-restricted-syntax': ['warn', 'WithStatement'],
|
|
85
|
-
'no-script-url': 'warn',
|
|
86
|
-
'no-self-assign': 'warn',
|
|
87
|
-
'no-self-compare': 'warn',
|
|
88
|
-
'no-sequences': 'warn',
|
|
89
|
-
'no-shadow-restricted-names': 'warn',
|
|
90
|
-
'no-sparse-arrays': 'warn',
|
|
91
|
-
'no-template-curly-in-string': 'warn',
|
|
92
|
-
'no-this-before-super': 'warn',
|
|
93
|
-
'no-throw-literal': 'warn',
|
|
94
|
-
'no-restricted-globals': ['error'].concat(restrictedGlobals),
|
|
95
|
-
'no-unexpected-multiline': 'warn',
|
|
96
|
-
'no-unreachable': 'warn',
|
|
97
|
-
'no-unused-expressions': 'off',
|
|
98
|
-
'no-unused-labels': 'warn',
|
|
99
|
-
'no-useless-computed-key': 'warn',
|
|
100
|
-
'no-useless-concat': 'warn',
|
|
101
|
-
'no-useless-escape': 'warn',
|
|
102
|
-
'no-useless-rename': [
|
|
103
|
-
'warn',
|
|
104
|
-
{
|
|
105
|
-
ignoreDestructuring: false,
|
|
106
|
-
ignoreImport: false,
|
|
107
|
-
ignoreExport: false,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
'no-with': 'warn',
|
|
111
|
-
'no-whitespace-before-property': 'warn',
|
|
112
|
-
'require-yield': 'warn',
|
|
113
|
-
'rest-spread-spacing': ['warn', 'never'],
|
|
114
|
-
strict: ['warn', 'never'],
|
|
115
|
-
'unicode-bom': ['warn', 'never'],
|
|
116
|
-
'use-isnan': 'warn',
|
|
117
|
-
'valid-typeof': 'warn',
|
|
118
|
-
'no-restricted-properties': [
|
|
119
|
-
'error',
|
|
120
|
-
{
|
|
121
|
-
object: 'require',
|
|
122
|
-
property: 'ensure',
|
|
123
|
-
message: 'Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting',
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
object: 'System',
|
|
127
|
-
property: 'import',
|
|
128
|
-
message: 'Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting',
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
'getter-return': 'warn',
|
|
132
|
-
/**
|
|
133
|
-
* Import rule configurations
|
|
134
|
-
* https://github.com/benmosher/eslint-plugin-import
|
|
135
|
-
*/
|
|
136
|
-
'import/first': 'error',
|
|
137
|
-
'import/no-amd': 'error',
|
|
138
|
-
'import/no-webpack-loader-syntax': 'error',
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
|
-
//# sourceMappingURL=react-base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-base.js","sourceRoot":"","sources":["../../../../../packages/eslint-plugin-nx/src/configs/react-base.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;GASG;AACH,+DAA+D;AAE/D;;;GAGG;AACH,kBAAe;IACb,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,GAAG,EAAE;QACH,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;KACX;IACD,KAAK,EAAE;QACL;;;WAGG;QACH,uBAAuB,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