eslint-config-teselagen 6.1.3 → 6.1.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/base-config.js +5 -0
- package/node-react-config.js +0 -4
- package/node.js +1 -1
- package/package.json +7 -5
- package/react.js +8 -2
package/base-config.js
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
module.exports = {
|
2
|
+
plugins: ["import"],
|
2
3
|
rules: {
|
4
|
+
"import/no-unresolved": 2,
|
5
|
+
"import/no-anonymous-default-export": 0,
|
6
|
+
"import/named": 2,
|
7
|
+
"import/default": 2,
|
3
8
|
"no-unused-vars": 0,
|
4
9
|
"@typescript-eslint/no-unused-vars": [1, { ignoreRestSiblings: true }],
|
5
10
|
"no-use-before-define": 0,
|
package/node-react-config.js
CHANGED
@@ -10,10 +10,6 @@ module.exports = {
|
|
10
10
|
"no-undef": 2,
|
11
11
|
"no-unneeded-ternary": 1,
|
12
12
|
"no-unsafe-negation": 2,
|
13
|
-
"import/no-unresolved": 2,
|
14
|
-
"import/no-anonymous-default-export": 0,
|
15
|
-
"import/named": 2,
|
16
|
-
"import/default": 2,
|
17
13
|
"prefer-const": [1, { destructuring: "all" }],
|
18
14
|
},
|
19
15
|
};
|
package/node.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require("@rushstack/eslint-patch/modern-module-resolution");
|
2
2
|
|
3
3
|
module.exports = {
|
4
|
-
extends: ["
|
4
|
+
extends: ["./base-config.js", "./node-react-config.js"],
|
5
5
|
parser: "@typescript-eslint/parser",
|
6
6
|
plugins: ["@typescript-eslint"],
|
7
7
|
env: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-config-teselagen",
|
3
|
-
"version": "6.1.
|
3
|
+
"version": "6.1.5",
|
4
4
|
"description": "teselagen linter rules",
|
5
5
|
"repository": "https://github.com/TeselaGen/eslint-config-teselagen.git",
|
6
6
|
"author": "teselagen team@teselagen",
|
@@ -10,19 +10,21 @@
|
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"@rushstack/eslint-patch": "^1.10.1",
|
13
|
-
"@typescript-eslint/eslint-plugin": "^
|
14
|
-
"@typescript-eslint/parser": "^
|
13
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
14
|
+
"@typescript-eslint/parser": "^6.6.0",
|
15
15
|
"babel-eslint": "^10.0.0",
|
16
16
|
"eslint": "8.36.0",
|
17
|
-
"eslint-config-react-app": "^7.0.1",
|
18
17
|
"eslint-plugin-cypress": "^2.15.1",
|
19
18
|
"eslint-plugin-flowtype": "^8.0.3",
|
20
19
|
"eslint-plugin-import": "^2.29.1",
|
21
20
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
22
21
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
23
22
|
"eslint-plugin-react": "^7.34.1",
|
24
|
-
"eslint-plugin-react-app": "^6.2.2",
|
25
23
|
"eslint-plugin-react-hooks": "^4.6.0",
|
26
24
|
"typescript": "5.4.5"
|
25
|
+
},
|
26
|
+
"volta": {
|
27
|
+
"node": "16.20.2",
|
28
|
+
"yarn": "1.22.21"
|
27
29
|
}
|
28
30
|
}
|
package/react.js
CHANGED
@@ -1,16 +1,22 @@
|
|
1
1
|
require("@rushstack/eslint-patch/modern-module-resolution");
|
2
2
|
|
3
3
|
module.exports = {
|
4
|
-
extends: ["react-
|
4
|
+
extends: ["plugin:react/recommended", "plugin:react-hooks/recommended", "./base-config.js", "./node-react-config.js"],
|
5
5
|
parser: "@typescript-eslint/parser",
|
6
6
|
plugins: ["@typescript-eslint"],
|
7
7
|
rules: {
|
8
8
|
"no-const-assign": 2,
|
9
9
|
"react/jsx-boolean-value": 0,
|
10
10
|
"react/jsx-key": 2,
|
11
|
+
"react/prop-types": 0,
|
12
|
+
"react/display-name": 0,
|
13
|
+
"react/no-unescaped-entities": 0,
|
11
14
|
"jsx-a11y/anchor-is-valid": "off",
|
12
15
|
"react/no-this-in-sfc": "warn",
|
13
16
|
"react-hooks/rules-of-hooks": "error"
|
14
17
|
},
|
15
|
-
|
18
|
+
env: {
|
19
|
+
browser: true,
|
20
|
+
node: true
|
21
|
+
}
|
16
22
|
};
|