eslint-config-deepcrawl 16.0.1 → 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 -1
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -8,6 +8,7 @@ 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";
@@ -172,7 +173,7 @@ export default defineConfig([
172
173
  },
173
174
  },
174
175
  {
175
- plugins: { "@stylistic": stylisticPlugin },
176
+ plugins: { "@stylistic": stylisticPlugin, perfectionist },
176
177
  rules: {
177
178
  complexity: ["error", 15],
178
179
  "default-case-last": "error",
@@ -224,6 +225,8 @@ export default defineConfig([
224
225
  "no-self-assign": "error",
225
226
  "no-unreachable-loop": "error",
226
227
  "object-shorthand": "error",
228
+ "perfectionist/sort-intersection-types": "error",
229
+ "perfectionist/sort-union-types": "error",
227
230
  "prefer-template": "error",
228
231
  "promise/prefer-await-to-then": "error",
229
232
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-deepcrawl",
3
- "version": "16.0.1",
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
  }