@10stars/config 9.3.1 → 9.5.1
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/.eslintrc.js +3 -2
- package/package.json +3 -3
package/.eslintrc.js
CHANGED
|
@@ -63,7 +63,6 @@ module.exports = {
|
|
|
63
63
|
`regexp`,
|
|
64
64
|
`simple-import-sort`,
|
|
65
65
|
`sort-keys-fix`,
|
|
66
|
-
// 'prettier' commented as we don't want to run prettier through eslint because of performance
|
|
67
66
|
],
|
|
68
67
|
env: {
|
|
69
68
|
browser: true,
|
|
@@ -77,11 +76,12 @@ module.exports = {
|
|
|
77
76
|
`plugin:@10stars/react-hooks/recommended`,
|
|
78
77
|
`plugin:regexp/recommended`,
|
|
79
78
|
|
|
79
|
+
`prettier`, // disables all formatting rules see: https://github.com/prettier/eslint-config-prettier
|
|
80
|
+
|
|
80
81
|
// We use only few custom rules from the import plugin and we override some aspects with simple-import-sort
|
|
81
82
|
// "plugin:import/typescript",
|
|
82
83
|
// "plugin:import/warnings",
|
|
83
84
|
// "plugin:import/errors",
|
|
84
|
-
`prettier`, // see: https://github.com/prettier/eslint-config-prettier
|
|
85
85
|
],
|
|
86
86
|
settings: {
|
|
87
87
|
"import/parsers": { "@typescript-eslint/parser": [`.ts`, `.tsx`] },
|
|
@@ -183,6 +183,7 @@ module.exports = {
|
|
|
183
183
|
"@typescript-eslint/no-unsafe-assignment": type.ignore,
|
|
184
184
|
"@typescript-eslint/no-unsafe-member-access": type.ignore,
|
|
185
185
|
"@typescript-eslint/no-unsafe-return": type.ignore,
|
|
186
|
+
"@typescript-eslint/no-unsafe-enum-comparison": type.ignore, // generated enums would be considered unsafe, so the rule must be turned off
|
|
186
187
|
"@typescript-eslint/no-non-null-assertion": type.ignore, // sometimes TS incorrectly asserts, so there's a need to override
|
|
187
188
|
"@typescript-eslint/unbound-method": type.ignore,
|
|
188
189
|
// other
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@10stars/config",
|
|
7
|
-
"version": "9.
|
|
7
|
+
"version": "9.5.1",
|
|
8
8
|
"author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"module": "./src/index.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
33
33
|
"@typescript-eslint/parser": "^6.0.0",
|
|
34
34
|
"builtin-modules": "^3.3.0",
|
|
35
|
-
"esbuild": "~0.19.
|
|
36
|
-
"tsx": "^
|
|
35
|
+
"esbuild": "~0.19.5",
|
|
36
|
+
"tsx": "^4.0.0",
|
|
37
37
|
"eslint": "^8.0.0",
|
|
38
38
|
"eslint-config-prettier": "^9.0.0",
|
|
39
39
|
"eslint-plugin-import": "^2.0.0",
|