eslint-config-deepcrawl 16.0.4 → 16.0.5
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/index.js +18 -43
- package/package.json +2 -3
package/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import jestPlugin from "eslint-plugin-jest";
|
|
|
8
8
|
import nodePlugin from "eslint-plugin-n";
|
|
9
9
|
import noLoopsPlugin from "eslint-plugin-no-loops";
|
|
10
10
|
import packageJsonPlugin from "eslint-plugin-package-json";
|
|
11
|
-
import perfectionist from "eslint-plugin-perfectionist";
|
|
12
11
|
import promisePlugin from "eslint-plugin-promise";
|
|
13
12
|
import sonarjsPlugin from "eslint-plugin-sonarjs";
|
|
14
13
|
import typescriptEslint from "typescript-eslint";
|
|
@@ -38,29 +37,6 @@ export default defineConfig([
|
|
|
38
37
|
files: ["**/*.{cjs,js,jsx,mjs}"],
|
|
39
38
|
extends: [typescriptEslint.configs.disableTypeChecked],
|
|
40
39
|
},
|
|
41
|
-
{
|
|
42
|
-
plugins: { "import-x": importXPlugin },
|
|
43
|
-
files: ["**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}"],
|
|
44
|
-
rules: {
|
|
45
|
-
"import-x/default": "off",
|
|
46
|
-
"import-x/named": "off",
|
|
47
|
-
"import-x/namespace": "off",
|
|
48
|
-
"import-x/newline-after-import": "error",
|
|
49
|
-
"import-x/no-default-export": "error",
|
|
50
|
-
"import-x/no-named-as-default": "off",
|
|
51
|
-
"import-x/no-named-as-default-member": "off",
|
|
52
|
-
"import-x/no-relative-packages": "error",
|
|
53
|
-
"import-x/no-unresolved": "off",
|
|
54
|
-
"import-x/order": [
|
|
55
|
-
"error",
|
|
56
|
-
{
|
|
57
|
-
alphabetize: { order: "asc", caseInsensitive: true },
|
|
58
|
-
"newlines-between": "always",
|
|
59
|
-
groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
40
|
{
|
|
65
41
|
plugins: { "array-func": arrayFuncPlugin },
|
|
66
42
|
rules: { "array-func/avoid-reverse": "error" },
|
|
@@ -196,10 +172,27 @@ export default defineConfig([
|
|
|
196
172
|
},
|
|
197
173
|
},
|
|
198
174
|
{
|
|
199
|
-
plugins: { "@stylistic": stylisticPlugin
|
|
175
|
+
plugins: { "@stylistic": stylisticPlugin },
|
|
200
176
|
rules: {
|
|
201
177
|
complexity: ["error", 15],
|
|
202
178
|
"default-case-last": "error",
|
|
179
|
+
"import-x/default": "off",
|
|
180
|
+
"import-x/named": "off",
|
|
181
|
+
"import-x/namespace": "off",
|
|
182
|
+
"import-x/newline-after-import": "error",
|
|
183
|
+
"import-x/no-default-export": "error",
|
|
184
|
+
"import-x/no-named-as-default": "off",
|
|
185
|
+
"import-x/no-named-as-default-member": "off",
|
|
186
|
+
"import-x/no-relative-packages": "error",
|
|
187
|
+
"import-x/no-unresolved": "off",
|
|
188
|
+
"import-x/order": [
|
|
189
|
+
"error",
|
|
190
|
+
{
|
|
191
|
+
alphabetize: { order: "asc", caseInsensitive: true },
|
|
192
|
+
"newlines-between": "always",
|
|
193
|
+
groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
|
|
194
|
+
},
|
|
195
|
+
],
|
|
203
196
|
"jest/expect-expect": "error",
|
|
204
197
|
"jest/padding-around-after-all-blocks": "error",
|
|
205
198
|
"jest/padding-around-after-each-blocks": "error",
|
|
@@ -231,24 +224,6 @@ export default defineConfig([
|
|
|
231
224
|
"no-self-assign": "error",
|
|
232
225
|
"no-unreachable-loop": "error",
|
|
233
226
|
"object-shorthand": "error",
|
|
234
|
-
"perfectionist/sort-intersection-types": [
|
|
235
|
-
"error",
|
|
236
|
-
{
|
|
237
|
-
type: "natural",
|
|
238
|
-
order: "asc",
|
|
239
|
-
ignoreCase: true,
|
|
240
|
-
specialCharacters: "keep",
|
|
241
|
-
},
|
|
242
|
-
],
|
|
243
|
-
"perfectionist/sort-union-types": [
|
|
244
|
-
"error",
|
|
245
|
-
{
|
|
246
|
-
type: "natural",
|
|
247
|
-
order: "asc",
|
|
248
|
-
ignoreCase: true,
|
|
249
|
-
specialCharacters: "keep",
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
227
|
"prefer-template": "error",
|
|
253
228
|
"promise/prefer-await-to-then": "error",
|
|
254
229
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-deepcrawl",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.5",
|
|
4
4
|
"description": "ESLint rules recommended by Lumar (formerly DeepCrawl).",
|
|
5
5
|
"homepage": "https://github.com/deepcrawl/eslint-config",
|
|
6
6
|
"bugs": {
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"eslint-plugin-n": "^18.0.1",
|
|
33
33
|
"eslint-plugin-no-loops": "^0.4.0",
|
|
34
34
|
"eslint-plugin-package-json": "^1.1.0",
|
|
35
|
-
"eslint-plugin-perfectionist": "^5.9.0",
|
|
36
35
|
"eslint-plugin-promise": "^7.3.0",
|
|
37
36
|
"eslint-plugin-sonarjs": "^4.0.3",
|
|
38
37
|
"typescript-eslint": "^8.59.4"
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
"eslint": "^10.0.0",
|
|
46
45
|
"typescript": ">=5.8"
|
|
47
46
|
},
|
|
48
|
-
"packageManager": "yarn@4.
|
|
47
|
+
"packageManager": "yarn@4.14.1",
|
|
49
48
|
"publishConfig": {
|
|
50
49
|
"registry": "https://registry.npmjs.org/"
|
|
51
50
|
}
|