eslint-config-complete 4.3.0 → 4.4.0

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This ESLint config only contains rules from `eslint-plugin-perfectionist`:
3
+ * https://perfectionist.dev/rules
4
+ */
5
+ export const basePerfectionist: import("eslint/config").Config[];
6
+ //# sourceMappingURL=base-perfectionist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-perfectionist.d.ts","sourceRoot":"","sources":["../../src/base/base-perfectionist.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,iEA8DG"}
@@ -0,0 +1,49 @@
1
+ import esLintPluginPerfectionist from "eslint-plugin-perfectionist";
2
+ import { defineConfig } from "eslint/config";
3
+ /**
4
+ * This ESLint config only contains rules from `eslint-plugin-perfectionist`:
5
+ * https://perfectionist.dev/rules
6
+ */
7
+ export const basePerfectionist = defineConfig({
8
+ plugins: {
9
+ perfectionist: esLintPluginPerfectionist,
10
+ },
11
+ rules: {
12
+ "perfectionist/sort-array-includes": "error",
13
+ /** Disabled because class member ordering can be semantically significant. */
14
+ "perfectionist/sort-classes": "off",
15
+ /** Disabled because decorator ordering can be semantically significant. */
16
+ "perfectionist/sort-decorators": "off",
17
+ /** Disabled because enum ordering can be semantically significant. */
18
+ "perfectionist/sort-enums": "off",
19
+ "perfectionist/sort-export-attributes": "error",
20
+ /** Disabled since this is automatically handled by `prettier-plugin-organize-imports`. */
21
+ "perfectionist/sort-exports": "off",
22
+ "perfectionist/sort-heritage-clauses": "error",
23
+ "perfectionist/sort-import-attributes": "error",
24
+ /** Disabled since this is automatically handled by `prettier-plugin-organize-imports`. */
25
+ "perfectionist/sort-imports": "off",
26
+ /** Disabled because interface ordering can be semantically significant. */
27
+ "perfectionist/sort-interfaces": "off",
28
+ /** Disabled because intersection type ordering can be semantically significant. */
29
+ "perfectionist/sort-intersection-types": "off",
30
+ "perfectionist/sort-jsx-props": "error",
31
+ "perfectionist/sort-maps": "error",
32
+ /** Disabled because module ordering can be semantically significant. */
33
+ "perfectionist/sort-modules": "off",
34
+ /** Disabled since this is automatically handled by `prettier-plugin-organize-imports`. */
35
+ "perfectionist/sort-named-exports": "off",
36
+ /** Disabled since this is automatically handled by `prettier-plugin-organize-imports`. */
37
+ "perfectionist/sort-named-imports": "off",
38
+ /** Disabled because object type ordering can be semantically significant. */
39
+ "perfectionist/sort-object-types": "off",
40
+ /** Disabled because object keys are often not meant to be sorted in alphabetical order. */
41
+ "perfectionist/sort-objects": "off",
42
+ "perfectionist/sort-sets": "error",
43
+ /** Disabled because switch case ordering can be semantically significant. */
44
+ "perfectionist/sort-switch-case": "off",
45
+ /** Disabled because union type ordering can be semantically significant. */
46
+ "perfectionist/sort-union-types": "off",
47
+ "perfectionist/sort-variable-declarations": "error",
48
+ },
49
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,kEAyBE"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.js"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,kEA0BE"}
package/dist/base.js CHANGED
@@ -4,6 +4,7 @@ import { baseESLint } from "./base/base-eslint.js";
4
4
  import { baseImportX } from "./base/base-import-x.js";
5
5
  import { baseJSDoc } from "./base/base-jsdoc.js";
6
6
  import { baseN } from "./base/base-n.js";
7
+ import { basePerfectionist } from "./base/base-perfectionist.js";
7
8
  import { baseStylistic } from "./base/base-stylistic.js";
8
9
  import { baseTypeScriptESLint } from "./base/base-typescript-eslint.js";
9
10
  import { baseUnicorn } from "./base/base-unicorn.js";
@@ -18,7 +19,7 @@ export const completeConfigBase = defineConfig(
18
19
  // https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-and-ignores
19
20
  // TypeScript file extensions are enabled in the "base-typescript-eslint.js" file.
20
21
  ...baseESLint, ...baseTypeScriptESLint, ...baseStylistic, ...baseImportX, ...baseJSDoc, ...baseN, // "n" stands for Node.
21
- ...baseUnicorn,
22
+ ...basePerfectionist, ...baseUnicorn,
22
23
  // TODO: The `defineConfig` helper function is bugged.
23
24
  // @ts-expect-error https://github.com/typescript-eslint/typescript-eslint/issues/11543
24
25
  ...esLintPluginComplete.configs.recommended, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-complete",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "A sharable ESLint config for TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -40,6 +40,7 @@
40
40
  "eslint-plugin-import-x": "4.16.1",
41
41
  "eslint-plugin-jsdoc": "62.7.1",
42
42
  "eslint-plugin-n": "17.24.0",
43
+ "eslint-plugin-perfectionist": "5.6.0",
43
44
  "eslint-plugin-unicorn": "63.0.0",
44
45
  "jsonc-eslint-parser": "3.1.0",
45
46
  "typescript-eslint": "8.56.1"
@@ -50,7 +51,7 @@
50
51
  "@types/eslint-config-prettier": "6.11.3",
51
52
  "@types/node": "25.3.2",
52
53
  "@typescript-eslint/utils": "8.56.1",
53
- "complete-common": "2.18.0",
54
+ "complete-common": "2.18.1",
54
55
  "complete-node": "16.2.0",
55
56
  "eslint-config-prettier": "10.1.8",
56
57
  "extract-comments": "1.1.0",