@newsteam/eslint-config 0.0.78 → 0.0.82
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/lib/plugins/react/jsx.js +1 -1
- package/lib/plugins/react/mjsx.js +1 -1
- package/lib/plugins/typescript.js +3 -1
- package/lib/plugins/typescript.mjs +3 -1
- package/lib/plugins/unicorn.js +5 -5
- package/lib/plugins/unicorn.mjs +5 -5
- package/lib/rules.js +1 -1
- package/lib/rules.mjs +1 -1
- package/package.json +2 -2
package/lib/plugins/react/jsx.js
CHANGED
|
@@ -38,7 +38,7 @@ var _default = {
|
|
|
38
38
|
"react/jsx-no-script-url": "error",
|
|
39
39
|
"react/jsx-no-target-blank": "error",
|
|
40
40
|
"react/jsx-no-undef": "error",
|
|
41
|
-
"react/jsx-no-useless-fragment": "
|
|
41
|
+
"react/jsx-no-useless-fragment": "off",
|
|
42
42
|
"react/jsx-one-expression-per-line": "error",
|
|
43
43
|
"react/jsx-pascal-case": "error",
|
|
44
44
|
"react/jsx-props-no-multi-spaces": "error",
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
"react/jsx-no-script-url": "error",
|
|
33
33
|
"react/jsx-no-target-blank": "error",
|
|
34
34
|
"react/jsx-no-undef": "error",
|
|
35
|
-
"react/jsx-no-useless-fragment": "
|
|
35
|
+
"react/jsx-no-useless-fragment": "off",
|
|
36
36
|
"react/jsx-one-expression-per-line": "error",
|
|
37
37
|
"react/jsx-pascal-case": "error",
|
|
38
38
|
"react/jsx-props-no-multi-spaces": "error",
|
|
@@ -22,7 +22,9 @@ const rules = {
|
|
|
22
22
|
"@typescript-eslint/ban-types": "error",
|
|
23
23
|
"@typescript-eslint/brace-style": "error",
|
|
24
24
|
"@typescript-eslint/class-literal-property-style": "error",
|
|
25
|
-
"@typescript-eslint/comma-dangle": "error",
|
|
25
|
+
"@typescript-eslint/comma-dangle": ["error", {
|
|
26
|
+
generics: "ignore"
|
|
27
|
+
}],
|
|
26
28
|
"@typescript-eslint/comma-spacing": "error",
|
|
27
29
|
"@typescript-eslint/consistent-indexed-object-style": "error",
|
|
28
30
|
"@typescript-eslint/consistent-type-assertions": ["error", {
|
|
@@ -14,7 +14,9 @@ const rules = {
|
|
|
14
14
|
"@typescript-eslint/ban-types": "error",
|
|
15
15
|
"@typescript-eslint/brace-style": "error",
|
|
16
16
|
"@typescript-eslint/class-literal-property-style": "error",
|
|
17
|
-
"@typescript-eslint/comma-dangle": "error",
|
|
17
|
+
"@typescript-eslint/comma-dangle": ["error", {
|
|
18
|
+
generics: "ignore"
|
|
19
|
+
}],
|
|
18
20
|
"@typescript-eslint/comma-spacing": "error",
|
|
19
21
|
"@typescript-eslint/consistent-indexed-object-style": "error",
|
|
20
22
|
"@typescript-eslint/consistent-type-assertions": ["error", {
|
package/lib/plugins/unicorn.js
CHANGED
|
@@ -27,7 +27,7 @@ var _default = {
|
|
|
27
27
|
"unicorn/new-for-builtins": "error",
|
|
28
28
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
29
29
|
"unicorn/no-array-callback-reference": "error",
|
|
30
|
-
"unicorn/no-array-for-each": "
|
|
30
|
+
"unicorn/no-array-for-each": "off",
|
|
31
31
|
"unicorn/no-array-method-this-argument": "error",
|
|
32
32
|
"unicorn/no-array-push-push": "error",
|
|
33
33
|
"unicorn/no-array-reduce": "error",
|
|
@@ -111,16 +111,16 @@ var _default = {
|
|
|
111
111
|
arguments: false
|
|
112
112
|
},
|
|
113
113
|
doc: {
|
|
114
|
-
document:
|
|
114
|
+
document: false
|
|
115
115
|
},
|
|
116
116
|
docs: {
|
|
117
|
-
documents:
|
|
117
|
+
documents: false
|
|
118
118
|
},
|
|
119
119
|
env: {
|
|
120
|
-
environment:
|
|
120
|
+
environment: false
|
|
121
121
|
},
|
|
122
122
|
envs: {
|
|
123
|
-
environments:
|
|
123
|
+
environments: false
|
|
124
124
|
},
|
|
125
125
|
param: {
|
|
126
126
|
parameter: false
|
package/lib/plugins/unicorn.mjs
CHANGED
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
"unicorn/new-for-builtins": "error",
|
|
22
22
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
23
23
|
"unicorn/no-array-callback-reference": "error",
|
|
24
|
-
"unicorn/no-array-for-each": "
|
|
24
|
+
"unicorn/no-array-for-each": "off",
|
|
25
25
|
"unicorn/no-array-method-this-argument": "error",
|
|
26
26
|
"unicorn/no-array-push-push": "error",
|
|
27
27
|
"unicorn/no-array-reduce": "error",
|
|
@@ -105,16 +105,16 @@ export default {
|
|
|
105
105
|
arguments: false
|
|
106
106
|
},
|
|
107
107
|
doc: {
|
|
108
|
-
document:
|
|
108
|
+
document: false
|
|
109
109
|
},
|
|
110
110
|
docs: {
|
|
111
|
-
documents:
|
|
111
|
+
documents: false
|
|
112
112
|
},
|
|
113
113
|
env: {
|
|
114
|
-
environment:
|
|
114
|
+
environment: false
|
|
115
115
|
},
|
|
116
116
|
envs: {
|
|
117
|
-
environments:
|
|
117
|
+
environments: false
|
|
118
118
|
},
|
|
119
119
|
param: {
|
|
120
120
|
parameter: false
|
package/lib/rules.js
CHANGED
|
@@ -35,7 +35,7 @@ var _default = {
|
|
|
35
35
|
ignorePattern: "webpackChunkName|http|https|eslint"
|
|
36
36
|
}],
|
|
37
37
|
"class-methods-use-this": "off",
|
|
38
|
-
"comma-dangle": "error",
|
|
38
|
+
"comma-dangle": ["error", "never"],
|
|
39
39
|
"comma-spacing": "error",
|
|
40
40
|
"comma-style": "error",
|
|
41
41
|
complexity: ["error", {
|
package/lib/rules.mjs
CHANGED
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
ignorePattern: "webpackChunkName|http|https|eslint"
|
|
25
25
|
}],
|
|
26
26
|
"class-methods-use-this": "off",
|
|
27
|
-
"comma-dangle": "error",
|
|
27
|
+
"comma-dangle": ["error", "never"],
|
|
28
28
|
"comma-spacing": "error",
|
|
29
29
|
"comma-style": "error",
|
|
30
30
|
complexity: ["error", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.82",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"types": "lib",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@newsteam/babel": "0.0.41",
|
|
53
53
|
"@newsteam/jasmine": "0.0.38",
|
|
54
54
|
"@types/eslint": "8.4.1",
|
|
55
|
-
"@types/node": "17.0.
|
|
55
|
+
"@types/node": "17.0.13",
|
|
56
56
|
"@types/react": "17.0.38",
|
|
57
57
|
"@typescript-eslint/eslint-plugin": "5.10.1",
|
|
58
58
|
"@typescript-eslint/parser": "5.10.1",
|