@nx/eslint-plugin 20.0.0-beta.2 → 20.0.0-beta.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/eslint-plugin",
|
|
3
|
-
"version": "20.0.0-beta.
|
|
3
|
+
"version": "20.0.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The eslint-plugin 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": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@eslint/compat": "^1.1.1",
|
|
38
|
-
"@nx/devkit": "20.0.0-beta.
|
|
39
|
-
"@nx/js": "20.0.0-beta.
|
|
38
|
+
"@nx/devkit": "20.0.0-beta.3",
|
|
39
|
+
"@nx/js": "20.0.0-beta.3",
|
|
40
40
|
"@typescript-eslint/type-utils": "^8.0.0",
|
|
41
41
|
"@typescript-eslint/utils": "^8.0.0",
|
|
42
42
|
"chalk": "^4.1.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"jsonc-eslint-parser": "^2.1.0",
|
|
46
46
|
"semver": "^7.5.3",
|
|
47
47
|
"tslib": "^2.3.0",
|
|
48
|
-
"@nrwl/eslint-plugin-nx": "20.0.0-beta.
|
|
48
|
+
"@nrwl/eslint-plugin-nx": "20.0.0-beta.3"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
@@ -15,7 +15,14 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
|
|
|
15
15
|
* This configuration is intended to be combined with other configs from this
|
|
16
16
|
* package.
|
|
17
17
|
*/
|
|
18
|
-
exports.default = typescript_eslint_1.default.config(...angular_eslint_1.default.configs.tsRecommended
|
|
18
|
+
exports.default = typescript_eslint_1.default.config(...angular_eslint_1.default.configs.tsRecommended.map((c) => ({
|
|
19
|
+
// Files need to be specified or else typescript-eslint rules will be
|
|
20
|
+
// applied to non-TS files. For example, buildable/publishable libs
|
|
21
|
+
// add rules to *.json files, and TS rules should not apply to them.
|
|
22
|
+
// See: https://github.com/nrwl/nx/issues/28069
|
|
23
|
+
files: ['**/*.ts'],
|
|
24
|
+
...c,
|
|
25
|
+
})), {
|
|
19
26
|
languageOptions: {
|
|
20
27
|
globals: {
|
|
21
28
|
...globals_1.default.browser,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const compat_1 = require("@eslint/compat");
|
|
4
5
|
const eslint_plugin_jsx_a11y_1 = tslib_1.__importDefault(require("eslint-plugin-jsx-a11y"));
|
|
5
6
|
const eslint_plugin_react_1 = tslib_1.__importDefault(require("eslint-plugin-react"));
|
|
6
7
|
const eslint_plugin_react_hooks_1 = tslib_1.__importDefault(require("eslint-plugin-react-hooks"));
|
|
@@ -17,7 +18,7 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
|
|
|
17
18
|
*/
|
|
18
19
|
exports.default = typescript_eslint_1.default.config({
|
|
19
20
|
plugins: {
|
|
20
|
-
'react-hooks': eslint_plugin_react_hooks_1.default,
|
|
21
|
+
'react-hooks': (0, compat_1.fixupPluginRules)(eslint_plugin_react_hooks_1.default),
|
|
21
22
|
},
|
|
22
23
|
rules: eslint_plugin_react_hooks_1.default.configs.recommended.rules,
|
|
23
24
|
}, {
|