eslint-config-teselagen 6.0.1 → 6.0.4
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/README.md +2 -0
- package/cypress.js +10 -13
- package/es5.js +38 -37
- package/node.js +3 -1
- package/package.json +10 -10
- package/react.js +1 -0
package/README.md
CHANGED
package/cypress.js
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
require("@rushstack/eslint-patch/modern-module-resolution");
|
2
2
|
|
3
3
|
module.exports = {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
"extends": [
|
9
|
-
"plugin:cypress/recommended"
|
10
|
-
],
|
11
|
-
"env": {
|
12
|
-
"cypress/globals": true
|
4
|
+
plugins: ["cypress", "no-only-tests"],
|
5
|
+
extends: ["plugin:cypress/recommended"],
|
6
|
+
env: {
|
7
|
+
"cypress/globals": true,
|
13
8
|
},
|
14
|
-
|
15
|
-
"no-only-tests/no-only-tests": 1
|
16
|
-
|
17
|
-
|
9
|
+
rules: {
|
10
|
+
"no-only-tests/no-only-tests": 1,
|
11
|
+
"@typescript-eslint/no-unused-vars": 1,
|
12
|
+
"no-unused-vars": 0,
|
13
|
+
},
|
14
|
+
};
|
package/es5.js
CHANGED
@@ -1,38 +1,39 @@
|
|
1
1
|
module.exports = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
}
|
2
|
+
env: {
|
3
|
+
node: true,
|
4
|
+
browser: true,
|
5
|
+
mocha: true,
|
6
|
+
},
|
7
|
+
parser: "babel-eslint",
|
8
|
+
rules: {
|
9
|
+
"import/no-anonymous-default-export": 0,
|
10
|
+
"no-undef": 2,
|
11
|
+
"no-console": [1, { allow: ["warn", "error", "info"] }],
|
12
|
+
"no-redeclare": 2,
|
13
|
+
"comma-dangle": 0,
|
14
|
+
"no-mixed-spaces-and-tabs": 0,
|
15
|
+
indent: [0, "tab"],
|
16
|
+
quotes: [0, "double"],
|
17
|
+
"linebreak-style": [0, "unix"],
|
18
|
+
semi: [0, "always"],
|
19
|
+
"no-var": 2,
|
20
|
+
"no-debugger": 2,
|
21
|
+
"no-empty": [2],
|
22
|
+
"no-extra-boolean-cast": 2,
|
23
|
+
"no-extra-semi": 1,
|
24
|
+
"no-inner-declarations": [2, "functions"],
|
25
|
+
"no-unneeded-ternary": 1,
|
26
|
+
"no-unsafe-negation": 2,
|
27
|
+
"import/no-unresolved": 2,
|
28
|
+
"import/named": 2,
|
29
|
+
"import/default": 2,
|
30
|
+
"object-shorthand": 0,
|
31
|
+
"no-else-return": 0,
|
32
|
+
"react/jsx-no-bind": 1,
|
33
|
+
"react/jsx-boolean-value": 0,
|
34
|
+
"react/jsx-key": 2,
|
35
|
+
"jsx-a11y/href-no-hash": 0,
|
36
|
+
"@typescript-eslint/no-unused-vars": 1,
|
37
|
+
"no-unused-vars": 0,
|
38
|
+
},
|
39
|
+
};
|
package/node.js
CHANGED
@@ -8,9 +8,9 @@ module.exports = {
|
|
8
8
|
mocha: true,
|
9
9
|
},
|
10
10
|
rules: {
|
11
|
+
"import/no-anonymous-default-export": 0,
|
11
12
|
"no-undef": 2,
|
12
13
|
"no-console": [1, { allow: ["warn", "error", "info"] }],
|
13
|
-
"no-unused-vars": 1,
|
14
14
|
"no-redeclare": 2,
|
15
15
|
"comma-dangle": 0,
|
16
16
|
"no-mixed-spaces-and-tabs": 0,
|
@@ -27,5 +27,7 @@ module.exports = {
|
|
27
27
|
"import/named": 2,
|
28
28
|
"import/default": 2,
|
29
29
|
"prefer-const": [1, { destructuring: "all" }],
|
30
|
+
"@typescript-eslint/no-unused-vars": 1,
|
31
|
+
"no-unused-vars": 0,
|
30
32
|
},
|
31
33
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-config-teselagen",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.4",
|
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,19 @@
|
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"@rushstack/eslint-patch": "^1.1.0",
|
13
|
-
"@typescript-eslint/eslint-plugin": "^4",
|
14
|
-
"@typescript-eslint/parser": "^4",
|
15
|
-
"babel-eslint": "^10.
|
16
|
-
"eslint": "
|
13
|
+
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
14
|
+
"@typescript-eslint/parser": "^4.0.0",
|
15
|
+
"babel-eslint": "^10.0.0",
|
16
|
+
"eslint": "7.32.0",
|
17
17
|
"eslint-config-react-app": "^6.0.0",
|
18
18
|
"eslint-plugin-cypress": "^2.12.1",
|
19
19
|
"eslint-plugin-flowtype": "^5.2.0",
|
20
|
-
"eslint-plugin-import": "^2.
|
21
|
-
"eslint-plugin-jsx-a11y": "^6.
|
22
|
-
"eslint-plugin-no-only-tests": "^
|
23
|
-
"eslint-plugin-react": "^7.
|
20
|
+
"eslint-plugin-import": "^2.22.0",
|
21
|
+
"eslint-plugin-jsx-a11y": "^6.3.1",
|
22
|
+
"eslint-plugin-no-only-tests": "^3.0.0",
|
23
|
+
"eslint-plugin-react": "^7.20.3",
|
24
24
|
"eslint-plugin-react-app": "^6.2.2",
|
25
|
-
"eslint-plugin-react-hooks": "^4.
|
25
|
+
"eslint-plugin-react-hooks": "^4.0.8"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
28
|
"husky": "^0.14.3",
|
package/react.js
CHANGED