eslint-config-deepcrawl 16.0.0 → 16.0.2

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.
Files changed (2) hide show
  1. package/index.js +4 -11
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -8,13 +8,13 @@ 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"
11
12
  import promisePlugin from "eslint-plugin-promise";
12
13
  import sonarjsPlugin from "eslint-plugin-sonarjs";
13
14
  import typescriptEslint from "typescript-eslint";
14
15
 
15
16
  export default defineConfig([
16
17
  { linterOptions: { reportUnusedDisableDirectives: true } },
17
-
18
18
  eslintJs.configs.recommended,
19
19
  importXPlugin.flatConfigs.recommended,
20
20
  importXPlugin.flatConfigs.typescript,
@@ -29,7 +29,6 @@ export default defineConfig([
29
29
  "package-json/sort-collections": ["error", ["devDependencies", "dependencies", "peerDependencies", "config"]],
30
30
  },
31
31
  },
32
-
33
32
  {
34
33
  files: ["**/*.{cts,mts,ts,tsx}"],
35
34
  extends: [typescriptEslint.configs.recommendedTypeChecked],
@@ -39,7 +38,6 @@ export default defineConfig([
39
38
  files: ["**/*.{cjs,js,jsx,mjs}"],
40
39
  extends: [typescriptEslint.configs.disableTypeChecked],
41
40
  },
42
-
43
41
  {
44
42
  plugins: { "array-func": arrayFuncPlugin },
45
43
  rules: { "array-func/avoid-reverse": "error" },
@@ -74,9 +72,7 @@ export default defineConfig([
74
72
  "sonarjs/prefer-while": "error",
75
73
  },
76
74
  },
77
-
78
75
  eslintConfigPrettier,
79
-
80
76
  {
81
77
  files: ["**/*.{cts,mts,ts,tsx}"],
82
78
  rules: {
@@ -176,9 +172,8 @@ export default defineConfig([
176
172
  "@typescript-eslint/unified-signatures": "error",
177
173
  },
178
174
  },
179
-
180
175
  {
181
- plugins: { "@stylistic": stylisticPlugin },
176
+ plugins: { "@stylistic": stylisticPlugin, perfectionist },
182
177
  rules: {
183
178
  complexity: ["error", 15],
184
179
  "default-case-last": "error",
@@ -211,10 +206,6 @@ export default defineConfig([
211
206
  "max-classes-per-file": ["error", 1],
212
207
  "max-lines-per-function": ["warn", { max: 40, skipBlankLines: true, skipComments: true, IIFEs: true }],
213
208
  "max-params": ["error", 7],
214
- "@stylistic/max-len": [
215
- "error",
216
- { code: 120, ignoreComments: true, ignorePattern: "^(export|import)\\b", ignoreTemplateLiterals: true },
217
- ],
218
209
  "@stylistic/max-statements-per-line": ["error", { max: 1 }],
219
210
  "@stylistic/spaced-comment": "error",
220
211
  "n/no-missing-import": "off",
@@ -234,6 +225,8 @@ export default defineConfig([
234
225
  "no-self-assign": "error",
235
226
  "no-unreachable-loop": "error",
236
227
  "object-shorthand": "error",
228
+ "perfectionist/sort-intersection-types": "error",
229
+ "perfectionist/sort-union-types": "error",
237
230
  "prefer-template": "error",
238
231
  "promise/prefer-await-to-then": "error",
239
232
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-deepcrawl",
3
- "version": "16.0.0",
3
+ "version": "16.0.2",
4
4
  "description": "ESLint rules recommended by Lumar (formerly DeepCrawl).",
5
5
  "homepage": "https://github.com/deepcrawl/eslint-config",
6
6
  "bugs": {
@@ -32,6 +32,7 @@
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",
35
36
  "eslint-plugin-promise": "^7.3.0",
36
37
  "eslint-plugin-sonarjs": "^4.0.3",
37
38
  "typescript-eslint": "^8.59.4"
@@ -44,7 +45,7 @@
44
45
  "eslint": "^10.0.0",
45
46
  "typescript": ">=5.8"
46
47
  },
47
- "packageManager": "yarn@4.14.1",
48
+ "packageManager": "yarn@4.15.0",
48
49
  "publishConfig": {
49
50
  "registry": "https://registry.npmjs.org/"
50
51
  }