eslint-config-deepcrawl 16.0.2 → 16.0.3

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 +19 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8,7 +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
+ import perfectionist from "eslint-plugin-perfectionist";
12
12
  import promisePlugin from "eslint-plugin-promise";
13
13
  import sonarjsPlugin from "eslint-plugin-sonarjs";
14
14
  import typescriptEslint from "typescript-eslint";
@@ -225,8 +225,24 @@ export default defineConfig([
225
225
  "no-self-assign": "error",
226
226
  "no-unreachable-loop": "error",
227
227
  "object-shorthand": "error",
228
- "perfectionist/sort-intersection-types": "error",
229
- "perfectionist/sort-union-types": "error",
228
+ "perfectionist/sort-intersection-types": [
229
+ "error",
230
+ {
231
+ type: "natural",
232
+ order: "asc",
233
+ ignoreCase: true,
234
+ specialCharacters: "keep",
235
+ },
236
+ ],
237
+ "perfectionist/sort-union-types": [
238
+ "error",
239
+ {
240
+ type: "natural",
241
+ order: "asc",
242
+ ignoreCase: true,
243
+ specialCharacters: "keep",
244
+ },
245
+ ],
230
246
  "prefer-template": "error",
231
247
  "promise/prefer-await-to-then": "error",
232
248
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-deepcrawl",
3
- "version": "16.0.2",
3
+ "version": "16.0.3",
4
4
  "description": "ESLint rules recommended by Lumar (formerly DeepCrawl).",
5
5
  "homepage": "https://github.com/deepcrawl/eslint-config",
6
6
  "bugs": {