@xsynaptic/eslint-config 3.3.1 → 3.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alexander Synaptic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # ESLint Config
2
+
3
+ This is a shared ESLint config for use with several Astro projects. It is not intended for public consumption.
package/dist/index.d.mts CHANGED
@@ -1,9 +1,11 @@
1
- import { Config, ConfigWithExtendsArray } from "@eslint/config-helpers";
1
+ import { Config, ConfigWithExtends, ConfigWithExtendsArray } from "@eslint/config-helpers";
2
2
 
3
3
  //#region src/index.d.ts
4
+ declare function getWebComponentConfig(files: Array<string>): ConfigWithExtends;
4
5
  declare function getConfig(customConfig?: ConfigWithExtendsArray, options?: {
5
- customGlobals?: Record<string, "readonly" | "writeable">;
6
- parserOptions?: NonNullable<Config["languageOptions"]>["parserOptions"];
6
+ customGlobals?: Record<string, 'readonly' | 'writeable'>;
7
+ parserOptions?: NonNullable<Config['languageOptions']>['parserOptions'];
7
8
  }): ConfigWithExtendsArray;
8
9
  //#endregion
9
- export { getConfig };
10
+ export { getConfig, getWebComponentConfig };
11
+ //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1 +1,99 @@
1
- import{defineConfig as e}from"@eslint/config-helpers";import t from"@eslint/js";import n from"eslint-plugin-perfectionist";import r from"eslint-plugin-unicorn";import i from"globals";import a from"typescript-eslint";function o(o,s){let c=s?.customGlobals??{};return e(t.configs.recommended,...a.configs.strictTypeChecked,...a.configs.stylisticTypeChecked,{languageOptions:{globals:{...i.builtin,...i.nodeBuiltin,...c},parser:a.parser,parserOptions:s?.parserOptions??{projectService:!0}},plugins:{"@typescript-eslint":a.plugin},rules:{"@typescript-eslint/array-type":[`warn`,{default:`generic`}],"@typescript-eslint/no-non-null-assertion":`off`,"@typescript-eslint/no-unused-vars":[`error`,{argsIgnorePattern:`^_`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,ignoreRestSiblings:!0,varsIgnorePattern:`^_`}],"@typescript-eslint/consistent-type-imports":[`error`,{fixStyle:`separate-type-imports`,prefer:`type-imports`}],"@typescript-eslint/prefer-nullish-coalescing":`off`,"no-restricted-syntax":[`error`,{message:"Separate type imports into their own `import type` statement.",selector:`ImportDeclaration[importKind="value"] ImportSpecifier[importKind="type"]`}]}},r.configs.recommended,{rules:{"unicorn/filename-case":`warn`,"unicorn/no-array-callback-reference":`off`,"unicorn/prevent-abbreviations":`off`}},{plugins:{perfectionist:n},rules:{"perfectionist/sort-classes":`off`,"perfectionist/sort-imports":[`error`,{type:`natural`,order:`asc`,internalPattern:[`^~/.*`,`^@/.*`,`^#.*`]}],"perfectionist/sort-interfaces":`off`,"perfectionist/sort-jsx-props":`off`,"perfectionist/sort-maps":`off`,"perfectionist/sort-modules":`off`,"perfectionist/sort-objects":`off`,"perfectionist/sort-object-types":`off`,"perfectionist/sort-sets":`off`,"perfectionist/sort-switch-case":`off`,"perfectionist/sort-union-types":`off`}},...o??[])}export{o as getConfig};
1
+ import { defineConfig } from "@eslint/config-helpers";
2
+ import eslint from "@eslint/js";
3
+ import perfectionist from "eslint-plugin-perfectionist";
4
+ import unicornPlugin from "eslint-plugin-unicorn";
5
+ import { configs } from "eslint-plugin-wc";
6
+ import globals from "globals";
7
+ import tseslint from "typescript-eslint";
8
+ //#region src/index.ts
9
+ function getWebComponentConfig(files) {
10
+ const bestPractice = configs["flat/best-practice"];
11
+ return {
12
+ ...bestPractice,
13
+ files,
14
+ rules: {
15
+ ...bestPractice?.rules,
16
+ "wc/define-tag-after-class-definition": "error",
17
+ "wc/guard-define-call": "error",
18
+ "wc/max-elements-per-file": "error",
19
+ "wc/no-child-traversal-in-connectedcallback": "off",
20
+ "wc/no-constructor": "error",
21
+ "wc/no-exports-with-element": "error",
22
+ "wc/no-method-prefixed-with-on": "error"
23
+ }
24
+ };
25
+ }
26
+ function getConfig(customConfig, options) {
27
+ const customGlobals = options?.customGlobals ?? {};
28
+ return defineConfig(...[
29
+ eslint.configs.recommended,
30
+ ...tseslint.configs.strictTypeChecked,
31
+ ...tseslint.configs.stylisticTypeChecked,
32
+ {
33
+ languageOptions: {
34
+ globals: {
35
+ ...globals.builtin,
36
+ ...globals.nodeBuiltin,
37
+ ...customGlobals
38
+ },
39
+ parser: tseslint.parser,
40
+ parserOptions: options?.parserOptions ?? { projectService: true }
41
+ },
42
+ plugins: { "@typescript-eslint": tseslint.plugin },
43
+ rules: {
44
+ "@typescript-eslint/array-type": ["warn", { default: "generic" }],
45
+ "@typescript-eslint/no-non-null-assertion": "off",
46
+ "@typescript-eslint/no-unused-vars": ["error", {
47
+ argsIgnorePattern: "^_",
48
+ caughtErrorsIgnorePattern: "^_",
49
+ destructuredArrayIgnorePattern: "^_",
50
+ ignoreRestSiblings: true,
51
+ varsIgnorePattern: "^_"
52
+ }],
53
+ "@typescript-eslint/consistent-type-imports": ["error", {
54
+ fixStyle: "separate-type-imports",
55
+ prefer: "type-imports"
56
+ }],
57
+ "@typescript-eslint/prefer-nullish-coalescing": "off",
58
+ "no-restricted-syntax": ["error", {
59
+ message: "Separate type imports into their own `import type` statement.",
60
+ selector: "ImportDeclaration[importKind=\"value\"] ImportSpecifier[importKind=\"type\"]"
61
+ }]
62
+ }
63
+ },
64
+ unicornPlugin.configs.recommended,
65
+ { rules: {
66
+ "unicorn/filename-case": "warn",
67
+ "unicorn/no-array-callback-reference": "off",
68
+ "unicorn/prevent-abbreviations": "off"
69
+ } },
70
+ {
71
+ plugins: { perfectionist },
72
+ rules: {
73
+ "perfectionist/sort-classes": "off",
74
+ "perfectionist/sort-imports": ["error", {
75
+ type: "natural",
76
+ order: "asc",
77
+ internalPattern: [
78
+ "^~/.*",
79
+ "^@/.*",
80
+ "^#.*"
81
+ ]
82
+ }],
83
+ "perfectionist/sort-interfaces": "off",
84
+ "perfectionist/sort-jsx-props": "off",
85
+ "perfectionist/sort-maps": "off",
86
+ "perfectionist/sort-modules": "off",
87
+ "perfectionist/sort-objects": "off",
88
+ "perfectionist/sort-object-types": "off",
89
+ "perfectionist/sort-sets": "off",
90
+ "perfectionist/sort-switch-case": "off",
91
+ "perfectionist/sort-union-types": "off"
92
+ }
93
+ }
94
+ ], ...customConfig ?? []);
95
+ }
96
+ //#endregion
97
+ export { getConfig, getWebComponentConfig };
98
+
99
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["webComponentConfigs"],"sources":["../src/index.ts"],"sourcesContent":["import type { Config, ConfigWithExtends, ConfigWithExtendsArray } from '@eslint/config-helpers';\n\nimport { defineConfig } from '@eslint/config-helpers';\nimport eslint from '@eslint/js';\nimport perfectionist from 'eslint-plugin-perfectionist';\nimport unicornPlugin from 'eslint-plugin-unicorn';\nimport { configs as webComponentConfigs } from 'eslint-plugin-wc';\nimport globals from 'globals';\nimport tseslint from 'typescript-eslint';\n\n// Opt-in rules for authoring native web components\nexport function getWebComponentConfig(files: Array<string>): ConfigWithExtends {\n\tconst bestPractice = webComponentConfigs['flat/best-practice'];\n\n\treturn {\n\t\t...bestPractice,\n\t\tfiles,\n\t\trules: {\n\t\t\t...bestPractice?.rules,\n\t\t\t'wc/define-tag-after-class-definition': 'error',\n\t\t\t'wc/guard-define-call': 'error',\n\t\t\t'wc/max-elements-per-file': 'error',\n\t\t\t'wc/no-child-traversal-in-connectedcallback': 'off',\n\t\t\t'wc/no-constructor': 'error',\n\t\t\t'wc/no-exports-with-element': 'error',\n\t\t\t'wc/no-method-prefixed-with-on': 'error',\n\t\t},\n\t};\n}\n\nexport function getConfig(\n\tcustomConfig?: ConfigWithExtendsArray,\n\toptions?: {\n\t\tcustomGlobals?: Record<string, 'readonly' | 'writeable'>;\n\t\tparserOptions?: NonNullable<Config['languageOptions']>['parserOptions'];\n\t},\n): ConfigWithExtendsArray {\n\tconst customGlobals = options?.customGlobals ?? {};\n\n\tconst baseConfig = [\n\t\teslint.configs.recommended,\n\t\t...tseslint.configs.strictTypeChecked,\n\t\t...tseslint.configs.stylisticTypeChecked,\n\t\t{\n\t\t\tlanguageOptions: {\n\t\t\t\tglobals: {\n\t\t\t\t\t...globals.builtin,\n\t\t\t\t\t...globals.nodeBuiltin,\n\t\t\t\t\t...customGlobals,\n\t\t\t\t},\n\t\t\t\tparser: tseslint.parser,\n\t\t\t\tparserOptions: options?.parserOptions ?? {\n\t\t\t\t\tprojectService: true,\n\t\t\t\t},\n\t\t\t},\n\t\t\tplugins: {\n\t\t\t\t'@typescript-eslint': tseslint.plugin,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t'@typescript-eslint/array-type': ['warn', { default: 'generic' }],\n\t\t\t\t'@typescript-eslint/no-non-null-assertion': 'off',\n\t\t\t\t'@typescript-eslint/no-unused-vars': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{\n\t\t\t\t\t\targsIgnorePattern: '^_',\n\t\t\t\t\t\tcaughtErrorsIgnorePattern: '^_',\n\t\t\t\t\t\tdestructuredArrayIgnorePattern: '^_',\n\t\t\t\t\t\tignoreRestSiblings: true,\n\t\t\t\t\t\tvarsIgnorePattern: '^_',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'@typescript-eslint/consistent-type-imports': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{ fixStyle: 'separate-type-imports', prefer: 'type-imports' },\n\t\t\t\t],\n\t\t\t\t'@typescript-eslint/prefer-nullish-coalescing': 'off',\n\t\t\t\t'no-restricted-syntax': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: 'Separate type imports into their own `import type` statement.',\n\t\t\t\t\t\tselector: 'ImportDeclaration[importKind=\"value\"] ImportSpecifier[importKind=\"type\"]',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\tunicornPlugin.configs.recommended,\n\t\t{\n\t\t\trules: {\n\t\t\t\t'unicorn/filename-case': 'warn',\n\t\t\t\t'unicorn/no-array-callback-reference': 'off', // I prefer this pattern for filtering/sorting content\n\t\t\t\t'unicorn/prevent-abbreviations': 'off', // I *like* abbreviations!\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tplugins: {\n\t\t\t\tperfectionist,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t'perfectionist/sort-classes': 'off',\n\t\t\t\t'perfectionist/sort-imports': [\n\t\t\t\t\t'error',\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: 'natural',\n\t\t\t\t\t\torder: 'asc',\n\t\t\t\t\t\tinternalPattern: ['^~/.*', '^@/.*', '^#.*'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'perfectionist/sort-interfaces': 'off',\n\t\t\t\t'perfectionist/sort-jsx-props': 'off',\n\t\t\t\t'perfectionist/sort-maps': 'off',\n\t\t\t\t'perfectionist/sort-modules': 'off',\n\t\t\t\t'perfectionist/sort-objects': 'off',\n\t\t\t\t'perfectionist/sort-object-types': 'off',\n\t\t\t\t'perfectionist/sort-sets': 'off',\n\t\t\t\t'perfectionist/sort-switch-case': 'off',\n\t\t\t\t'perfectionist/sort-union-types': 'off',\n\t\t\t},\n\t\t},\n\t] satisfies Array<ConfigWithExtends>;\n\n\treturn defineConfig(...baseConfig, ...(customConfig ?? []));\n}\n"],"mappings":";;;;;;;;AAWA,SAAgB,sBAAsB,OAAyC;CAC9E,MAAM,eAAeA,QAAoB;CAEzC,OAAO;EACN,GAAG;EACH;EACA,OAAO;GACN,GAAG,cAAc;GACjB,wCAAwC;GACxC,wBAAwB;GACxB,4BAA4B;GAC5B,8CAA8C;GAC9C,qBAAqB;GACrB,8BAA8B;GAC9B,iCAAiC;EAClC;CACD;AACD;AAEA,SAAgB,UACf,cACA,SAIyB;CACzB,MAAM,gBAAgB,SAAS,iBAAiB,CAAC;CAmFjD,OAAO,aAAa,GAAG;EAhFtB,OAAO,QAAQ;EACf,GAAG,SAAS,QAAQ;EACpB,GAAG,SAAS,QAAQ;EACpB;GACC,iBAAiB;IAChB,SAAS;KACR,GAAG,QAAQ;KACX,GAAG,QAAQ;KACX,GAAG;IACJ;IACA,QAAQ,SAAS;IACjB,eAAe,SAAS,iBAAiB,EACxC,gBAAgB,KACjB;GACD;GACA,SAAS,EACR,sBAAsB,SAAS,OAChC;GACA,OAAO;IACN,iCAAiC,CAAC,QAAQ,EAAE,SAAS,UAAU,CAAC;IAChE,4CAA4C;IAC5C,qCAAqC,CACpC,SACA;KACC,mBAAmB;KACnB,2BAA2B;KAC3B,gCAAgC;KAChC,oBAAoB;KACpB,mBAAmB;IACpB,CACD;IACA,8CAA8C,CAC7C,SACA;KAAE,UAAU;KAAyB,QAAQ;IAAe,CAC7D;IACA,gDAAgD;IAChD,wBAAwB,CACvB,SACA;KACC,SAAS;KACT,UAAU;IACX,CACD;GACD;EACD;EACA,cAAc,QAAQ;EACtB,EACC,OAAO;GACN,yBAAyB;GACzB,uCAAuC;GACvC,iCAAiC;EAClC,EACD;EACA;GACC,SAAS,EACR,cACD;GACA,OAAO;IACN,8BAA8B;IAC9B,8BAA8B,CAC7B,SACA;KACC,MAAM;KACN,OAAO;KACP,iBAAiB;MAAC;MAAS;MAAS;KAAM;IAC3C,CACD;IACA,iCAAiC;IACjC,gCAAgC;IAChC,2BAA2B;IAC3B,8BAA8B;IAC9B,8BAA8B;IAC9B,mCAAmC;IACnC,2BAA2B;IAC3B,kCAAkC;IAClC,kCAAkC;GACnC;EACD;CAG+B,GAAG,GAAI,gBAAgB,CAAC,CAAE;AAC3D"}
package/package.json CHANGED
@@ -1,41 +1,48 @@
1
1
  {
2
- "name": "@xsynaptic/eslint-config",
3
- "version": "3.3.1",
4
- "description": "A common ESLint config factory for TypeScript projects",
5
- "type": "module",
6
- "license": "MIT",
7
- "main": "./dist/index.mjs",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.mts",
11
- "import": "./dist/index.mjs"
12
- }
13
- },
14
- "files": [
15
- "dist",
16
- "src"
17
- ],
18
- "scripts": {
19
- "build": "tsdown",
20
- "build-tsc": "tsc --build",
21
- "prepublishOnly": "pnpm build",
22
- "check": "prettier --check . && tsc --noEmit && eslint",
23
- "format": "prettier --write . && tsc --noEmit && eslint --fix"
24
- },
25
- "dependencies": {
26
- "@eslint/config-helpers": "^0.5.5",
27
- "@eslint/js": "^9.39.4",
28
- "eslint-plugin-perfectionist": "^5.9.0",
29
- "eslint-plugin-unicorn": "^64.0.0",
30
- "globals": "^17.6.0",
31
- "typescript-eslint": "^8.59.1"
32
- },
33
- "devDependencies": {
34
- "eslint": "^9.39.4",
35
- "jiti": "^2.6.1",
36
- "prettier": "^3.8.3",
37
- "tsdown": "^0.21.10",
38
- "typescript": "^6.0.3"
39
- },
40
- "packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501"
41
- }
2
+ "name": "@xsynaptic/eslint-config",
3
+ "version": "3.4.0",
4
+ "description": "An ESLint config factory for TypeScript projects",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Alexander Synaptic <x@synapticism.com>",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/xsynaptic/astro-lab.git",
11
+ "directory": "packages/eslint-config"
12
+ },
13
+ "homepage": "https://github.com/xsynaptic/astro-lab/tree/main/packages/eslint-config#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/xsynaptic/astro-lab/issues"
16
+ },
17
+ "keywords": [
18
+ "eslint",
19
+ "eslint-config",
20
+ "typescript"
21
+ ],
22
+ "main": "./dist/index.mjs",
23
+ "types": "./dist/index.d.mts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.mts",
27
+ "import": "./dist/index.mjs"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "sideEffects": false,
34
+ "dependencies": {
35
+ "@eslint/config-helpers": "^0.6.0",
36
+ "@eslint/js": "^9.39.4",
37
+ "eslint-plugin-perfectionist": "^5.9.0",
38
+ "eslint-plugin-unicorn": "^64.0.0",
39
+ "eslint-plugin-wc": "^3.1.0",
40
+ "globals": "^17.6.0",
41
+ "typescript-eslint": "^8.59.3"
42
+ },
43
+ "scripts": {
44
+ "build": "tsdown",
45
+ "dev": "tsdown --watch",
46
+ "check-types": "tsc --noEmit"
47
+ }
48
+ }
package/readme.md DELETED
@@ -1,3 +0,0 @@
1
- # ESLint Config
2
-
3
- This is a shared ESLint config for use with several TypeScript projects. It is not intended for public consumption.
package/src/index.ts DELETED
@@ -1,101 +0,0 @@
1
- import type { Config, ConfigWithExtends, ConfigWithExtendsArray } from "@eslint/config-helpers";
2
-
3
- import { defineConfig } from "@eslint/config-helpers";
4
- import eslint from "@eslint/js";
5
- import perfectionist from "eslint-plugin-perfectionist";
6
- import unicornPlugin from "eslint-plugin-unicorn";
7
- import globals from "globals";
8
- import tseslint from "typescript-eslint";
9
-
10
- export function getConfig(
11
- customConfig?: ConfigWithExtendsArray,
12
- options?: {
13
- customGlobals?: Record<string, "readonly" | "writeable">;
14
- parserOptions?: NonNullable<Config["languageOptions"]>["parserOptions"];
15
- },
16
- ): ConfigWithExtendsArray {
17
- const customGlobals = options?.customGlobals ?? {};
18
-
19
- const baseConfig = [
20
- eslint.configs.recommended,
21
- ...tseslint.configs.strictTypeChecked,
22
- ...tseslint.configs.stylisticTypeChecked,
23
- {
24
- languageOptions: {
25
- globals: {
26
- ...globals.builtin,
27
- ...globals.nodeBuiltin,
28
- ...customGlobals,
29
- },
30
- parser: tseslint.parser,
31
- parserOptions: options?.parserOptions ?? {
32
- projectService: true,
33
- },
34
- },
35
- plugins: {
36
- "@typescript-eslint": tseslint.plugin,
37
- },
38
- rules: {
39
- "@typescript-eslint/array-type": ["warn", { default: "generic" }],
40
- "@typescript-eslint/no-non-null-assertion": "off",
41
- "@typescript-eslint/no-unused-vars": [
42
- "error",
43
- {
44
- argsIgnorePattern: "^_",
45
- caughtErrorsIgnorePattern: "^_",
46
- destructuredArrayIgnorePattern: "^_",
47
- ignoreRestSiblings: true,
48
- varsIgnorePattern: "^_",
49
- },
50
- ],
51
- "@typescript-eslint/consistent-type-imports": [
52
- "error",
53
- { fixStyle: "separate-type-imports", prefer: "type-imports" },
54
- ],
55
- "@typescript-eslint/prefer-nullish-coalescing": "off",
56
- "no-restricted-syntax": [
57
- "error",
58
- {
59
- message: "Separate type imports into their own `import type` statement.",
60
- selector: 'ImportDeclaration[importKind="value"] ImportSpecifier[importKind="type"]',
61
- },
62
- ],
63
- },
64
- },
65
- unicornPlugin.configs.recommended,
66
- {
67
- rules: {
68
- "unicorn/filename-case": "warn",
69
- "unicorn/no-array-callback-reference": "off", // I prefer this pattern for filtering/sorting content
70
- "unicorn/prevent-abbreviations": "off", // I *like* abbreviations!
71
- },
72
- },
73
- {
74
- plugins: {
75
- perfectionist,
76
- },
77
- rules: {
78
- "perfectionist/sort-classes": "off",
79
- "perfectionist/sort-imports": [
80
- "error",
81
- {
82
- type: "natural",
83
- order: "asc",
84
- internalPattern: ["^~/.*", "^@/.*", "^#.*"],
85
- },
86
- ],
87
- "perfectionist/sort-interfaces": "off",
88
- "perfectionist/sort-jsx-props": "off",
89
- "perfectionist/sort-maps": "off",
90
- "perfectionist/sort-modules": "off",
91
- "perfectionist/sort-objects": "off",
92
- "perfectionist/sort-object-types": "off",
93
- "perfectionist/sort-sets": "off",
94
- "perfectionist/sort-switch-case": "off",
95
- "perfectionist/sort-union-types": "off",
96
- },
97
- },
98
- ] satisfies Array<ConfigWithExtends>;
99
-
100
- return defineConfig(...baseConfig, ...(customConfig ?? []));
101
- }