@petbee/eslint-config 1.0.7 → 1.0.8
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/package.json +3 -3
- package/rules/imports.js +1 -7
- package/rules/typescript.js +1 -6
- package/rules/variables.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petbee/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Petbee's eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"typescript": "^4.0.0 || ^5.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@petbee/prettier-config": "^1.0.
|
|
57
|
+
"@petbee/prettier-config": "^1.0.2",
|
|
58
58
|
"@types/react": "18.2.37",
|
|
59
59
|
"eslint": "8.53.0",
|
|
60
60
|
"prettier": "3.0.3",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c82ef9eb64c9c3383f93fa757f38efb579f3aa37"
|
|
68
68
|
}
|
package/rules/imports.js
CHANGED
|
@@ -17,13 +17,7 @@ module.exports = {
|
|
|
17
17
|
'error',
|
|
18
18
|
{
|
|
19
19
|
'newlines-between': 'always',
|
|
20
|
-
groups: [
|
|
21
|
-
'builtin',
|
|
22
|
-
'external',
|
|
23
|
-
'internal',
|
|
24
|
-
['parent', 'sibling', 'index'],
|
|
25
|
-
'type',
|
|
26
|
-
],
|
|
20
|
+
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index'], 'type'],
|
|
27
21
|
},
|
|
28
22
|
],
|
|
29
23
|
|
package/rules/typescript.js
CHANGED
|
@@ -184,12 +184,7 @@ module.exports = hasTypescript
|
|
|
184
184
|
|
|
185
185
|
// Enforce that when adding two variables, operands must both be of type number or of type string
|
|
186
186
|
// https://typescript-eslint.io/rules/restrict-plus-operands/
|
|
187
|
-
'@typescript-eslint/restrict-plus-operands': [
|
|
188
|
-
'error',
|
|
189
|
-
{
|
|
190
|
-
skipCompoundAssignments: true,
|
|
191
|
-
},
|
|
192
|
-
],
|
|
187
|
+
'@typescript-eslint/restrict-plus-operands': ['error'],
|
|
193
188
|
|
|
194
189
|
// Enforce optional chaining over chaining AND (&&) operators
|
|
195
190
|
// https://typescript-eslint.io/rules/prefer-optional-chain/
|
package/rules/variables.js
CHANGED
|
@@ -8,9 +8,7 @@ module.exports = {
|
|
|
8
8
|
|
|
9
9
|
// Disallow specific globals
|
|
10
10
|
// https://eslint.org/docs/rules/no-restricted-globals
|
|
11
|
-
'no-restricted-globals': ['error', 'isFinite', 'isNaN'].concat(
|
|
12
|
-
confusingBrowserGlobals
|
|
13
|
-
),
|
|
11
|
+
'no-restricted-globals': ['error', 'isFinite', 'isNaN'].concat(confusingBrowserGlobals),
|
|
14
12
|
|
|
15
13
|
// Disallow declaration of variables already declared in the outer scope
|
|
16
14
|
// https://eslint.org/docs/rules/no-shadow
|