@newsteam/eslint-config 1.2.15 → 1.2.17
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -52
- package/dist/plugins/sort-react-dependency-arrays.d.ts +3 -2
- package/dist/plugins/sort-react-dependency-arrays.d.ts.map +1 -1
- package/dist/plugins/sort-react-dependency-arrays.js +95 -18
- package/dist/rules/array-function.d.ts +3 -0
- package/dist/rules/array-function.d.ts.map +1 -0
- package/dist/rules/array-function.js +56 -0
- package/dist/rules/css-modules.d.ts +3 -0
- package/dist/rules/css-modules.d.ts.map +1 -0
- package/dist/rules/css-modules.js +27 -0
- package/dist/rules/destructuring.d.ts +3 -0
- package/dist/rules/destructuring.d.ts.map +1 -0
- package/dist/rules/destructuring.js +39 -0
- package/dist/rules/eslint-comments.d.ts +3 -0
- package/dist/rules/eslint-comments.d.ts.map +1 -0
- package/dist/rules/eslint-comments.js +77 -0
- package/dist/rules/import-newlines.d.ts +3 -0
- package/dist/rules/import-newlines.d.ts.map +1 -0
- package/dist/rules/import-newlines.js +26 -0
- package/dist/rules/import-x.d.ts +3 -0
- package/dist/rules/import-x.d.ts.map +1 -0
- package/dist/rules/import-x.js +420 -0
- package/dist/{rules.d.ts → rules/index.d.ts} +1 -1
- package/dist/rules/index.d.ts.map +1 -0
- package/dist/{rules.js → rules/index.js} +51 -1
- package/dist/rules/next.d.ts +3 -0
- package/dist/rules/next.d.ts.map +1 -0
- package/dist/rules/next.js +140 -0
- package/dist/rules/no-unsanitized.d.ts +3 -0
- package/dist/rules/no-unsanitized.d.ts.map +1 -0
- package/dist/rules/no-unsanitized.js +38 -0
- package/dist/rules/no-useless-assign.d.ts +3 -0
- package/dist/rules/no-useless-assign.d.ts.map +1 -0
- package/dist/rules/no-useless-assign.js +20 -0
- package/dist/rules/node.d.ts +3 -0
- package/dist/rules/node.d.ts.map +1 -0
- package/dist/rules/node.js +305 -0
- package/dist/rules/perfectionist.d.ts +3 -0
- package/dist/rules/perfectionist.d.ts.map +1 -0
- package/dist/rules/perfectionist.js +94 -0
- package/dist/rules/promise.d.ts +3 -0
- package/dist/rules/promise.d.ts.map +1 -0
- package/dist/rules/promise.js +123 -0
- package/dist/rules/react-19-upgrade.d.ts +3 -0
- package/dist/rules/react-19-upgrade.d.ts.map +1 -0
- package/dist/rules/react-19-upgrade.js +20 -0
- package/dist/rules/react-compiler.d.ts +3 -0
- package/dist/rules/react-compiler.d.ts.map +1 -0
- package/dist/{plugins → rules}/react-compiler.js +7 -9
- package/dist/rules/react-hooks.d.ts +3 -0
- package/dist/rules/react-hooks.d.ts.map +1 -0
- package/dist/rules/react-hooks.js +163 -0
- package/dist/rules/react-perf.d.ts +3 -0
- package/dist/rules/react-perf.d.ts.map +1 -0
- package/dist/rules/react-perf.js +47 -0
- package/dist/rules/react-refresh.d.ts +3 -0
- package/dist/rules/react-refresh.d.ts.map +1 -0
- package/dist/rules/react-refresh.js +19 -0
- package/dist/rules/react.d.ts +3 -0
- package/dist/rules/react.d.ts.map +1 -0
- package/dist/rules/react.js +740 -0
- package/dist/rules/security.d.ts +3 -0
- package/dist/rules/security.d.ts.map +1 -0
- package/dist/rules/security.js +112 -0
- package/dist/rules/sort-react-dependency-arrays.d.ts +3 -0
- package/dist/rules/sort-react-dependency-arrays.d.ts.map +1 -0
- package/dist/rules/sort-react-dependency-arrays.js +12 -0
- package/dist/rules/stylistic.d.ts +3 -0
- package/dist/rules/stylistic.d.ts.map +1 -0
- package/dist/rules/stylistic.js +916 -0
- package/dist/rules/typescript.d.ts +3 -0
- package/dist/rules/typescript.d.ts.map +1 -0
- package/dist/{plugins → rules}/typescript.js +2 -1
- package/dist/rules/unicorn.d.ts +3 -0
- package/dist/rules/unicorn.d.ts.map +1 -0
- package/dist/rules/unicorn.js +998 -0
- package/dist/test/index.d.ts +2 -0
- package/dist/test/index.d.ts.map +1 -0
- package/dist/test/index.js +15 -0
- package/package.json +11 -13
- package/dist/plugins/array-function.d.ts +0 -3
- package/dist/plugins/array-function.d.ts.map +0 -1
- package/dist/plugins/array-function.js +0 -58
- package/dist/plugins/css-modules.d.ts +0 -3
- package/dist/plugins/css-modules.d.ts.map +0 -1
- package/dist/plugins/css-modules.js +0 -19
- package/dist/plugins/destructuring.d.ts +0 -3
- package/dist/plugins/destructuring.d.ts.map +0 -1
- package/dist/plugins/destructuring.js +0 -41
- package/dist/plugins/eslint-comments.d.ts +0 -3
- package/dist/plugins/eslint-comments.d.ts.map +0 -1
- package/dist/plugins/eslint-comments.js +0 -79
- package/dist/plugins/import-newlines.d.ts +0 -3
- package/dist/plugins/import-newlines.d.ts.map +0 -1
- package/dist/plugins/import-newlines.js +0 -28
- package/dist/plugins/import-x.d.ts +0 -3
- package/dist/plugins/import-x.d.ts.map +0 -1
- package/dist/plugins/import-x.js +0 -418
- package/dist/plugins/newline-destructuring.d.ts +0 -3
- package/dist/plugins/newline-destructuring.d.ts.map +0 -1
- package/dist/plugins/newline-destructuring.js +0 -26
- package/dist/plugins/next.d.ts +0 -3
- package/dist/plugins/next.d.ts.map +0 -1
- package/dist/plugins/next.js +0 -142
- package/dist/plugins/no-unsanitized.d.ts +0 -3
- package/dist/plugins/no-unsanitized.d.ts.map +0 -1
- package/dist/plugins/no-unsanitized.js +0 -40
- package/dist/plugins/no-useless-assign.d.ts +0 -3
- package/dist/plugins/no-useless-assign.d.ts.map +0 -1
- package/dist/plugins/no-useless-assign.js +0 -22
- package/dist/plugins/node.d.ts +0 -3
- package/dist/plugins/node.d.ts.map +0 -1
- package/dist/plugins/node.js +0 -307
- package/dist/plugins/perfectionist.d.ts +0 -3
- package/dist/plugins/perfectionist.d.ts.map +0 -1
- package/dist/plugins/perfectionist.js +0 -96
- package/dist/plugins/promise.d.ts +0 -3
- package/dist/plugins/promise.d.ts.map +0 -1
- package/dist/plugins/promise.js +0 -125
- package/dist/plugins/react-19-upgrade.d.ts +0 -3
- package/dist/plugins/react-19-upgrade.d.ts.map +0 -1
- package/dist/plugins/react-19-upgrade.js +0 -22
- package/dist/plugins/react-compiler.d.ts +0 -3
- package/dist/plugins/react-compiler.d.ts.map +0 -1
- package/dist/plugins/react-hooks.d.ts +0 -3
- package/dist/plugins/react-hooks.d.ts.map +0 -1
- package/dist/plugins/react-hooks.js +0 -165
- package/dist/plugins/react-perf.d.ts +0 -3
- package/dist/plugins/react-perf.d.ts.map +0 -1
- package/dist/plugins/react-perf.js +0 -49
- package/dist/plugins/react-refresh.d.ts +0 -3
- package/dist/plugins/react-refresh.d.ts.map +0 -1
- package/dist/plugins/react-refresh.js +0 -21
- package/dist/plugins/react.d.ts +0 -3
- package/dist/plugins/react.d.ts.map +0 -1
- package/dist/plugins/react.js +0 -738
- package/dist/plugins/security.d.ts +0 -3
- package/dist/plugins/security.d.ts.map +0 -1
- package/dist/plugins/security.js +0 -114
- package/dist/plugins/stylistic.d.ts +0 -3
- package/dist/plugins/stylistic.d.ts.map +0 -1
- package/dist/plugins/stylistic.js +0 -901
- package/dist/plugins/typescript.d.ts +0 -3
- package/dist/plugins/typescript.d.ts.map +0 -1
- package/dist/plugins/unicorn.d.ts +0 -3
- package/dist/plugins/unicorn.d.ts.map +0 -1
- package/dist/plugins/unicorn.js +0 -994
- package/dist/rules.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import style from "./index.module.css";
|
|
2
|
+
console.log(style.yellow);
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- acceptable for the test
|
|
4
|
+
const useCallback = (callee, deps) => {
|
|
5
|
+
console.log(callee, deps);
|
|
6
|
+
};
|
|
7
|
+
const aVariable = "a";
|
|
8
|
+
const bVariable = "b";
|
|
9
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks -- acceptable for the test
|
|
10
|
+
useCallback(() => {
|
|
11
|
+
console.log("WTf");
|
|
12
|
+
}, [
|
|
13
|
+
aVariable,
|
|
14
|
+
bVariable,
|
|
15
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.17",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -52,21 +52,19 @@
|
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
+
"@bhollis/eslint-plugin-css-modules": "^1.0.0",
|
|
55
56
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
|
|
56
57
|
"@eslint/compat": "2.0.2",
|
|
57
|
-
"@eslint/js": "^10.0.1",
|
|
58
58
|
"@next/eslint-plugin-next": "16.1.6",
|
|
59
|
-
"@stylistic/eslint-plugin": "5.
|
|
59
|
+
"@stylistic/eslint-plugin": "5.9.0",
|
|
60
60
|
"confusing-browser-globals": "1.0.11",
|
|
61
61
|
"eslint-import-resolver-node": "0.3.9",
|
|
62
62
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
63
63
|
"eslint-plugin-array-func": "5.1.0",
|
|
64
|
-
"eslint-plugin-css-modules": "2.12.0",
|
|
65
64
|
"eslint-plugin-destructuring": "2.2.1",
|
|
66
|
-
"eslint-plugin-import-newlines": "
|
|
65
|
+
"eslint-plugin-import-newlines": "2.0.0",
|
|
67
66
|
"eslint-plugin-import-x": "4.16.1",
|
|
68
|
-
"eslint-plugin-
|
|
69
|
-
"eslint-plugin-no-unsanitized": "4.1.4",
|
|
67
|
+
"eslint-plugin-no-unsanitized": "4.1.5",
|
|
70
68
|
"eslint-plugin-no-useless-assign": "1.0.3",
|
|
71
69
|
"eslint-plugin-node": "11.1.0",
|
|
72
70
|
"eslint-plugin-perfectionist": "5.6.0",
|
|
@@ -77,18 +75,18 @@
|
|
|
77
75
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
78
76
|
"eslint-plugin-react-perf": "3.3.3",
|
|
79
77
|
"eslint-plugin-react-refresh": "0.5.0",
|
|
80
|
-
"eslint-plugin-security": "
|
|
81
|
-
"eslint-plugin-sort-react-dependency-arrays": "1.0.0",
|
|
78
|
+
"eslint-plugin-security": "4.0.0",
|
|
82
79
|
"eslint-plugin-unicorn": "63.0.0",
|
|
83
80
|
"globals": "17.3.0",
|
|
84
81
|
"typescript-eslint": "8.56.0"
|
|
85
82
|
},
|
|
86
83
|
"peerDependencies": {
|
|
87
|
-
"eslint": ">=
|
|
84
|
+
"eslint": ">= 10.0.0"
|
|
88
85
|
},
|
|
89
86
|
"devDependencies": {
|
|
90
87
|
"@types/eslint-plugin-security": "3.0.1",
|
|
91
|
-
"@types/node": "25.
|
|
92
|
-
"eslint": "
|
|
88
|
+
"@types/node": "25.3.0",
|
|
89
|
+
"@typescript-eslint/utils": "^8.56.0",
|
|
90
|
+
"eslint": "10.0.0"
|
|
93
91
|
}
|
|
94
|
-
}
|
|
92
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array-function.d.ts","sourceRoot":"","sources":["../../src/plugins/array-function.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EA0D1C,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import arrayFunc from "eslint-plugin-array-func";
|
|
2
|
-
/*
|
|
3
|
-
* Rules for Array functions and methods.
|
|
4
|
-
*
|
|
5
|
-
* https://www.npmjs.com/package/eslint-plugin-array-func
|
|
6
|
-
*/
|
|
7
|
-
export const arrayFuncPlugin = [
|
|
8
|
-
{
|
|
9
|
-
plugins: {
|
|
10
|
-
"array-func": arrayFunc,
|
|
11
|
-
},
|
|
12
|
-
rules: {
|
|
13
|
-
/*
|
|
14
|
-
* Avoid reversing the array and running a method on it if there is an
|
|
15
|
-
* equivalent of the method operating on the array from the other end.
|
|
16
|
-
*
|
|
17
|
-
* https://www.npmjs.com/package/eslint-plugin-array-func#avoid-reverse
|
|
18
|
-
*/
|
|
19
|
-
"array-func/avoid-reverse": "warn",
|
|
20
|
-
/*
|
|
21
|
-
* Prefer using the mapFn callback of Array.from over an immediate
|
|
22
|
-
* .map() call on the Array.from result.
|
|
23
|
-
*
|
|
24
|
-
* https://www.npmjs.com/package/eslint-plugin-array-func#from-map
|
|
25
|
-
*/
|
|
26
|
-
"array-func/from-map": "warn",
|
|
27
|
-
/*
|
|
28
|
-
* Avoid the this parameter when providing arrow function as callback
|
|
29
|
-
* in array functions.
|
|
30
|
-
*
|
|
31
|
-
* https://www.npmjs.com/package/eslint-plugin-array-func#no-unnecessary-this-arg
|
|
32
|
-
*/
|
|
33
|
-
"array-func/no-unnecessary-this-arg": "warn",
|
|
34
|
-
/*
|
|
35
|
-
* Use Array.from instead of [...iterable] for performance benefits.
|
|
36
|
-
*
|
|
37
|
-
* Off for now, performance benefits probably don't warrant the irritation
|
|
38
|
-
*
|
|
39
|
-
* https://www.npmjs.com/package/eslint-plugin-array-func#prefer-array-from
|
|
40
|
-
*/
|
|
41
|
-
"array-func/prefer-array-from": "off",
|
|
42
|
-
/*
|
|
43
|
-
* Use .flat() to flatten an array of arrays. This rule currently
|
|
44
|
-
* recognizes two patterns and can replace them with a .flat() call.
|
|
45
|
-
*
|
|
46
|
-
* https://www.npmjs.com/package/eslint-plugin-array-func#prefer-flat
|
|
47
|
-
*/
|
|
48
|
-
"array-func/prefer-flat": "warn",
|
|
49
|
-
/*
|
|
50
|
-
* Use .flatMap() to flatten an array and map the values instead of
|
|
51
|
-
* using .flat().map().
|
|
52
|
-
*
|
|
53
|
-
* https://www.npmjs.com/package/eslint-plugin-array-func#prefer-flat-map
|
|
54
|
-
*/
|
|
55
|
-
"array-func/prefer-flat-map": "warn",
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css-modules.d.ts","sourceRoot":"","sources":["../../src/plugins/css-modules.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUrC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAU3C,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import cssModules from "eslint-plugin-css-modules";
|
|
2
|
-
/*
|
|
3
|
-
* This plugin intends to help you in tracking down problems when you are using css-modules.
|
|
4
|
-
* It tells if you are using a non-existent css/scss/less class in js or if you forgot to
|
|
5
|
-
* use some classes which you declared in css/scss/less.
|
|
6
|
-
*
|
|
7
|
-
* https://www.npmjs.com/package/eslint-plugin-css-modules
|
|
8
|
-
*/
|
|
9
|
-
export const cssModulesPlugin = [
|
|
10
|
-
{
|
|
11
|
-
plugins: {
|
|
12
|
-
"css-modules": cssModules,
|
|
13
|
-
},
|
|
14
|
-
rules: {
|
|
15
|
-
"css-modules/no-undef-class": ["warn"],
|
|
16
|
-
"css-modules/no-unused-class": ["warn"],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"destructuring.d.ts","sourceRoot":"","sources":["../../src/plugins/destructuring.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EA0C9C,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import destructuring from "eslint-plugin-destructuring";
|
|
2
|
-
/*
|
|
3
|
-
* Destructuring-specific linting rules for ESLint.
|
|
4
|
-
*
|
|
5
|
-
* https://www.npmjs.com/package/eslint-plugin-destructuring
|
|
6
|
-
*/
|
|
7
|
-
export const destructuringPlugin = [
|
|
8
|
-
{
|
|
9
|
-
plugins: {
|
|
10
|
-
destructuring,
|
|
11
|
-
},
|
|
12
|
-
rules: {
|
|
13
|
-
/*
|
|
14
|
-
* Destructuring within params of a method can be messy, unreadable and moreover you loose an
|
|
15
|
-
* opportunity of giving a name to the param. This rule allows you to ban destructuring of
|
|
16
|
-
* params in method declarations.
|
|
17
|
-
*
|
|
18
|
-
* https://github.com/lukeapage/eslint-plugin-destructuring/blob/HEAD/docs/rules/in-methods-params.md
|
|
19
|
-
*/
|
|
20
|
-
"destructuring/in-methods-params": "warn",
|
|
21
|
-
/*
|
|
22
|
-
* Destructuring within params can be messy, particularly if you have more than one parameter.
|
|
23
|
-
* This rule allows you to configure the maximum parameters allowed when one or more is destructuring.
|
|
24
|
-
*
|
|
25
|
-
* https://github.com/lukeapage/eslint-plugin-destructuring/blob/HEAD/docs/rules/in-params.md
|
|
26
|
-
*/
|
|
27
|
-
"destructuring/in-params": ["warn", { "max-params": 0 }],
|
|
28
|
-
/*
|
|
29
|
-
* When destructuring an object, you can provide the variable name in order to have
|
|
30
|
-
* the variable name differ from the object property. This can produce confusing code
|
|
31
|
-
* that is harder to read than ES5 code, therefore this rule prevents it unless the
|
|
32
|
-
* object property is an invalid identifier (ie. a string literal).
|
|
33
|
-
*
|
|
34
|
-
* Off because we like renaming when destructuring
|
|
35
|
-
*
|
|
36
|
-
* https://github.com/lukeapage/eslint-plugin-destructuring/blob/HEAD/docs/rules/no-rename.md
|
|
37
|
-
*/
|
|
38
|
-
"destructuring/no-rename": "off",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-comments.d.ts","sourceRoot":"","sources":["../../src/plugins/eslint-comments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAiF/C,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import eslintComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
2
|
-
/*
|
|
3
|
-
* Additional ESLint rules for ESLint directive comments
|
|
4
|
-
* (e.g. //eslint-disable-line).
|
|
5
|
-
*
|
|
6
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/
|
|
7
|
-
*/
|
|
8
|
-
export const eslintCommentsPlugin = [
|
|
9
|
-
{
|
|
10
|
-
plugins: {
|
|
11
|
-
"eslint-comments": eslintComments,
|
|
12
|
-
},
|
|
13
|
-
rules: {
|
|
14
|
-
/*
|
|
15
|
-
* Require a eslint-enable comment for every eslint-disable comment
|
|
16
|
-
*
|
|
17
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
18
|
-
*/
|
|
19
|
-
"eslint-comments/disable-enable-pair": "warn",
|
|
20
|
-
/*
|
|
21
|
-
* Disallow a eslint-enable comment for multiple eslint-disable comments
|
|
22
|
-
*
|
|
23
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
24
|
-
*/
|
|
25
|
-
"eslint-comments/no-aggregating-enable": "warn",
|
|
26
|
-
/*
|
|
27
|
-
* Disallow duplicate eslint-disable comments
|
|
28
|
-
*
|
|
29
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
30
|
-
*/
|
|
31
|
-
"eslint-comments/no-duplicate-disable": "warn",
|
|
32
|
-
/*
|
|
33
|
-
* Disallow eslint-disable comments without rule names
|
|
34
|
-
*
|
|
35
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
36
|
-
*/
|
|
37
|
-
"eslint-comments/no-restricted-disable": "warn",
|
|
38
|
-
/*
|
|
39
|
-
* Disallow eslint-disable comments about specific rules
|
|
40
|
-
*
|
|
41
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
42
|
-
*/
|
|
43
|
-
"eslint-comments/no-unlimited-disable": "warn",
|
|
44
|
-
/*
|
|
45
|
-
* Disallow unused eslint-disable comments
|
|
46
|
-
*
|
|
47
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
48
|
-
*/
|
|
49
|
-
"eslint-comments/no-unused-disable": "warn",
|
|
50
|
-
/*
|
|
51
|
-
* Disallow unused eslint-enable comments
|
|
52
|
-
*
|
|
53
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
54
|
-
*/
|
|
55
|
-
"eslint-comments/no-unused-enable": "warn",
|
|
56
|
-
/*
|
|
57
|
-
* Disallow ESLint directive-comments
|
|
58
|
-
*
|
|
59
|
-
* Off for now because sometimes we have a good reason to use these
|
|
60
|
-
*
|
|
61
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
62
|
-
*/
|
|
63
|
-
"eslint-comments/no-use": "off",
|
|
64
|
-
/*
|
|
65
|
-
* This rule warns directive comments without description.
|
|
66
|
-
*
|
|
67
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
68
|
-
*/
|
|
69
|
-
"eslint-comments/require-description": [
|
|
70
|
-
"warn",
|
|
71
|
-
{
|
|
72
|
-
ignore: [
|
|
73
|
-
"eslint-enable",
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import-newlines.d.ts","sourceRoot":"","sources":["../../src/plugins/import-newlines.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAuB/C,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import importNewlines from "eslint-plugin-import-newlines";
|
|
2
|
-
/*
|
|
3
|
-
* ESLint plugin for enforcing newlines in ES6 import statements past a certain number of items.
|
|
4
|
-
*
|
|
5
|
-
* https://www.npmjs.com/package/eslint-plugin-import-newlines
|
|
6
|
-
*/
|
|
7
|
-
export const importNewlinesPlugin = [
|
|
8
|
-
{
|
|
9
|
-
plugins: {
|
|
10
|
-
"import-newlines": importNewlines,
|
|
11
|
-
},
|
|
12
|
-
rules: {
|
|
13
|
-
/*
|
|
14
|
-
* ESLint plugin for enforcing newlines in ES6 import statements past a certain number of items.
|
|
15
|
-
*
|
|
16
|
-
* https://www.npmjs.com/package/eslint-plugin-import-newlines
|
|
17
|
-
*/
|
|
18
|
-
"import-newlines/enforce": [
|
|
19
|
-
"warn",
|
|
20
|
-
{
|
|
21
|
-
items: 1,
|
|
22
|
-
"max-len": Number.POSITIVE_INFINITY,
|
|
23
|
-
semi: true,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import-x.d.ts","sourceRoot":"","sources":["../../src/plugins/import-x.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAGhB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EA2fxC,CAAC"}
|