@cutting/eslint-config 4.41.0 → 4.42.0
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 +0 -2
- package/angular.cjs +3 -0
- package/{index.js → index.cjs} +2 -10
- package/node.cjs +3 -0
- package/package.json +17 -25
- package/{react.js → react.cjs} +3 -3
- package/angular.js +0 -3
- package/node.js +0 -3
package/README.md
CHANGED
|
@@ -65,11 +65,9 @@ All typescript rules, plus (in order):
|
|
|
65
65
|
eslint-plugin-react/recommended (rules)
|
|
66
66
|
eslint-plugin-jsx-a11y (rules)
|
|
67
67
|
eslint-plugin-react-hooks (rules set manually)
|
|
68
|
-
eslint-plugin-jest (rules)
|
|
69
68
|
eslint-plugin-import (rules)
|
|
70
69
|
eslint-config-prettier (rules)
|
|
71
70
|
eslint-config-prettier/@typescript-eslint
|
|
72
|
-
eslint-plugin-jest-formatting (rules)
|
|
73
71
|
Overrides
|
|
74
72
|
Some rules are overriden. Please see `.eslintrc.json` in the package.
|
|
75
73
|
|
package/angular.cjs
ADDED
package/{index.js → index.cjs}
RENAMED
|
@@ -3,20 +3,13 @@ module.exports = {
|
|
|
3
3
|
MyGlobal: true,
|
|
4
4
|
},
|
|
5
5
|
parser: '@typescript-eslint/parser',
|
|
6
|
-
extends: [
|
|
7
|
-
'plugin:@typescript-eslint/recommended',
|
|
8
|
-
'plugin:jest/recommended',
|
|
9
|
-
'plugin:jest-formatting/recommended',
|
|
10
|
-
'plugin:prettier/recommended',
|
|
11
|
-
],
|
|
6
|
+
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
|
|
12
7
|
plugins: ['@typescript-eslint'],
|
|
13
8
|
rules: {
|
|
14
9
|
'@typescript-eslint/no-parameter-properties': ['off'],
|
|
15
10
|
'@typescript-eslint/no-namespace': ['off'],
|
|
16
11
|
'@typescript-eslint/explicit-module-boundary-types': ['error', { allowArgumentsExplicitlyTypedAsAny: true }],
|
|
17
12
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
18
|
-
'jest/consistent-test-it': ['error', { fn: 'it' }],
|
|
19
|
-
'jest/expect-expect': ['off'],
|
|
20
13
|
'no-var': 'warn',
|
|
21
14
|
'@typescript-eslint/ban-types': [
|
|
22
15
|
'error',
|
|
@@ -32,7 +25,6 @@ module.exports = {
|
|
|
32
25
|
curly: 'error',
|
|
33
26
|
eqeqeq: ['error', 'always'],
|
|
34
27
|
'prefer-const': 'warn',
|
|
35
|
-
'no-jest-import': ['off'],
|
|
36
28
|
'prettier/prettier': [
|
|
37
29
|
'error',
|
|
38
30
|
{
|
|
@@ -56,7 +48,7 @@ module.exports = {
|
|
|
56
48
|
singleQuote: true,
|
|
57
49
|
semi: true,
|
|
58
50
|
tabWidth: 2,
|
|
59
|
-
trailingComma: '
|
|
51
|
+
trailingComma: 'none',
|
|
60
52
|
},
|
|
61
53
|
],
|
|
62
54
|
semi: ['error', 'always'],
|
package/node.cjs
ADDED
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cutting/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.42.0",
|
|
4
4
|
"description": "Cutting eslint configuration definition",
|
|
5
|
-
"main": "index.
|
|
5
|
+
"main": "index.cjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
|
-
"index.
|
|
9
|
-
"react.
|
|
10
|
-
"angular.
|
|
11
|
-
"node.
|
|
12
|
-
"README.md"
|
|
8
|
+
"index.cjs",
|
|
9
|
+
"react.cjs",
|
|
10
|
+
"angular.cjs",
|
|
11
|
+
"node.cjs",
|
|
12
|
+
"README.md",
|
|
13
|
+
"partial.html"
|
|
13
14
|
],
|
|
14
15
|
"keywords": [
|
|
15
16
|
"eslint",
|
|
@@ -20,31 +21,22 @@
|
|
|
20
21
|
"react"
|
|
21
22
|
],
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"@
|
|
25
|
-
"
|
|
26
|
-
"@typescript-eslint/eslint-plugin": "5.18.0",
|
|
27
|
-
"@typescript-eslint/parser": "5.18.0",
|
|
28
|
-
"eslint": "8.17.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "5.39.0",
|
|
25
|
+
"@typescript-eslint/parser": "5.39.0",
|
|
26
|
+
"eslint": "8.23.1",
|
|
29
27
|
"eslint-config-prettier": "^8.5.0",
|
|
30
|
-
"eslint-plugin-
|
|
31
|
-
"eslint-plugin-
|
|
32
|
-
"eslint-plugin-
|
|
33
|
-
"eslint-plugin-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"prettier": "2.6.2",
|
|
37
|
-
"typescript": "^4.7.3"
|
|
28
|
+
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
29
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
30
|
+
"eslint-plugin-react": "7.31.8",
|
|
31
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
32
|
+
"prettier": "2.7.1",
|
|
33
|
+
"typescript": "^4.8.3"
|
|
38
34
|
},
|
|
39
35
|
"peerDependencies": {
|
|
40
|
-
"@babel/eslint-parser": ">= 7.x.x",
|
|
41
|
-
"@types/webpack-env": ">= 1.x.x",
|
|
42
36
|
"@typescript-eslint/eslint-plugin": ">= 5.x.x",
|
|
43
37
|
"@typescript-eslint/parser": ">= 5.x.x",
|
|
44
38
|
"eslint": ">= 8.x.x",
|
|
45
39
|
"eslint-config-prettier": ">= 8.x.x",
|
|
46
|
-
"eslint-plugin-jest": ">= 26.x.x",
|
|
47
|
-
"eslint-plugin-jest-formatting": ">= 3.x.x",
|
|
48
40
|
"eslint-plugin-jsx-a11y": ">= 6.x.x",
|
|
49
41
|
"eslint-plugin-prettier": ">= 4.x.x",
|
|
50
42
|
"eslint-plugin-react": ">= 7.x.x",
|
package/{react.js → react.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
extends: './index',
|
|
2
|
+
extends: './index.cjs',
|
|
3
3
|
parserOptions: {
|
|
4
4
|
ecmaVersion: 2018,
|
|
5
5
|
sourceType: 'module',
|
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
jsx: true,
|
|
8
8
|
},
|
|
9
9
|
},
|
|
10
|
-
extends: ['./index', 'plugin:react/recommended', 'plugin:jsx-a11y/recommended'],
|
|
10
|
+
extends: ['./index.cjs', 'plugin:react/recommended', 'plugin:jsx-a11y/recommended'],
|
|
11
11
|
settings: {
|
|
12
12
|
react: {
|
|
13
13
|
pragma: 'React',
|
|
@@ -19,7 +19,7 @@ module.exports = {
|
|
|
19
19
|
jsx: true,
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
|
-
plugins: ['react', 'react-hooks'
|
|
22
|
+
plugins: ['react', 'react-hooks'],
|
|
23
23
|
rules: {
|
|
24
24
|
'react-hooks/rules-of-hooks': [
|
|
25
25
|
'error',
|
package/angular.js
DELETED
package/node.js
DELETED