@infernodesign/eslint-config 2.16.0 → 2.18.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/dist/cli.js +6 -6
- package/dist/constants-CZLDK59m.js +120 -0
- package/dist/index.d.ts +77 -28
- package/dist/index.js +4 -89
- package/package.json +20 -19
- package/dist/constants-JlDUTs3Q.js +0 -3
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as PACKAGE_NAME } from "./constants-CZLDK59m.js";
|
|
2
2
|
import fsPromises from "node:fs/promises";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -8,7 +8,7 @@ import { cac } from "cac";
|
|
|
8
8
|
import parse from "parse-gitignore";
|
|
9
9
|
import { execSync } from "node:child_process";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "2.
|
|
11
|
+
var version = "2.18.0";
|
|
12
12
|
// src/cli/constants.ts
|
|
13
13
|
const vscodeSettingsString = `
|
|
14
14
|
// Disable the default formatter, use eslint instead
|
|
@@ -199,19 +199,19 @@ async function updateEslintFiles(result) {
|
|
|
199
199
|
// src/cli/constants-generated.ts
|
|
200
200
|
const versionsMap = {
|
|
201
201
|
"@eslint-react/eslint-plugin": "^5.28.8",
|
|
202
|
-
"@medusajs/eslint-plugin": "^2.22.
|
|
202
|
+
"@medusajs/eslint-plugin": "^2.22.2",
|
|
203
203
|
"@next/eslint-plugin-next": "^16.4.3",
|
|
204
204
|
"@sanity-labs/eslint-plugin": "^1.0.7",
|
|
205
205
|
"@shadcn/lint": "^0.2.3",
|
|
206
|
-
"@unocss/eslint-plugin": "^66.
|
|
206
|
+
"@unocss/eslint-plugin": "^66.12.0",
|
|
207
207
|
"astro-eslint-parser": "^3.2.0",
|
|
208
|
-
"eslint": "^10.
|
|
208
|
+
"eslint": "^10.14.0",
|
|
209
209
|
"eslint-plugin-astro": "^3.2.1",
|
|
210
210
|
"eslint-plugin-better-tailwindcss": "^4.10.0",
|
|
211
211
|
"eslint-plugin-format": "^2.0.1",
|
|
212
212
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
213
213
|
"eslint-plugin-solid": "^0.18.1",
|
|
214
|
-
"eslint-plugin-storybook": "^10.6.
|
|
214
|
+
"eslint-plugin-storybook": "^10.6.5",
|
|
215
215
|
"eslint-plugin-svelte": "^3.23.1",
|
|
216
216
|
"prettier-plugin-astro": "^1.1.2",
|
|
217
217
|
"prettier-plugin-slidev": "^1.0.5",
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// src/constants.ts
|
|
2
|
+
const PACKAGE_NAME = "@infernodesign/eslint-config";
|
|
3
|
+
/**
|
|
4
|
+
* PACKAGE_SORT_ORDER
|
|
5
|
+
*
|
|
6
|
+
* Specifies the order in which package.json properties should appear.
|
|
7
|
+
*
|
|
8
|
+
* This array establishes a preferred sequence to maintain consistency and readability
|
|
9
|
+
* when managing package.json files in JavaScript projects. It categorizes common properties
|
|
10
|
+
* such as metadata details, scripts, dependencies, and configuration settings in a logical
|
|
11
|
+
* and organized manner.
|
|
12
|
+
*
|
|
13
|
+
* Complex logic explanation:
|
|
14
|
+
* - The list starts with high-level metadata properties such as 'publisher', 'name', 'description',
|
|
15
|
+
* and 'version', which are typically the primary identifiers of the package.
|
|
16
|
+
* - After the initial metadata, configuration and module-related fields like 'type', 'private',
|
|
17
|
+
* and 'author' are listed to group related attributes together.
|
|
18
|
+
* - Dependency-related fields are grouped towards the end, including 'dependencies', 'devDependencies',
|
|
19
|
+
* and 'optionalDependencies'.
|
|
20
|
+
* - Special configurations and overrides, such as 'resolutions' and 'overrides', are at the end
|
|
21
|
+
* to keep the file manageable and to separate primary package information from auxiliary settings.
|
|
22
|
+
*
|
|
23
|
+
* @type {string[]}
|
|
24
|
+
*
|
|
25
|
+
* @returns {string[]} Returns the package.json sort order
|
|
26
|
+
*/
|
|
27
|
+
const PACKAGE_SORT_ORDER = [
|
|
28
|
+
"publisher",
|
|
29
|
+
"name",
|
|
30
|
+
"displayName",
|
|
31
|
+
"description",
|
|
32
|
+
"version",
|
|
33
|
+
"type",
|
|
34
|
+
"private",
|
|
35
|
+
"author",
|
|
36
|
+
"contributors",
|
|
37
|
+
"license",
|
|
38
|
+
"funding",
|
|
39
|
+
"homepage",
|
|
40
|
+
"repository",
|
|
41
|
+
"bugs",
|
|
42
|
+
"keywords",
|
|
43
|
+
"categories",
|
|
44
|
+
"sideEffects",
|
|
45
|
+
"exports",
|
|
46
|
+
"main",
|
|
47
|
+
"module",
|
|
48
|
+
"unpkg",
|
|
49
|
+
"jsdelivr",
|
|
50
|
+
"types",
|
|
51
|
+
"typesVersions",
|
|
52
|
+
"bin",
|
|
53
|
+
"icon",
|
|
54
|
+
"files",
|
|
55
|
+
"browserslist",
|
|
56
|
+
"engines",
|
|
57
|
+
"engineStrict",
|
|
58
|
+
"packageManager",
|
|
59
|
+
"publishConfig",
|
|
60
|
+
"activationEvents",
|
|
61
|
+
"contributes",
|
|
62
|
+
"scripts",
|
|
63
|
+
"dependencies",
|
|
64
|
+
"devDependencies",
|
|
65
|
+
"optionalDependencies",
|
|
66
|
+
"peerDependencies",
|
|
67
|
+
"peerDependenciesMeta",
|
|
68
|
+
"pnpm",
|
|
69
|
+
"overrides",
|
|
70
|
+
"resolutions",
|
|
71
|
+
"husky",
|
|
72
|
+
"simple-git-hooks",
|
|
73
|
+
"lint-staged",
|
|
74
|
+
"eslintConfig",
|
|
75
|
+
"prettier"
|
|
76
|
+
];
|
|
77
|
+
/**
|
|
78
|
+
* PACKAGE_EXPORTS_SORT_ORDER
|
|
79
|
+
*
|
|
80
|
+
* Specifies the order in which package.json exports should appear.
|
|
81
|
+
*
|
|
82
|
+
* This array establishes a preferred sequence to maintain consistency and readability
|
|
83
|
+
* when managing package.json exports in JavaScript projects.
|
|
84
|
+
*
|
|
85
|
+
* @type {string[]}
|
|
86
|
+
*
|
|
87
|
+
* @returns {string[]} Returns the package.json exports sort order
|
|
88
|
+
*/
|
|
89
|
+
const PACKAGE_EXPORTS_SORT_ORDER = [
|
|
90
|
+
"types",
|
|
91
|
+
"node-addons",
|
|
92
|
+
"node",
|
|
93
|
+
"browser",
|
|
94
|
+
"import",
|
|
95
|
+
"require",
|
|
96
|
+
"development",
|
|
97
|
+
"production",
|
|
98
|
+
"default"
|
|
99
|
+
];
|
|
100
|
+
/**
|
|
101
|
+
* packageSortOrder
|
|
102
|
+
*
|
|
103
|
+
* @type {string[]}
|
|
104
|
+
*
|
|
105
|
+
* @deprecated Use PACKAGE_SORT_ORDER instead
|
|
106
|
+
*
|
|
107
|
+
* @returns {string[]} Returns the package.json sort order
|
|
108
|
+
*/
|
|
109
|
+
const packageSortOrder = PACKAGE_SORT_ORDER;
|
|
110
|
+
/**
|
|
111
|
+
* packageExportsSortOrder
|
|
112
|
+
*
|
|
113
|
+
* @type {string[]}
|
|
114
|
+
*
|
|
115
|
+
* @deprecated Use PACKAGE_EXPORTS_SORT_ORDER instead
|
|
116
|
+
*
|
|
117
|
+
* @returns {string[]} Returns the package.json exports sort order
|
|
118
|
+
*/
|
|
119
|
+
const packageExportsSortOrder = PACKAGE_EXPORTS_SORT_ORDER;
|
|
120
|
+
export { packageSortOrder as a, packageExportsSortOrder as i, PACKAGE_NAME as n, PACKAGE_SORT_ORDER as r, PACKAGE_EXPORTS_SORT_ORDER as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -10022,11 +10022,21 @@ interface RuleOptions {
|
|
|
10022
10022
|
* @see https://eslint.vuejs.org/rules/no-constant-condition.html
|
|
10023
10023
|
*/
|
|
10024
10024
|
'vue/no-constant-condition'?: Linter.RuleEntry<VueNoConstantCondition>;
|
|
10025
|
+
/**
|
|
10026
|
+
* disallow content outside of the top-level blocks
|
|
10027
|
+
* @see https://eslint.vuejs.org/rules/no-content-outside-block.html
|
|
10028
|
+
*/
|
|
10029
|
+
'vue/no-content-outside-block'?: Linter.RuleEntry<[]>;
|
|
10025
10030
|
/**
|
|
10026
10031
|
* disallow custom modifiers on v-model used on the component
|
|
10027
10032
|
* @see https://eslint.vuejs.org/rules/no-custom-modifiers-on-v-model.html
|
|
10028
10033
|
*/
|
|
10029
10034
|
'vue/no-custom-modifiers-on-v-model'?: Linter.RuleEntry<[]>;
|
|
10035
|
+
/**
|
|
10036
|
+
* disallow default values in `defineModel`
|
|
10037
|
+
* @see https://eslint.vuejs.org/rules/no-define-model-default.html
|
|
10038
|
+
*/
|
|
10039
|
+
'vue/no-define-model-default'?: Linter.RuleEntry<[]>;
|
|
10030
10040
|
/**
|
|
10031
10041
|
* disallow using deprecated object declaration on data (in Vue.js 3.0.0+)
|
|
10032
10042
|
* @see https://eslint.vuejs.org/rules/no-deprecated-data-object-declaration.html
|
|
@@ -10262,6 +10272,11 @@ interface RuleOptions {
|
|
|
10262
10272
|
* @see https://eslint.vuejs.org/rules/no-potential-component-option-typo.html
|
|
10263
10273
|
*/
|
|
10264
10274
|
'vue/no-potential-component-option-typo'?: Linter.RuleEntry<VueNoPotentialComponentOptionTypo>;
|
|
10275
|
+
/**
|
|
10276
|
+
* disallow declarations that shadow props in `<script setup>`
|
|
10277
|
+
* @see https://eslint.vuejs.org/rules/no-props-shadow.html
|
|
10278
|
+
*/
|
|
10279
|
+
'vue/no-props-shadow'?: Linter.RuleEntry<[]>;
|
|
10265
10280
|
/**
|
|
10266
10281
|
* disallow use of value wrapped by `ref()` (Composition API) as an operand
|
|
10267
10282
|
* @see https://eslint.vuejs.org/rules/no-ref-as-operand.html
|
|
@@ -20637,7 +20652,7 @@ type UnicornNameReplacements = [] | [{
|
|
|
20637
20652
|
extendDefaultReplacements?: boolean;
|
|
20638
20653
|
replacements?: _UnicornNameReplacements_NameReplacements;
|
|
20639
20654
|
extendDefaultAllowList?: boolean;
|
|
20640
|
-
allowList?:
|
|
20655
|
+
allowList?: _UnicornNameReplacements_BooleanObject1;
|
|
20641
20656
|
ignore?: (string | {
|
|
20642
20657
|
[k: string]: unknown | undefined;
|
|
20643
20658
|
})[];
|
|
@@ -20649,7 +20664,7 @@ interface _UnicornNameReplacements_NameReplacements {
|
|
|
20649
20664
|
interface _UnicornNameReplacements_BooleanObject {
|
|
20650
20665
|
[k: string]: boolean | undefined;
|
|
20651
20666
|
}
|
|
20652
|
-
interface
|
|
20667
|
+
interface _UnicornNameReplacements_BooleanObject1 {
|
|
20653
20668
|
[k: string]: boolean | undefined;
|
|
20654
20669
|
}
|
|
20655
20670
|
// ----- unicorn/no-array-callback-reference -----
|
|
@@ -21110,6 +21125,7 @@ type VueBlockLang = [] | [{
|
|
|
21110
21125
|
[k: string]: {
|
|
21111
21126
|
lang?: (string | string[]);
|
|
21112
21127
|
allowNoLang?: boolean;
|
|
21128
|
+
required?: boolean;
|
|
21113
21129
|
};
|
|
21114
21130
|
}];
|
|
21115
21131
|
// ----- vue/block-order -----
|
|
@@ -22222,6 +22238,7 @@ type VueRequireDirectExport = [] | [{
|
|
|
22222
22238
|
// ----- vue/require-explicit-emits -----
|
|
22223
22239
|
type VueRequireExplicitEmits = [] | [{
|
|
22224
22240
|
allowProps?: boolean;
|
|
22241
|
+
ignoreMixins?: boolean;
|
|
22225
22242
|
}];
|
|
22226
22243
|
// ----- vue/require-macro-variable-name -----
|
|
22227
22244
|
type VueRequireMacroVariableName = [] | [{
|
|
@@ -23834,32 +23851,6 @@ export declare function shadcn(options?: {
|
|
|
23834
23851
|
vue?: boolean;
|
|
23835
23852
|
} & OptionsOverrides & OptionsShadcn): Promise<TypedFlatConfigItem[]>;
|
|
23836
23853
|
export declare function solid(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
|
|
23837
|
-
/**
|
|
23838
|
-
* packageSortOrder
|
|
23839
|
-
*
|
|
23840
|
-
* Specifies the order in which package.json properties should appear.
|
|
23841
|
-
*
|
|
23842
|
-
* This array establishes a preferred sequence to maintain consistency and readability
|
|
23843
|
-
* when managing package.json files in JavaScript projects. It categorizes common properties
|
|
23844
|
-
* such as metadata details, scripts, dependencies, and configuration settings in a logical
|
|
23845
|
-
* and organized manner.
|
|
23846
|
-
*
|
|
23847
|
-
* Complex logic explanation:
|
|
23848
|
-
* - The list starts with high-level metadata properties such as 'publisher', 'name', 'description',
|
|
23849
|
-
* and 'version', which are typically the primary identifiers of the package.
|
|
23850
|
-
* - After the initial metadata, configuration and module-related fields like 'type', 'private',
|
|
23851
|
-
* and 'author' are listed to group related attributes together.
|
|
23852
|
-
* - Dependency-related fields are grouped towards the end, including 'dependencies', 'devDependencies',
|
|
23853
|
-
* and 'optionalDependencies'.
|
|
23854
|
-
* - Special configurations and overrides, such as 'resolutions' and 'overrides', are at the end
|
|
23855
|
-
* to keep the file manageable and to separate primary package information from auxiliary settings.
|
|
23856
|
-
*
|
|
23857
|
-
* @type {string[]}
|
|
23858
|
-
*
|
|
23859
|
-
* @returns {string[]} Returns the package.json sort order
|
|
23860
|
-
*/
|
|
23861
|
-
export declare const packageSortOrder: string[];
|
|
23862
|
-
export declare const packageExportsSortOrder: string[];
|
|
23863
23854
|
/**
|
|
23864
23855
|
* Sort package.json
|
|
23865
23856
|
*
|
|
@@ -23896,6 +23887,64 @@ export declare function unocss(options?: OptionsUnoCSS): Promise<TypedFlatConfig
|
|
|
23896
23887
|
export declare function vue(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsVue): Promise<TypedFlatConfigItem[]>;
|
|
23897
23888
|
export declare function yaml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
23898
23889
|
export declare const PACKAGE_NAME: "@infernodesign/eslint-config";
|
|
23890
|
+
/**
|
|
23891
|
+
* PACKAGE_SORT_ORDER
|
|
23892
|
+
*
|
|
23893
|
+
* Specifies the order in which package.json properties should appear.
|
|
23894
|
+
*
|
|
23895
|
+
* This array establishes a preferred sequence to maintain consistency and readability
|
|
23896
|
+
* when managing package.json files in JavaScript projects. It categorizes common properties
|
|
23897
|
+
* such as metadata details, scripts, dependencies, and configuration settings in a logical
|
|
23898
|
+
* and organized manner.
|
|
23899
|
+
*
|
|
23900
|
+
* Complex logic explanation:
|
|
23901
|
+
* - The list starts with high-level metadata properties such as 'publisher', 'name', 'description',
|
|
23902
|
+
* and 'version', which are typically the primary identifiers of the package.
|
|
23903
|
+
* - After the initial metadata, configuration and module-related fields like 'type', 'private',
|
|
23904
|
+
* and 'author' are listed to group related attributes together.
|
|
23905
|
+
* - Dependency-related fields are grouped towards the end, including 'dependencies', 'devDependencies',
|
|
23906
|
+
* and 'optionalDependencies'.
|
|
23907
|
+
* - Special configurations and overrides, such as 'resolutions' and 'overrides', are at the end
|
|
23908
|
+
* to keep the file manageable and to separate primary package information from auxiliary settings.
|
|
23909
|
+
*
|
|
23910
|
+
* @type {string[]}
|
|
23911
|
+
*
|
|
23912
|
+
* @returns {string[]} Returns the package.json sort order
|
|
23913
|
+
*/
|
|
23914
|
+
export declare const PACKAGE_SORT_ORDER: string[];
|
|
23915
|
+
/**
|
|
23916
|
+
* PACKAGE_EXPORTS_SORT_ORDER
|
|
23917
|
+
*
|
|
23918
|
+
* Specifies the order in which package.json exports should appear.
|
|
23919
|
+
*
|
|
23920
|
+
* This array establishes a preferred sequence to maintain consistency and readability
|
|
23921
|
+
* when managing package.json exports in JavaScript projects.
|
|
23922
|
+
*
|
|
23923
|
+
* @type {string[]}
|
|
23924
|
+
*
|
|
23925
|
+
* @returns {string[]} Returns the package.json exports sort order
|
|
23926
|
+
*/
|
|
23927
|
+
export declare const PACKAGE_EXPORTS_SORT_ORDER: string[];
|
|
23928
|
+
/**
|
|
23929
|
+
* packageSortOrder
|
|
23930
|
+
*
|
|
23931
|
+
* @type {string[]}
|
|
23932
|
+
*
|
|
23933
|
+
* @deprecated Use PACKAGE_SORT_ORDER instead
|
|
23934
|
+
*
|
|
23935
|
+
* @returns {string[]} Returns the package.json sort order
|
|
23936
|
+
*/
|
|
23937
|
+
export declare const packageSortOrder: string[];
|
|
23938
|
+
/**
|
|
23939
|
+
* packageExportsSortOrder
|
|
23940
|
+
*
|
|
23941
|
+
* @type {string[]}
|
|
23942
|
+
*
|
|
23943
|
+
* @deprecated Use PACKAGE_EXPORTS_SORT_ORDER instead
|
|
23944
|
+
*
|
|
23945
|
+
* @returns {string[]} Returns the package.json exports sort order
|
|
23946
|
+
*/
|
|
23947
|
+
export declare const packageExportsSortOrder: string[];
|
|
23899
23948
|
export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
23900
23949
|
export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
23901
23950
|
export declare const GLOB_JS = "**/*.?([cm])js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as packageSortOrder, i as packageExportsSortOrder, n as PACKAGE_NAME, r as PACKAGE_SORT_ORDER, t as PACKAGE_EXPORTS_SORT_ORDER } from "./constants-CZLDK59m.js";
|
|
2
2
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import fsPromises from "node:fs/promises";
|
|
@@ -2082,91 +2082,6 @@ async function solid(options = {}) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
// src/configs/sort.ts
|
|
2084
2084
|
/**
|
|
2085
|
-
* packageSortOrder
|
|
2086
|
-
*
|
|
2087
|
-
* Specifies the order in which package.json properties should appear.
|
|
2088
|
-
*
|
|
2089
|
-
* This array establishes a preferred sequence to maintain consistency and readability
|
|
2090
|
-
* when managing package.json files in JavaScript projects. It categorizes common properties
|
|
2091
|
-
* such as metadata details, scripts, dependencies, and configuration settings in a logical
|
|
2092
|
-
* and organized manner.
|
|
2093
|
-
*
|
|
2094
|
-
* Complex logic explanation:
|
|
2095
|
-
* - The list starts with high-level metadata properties such as 'publisher', 'name', 'description',
|
|
2096
|
-
* and 'version', which are typically the primary identifiers of the package.
|
|
2097
|
-
* - After the initial metadata, configuration and module-related fields like 'type', 'private',
|
|
2098
|
-
* and 'author' are listed to group related attributes together.
|
|
2099
|
-
* - Dependency-related fields are grouped towards the end, including 'dependencies', 'devDependencies',
|
|
2100
|
-
* and 'optionalDependencies'.
|
|
2101
|
-
* - Special configurations and overrides, such as 'resolutions' and 'overrides', are at the end
|
|
2102
|
-
* to keep the file manageable and to separate primary package information from auxiliary settings.
|
|
2103
|
-
*
|
|
2104
|
-
* @type {string[]}
|
|
2105
|
-
*
|
|
2106
|
-
* @returns {string[]} Returns the package.json sort order
|
|
2107
|
-
*/
|
|
2108
|
-
const packageSortOrder = [
|
|
2109
|
-
"publisher",
|
|
2110
|
-
"name",
|
|
2111
|
-
"displayName",
|
|
2112
|
-
"description",
|
|
2113
|
-
"version",
|
|
2114
|
-
"type",
|
|
2115
|
-
"private",
|
|
2116
|
-
"author",
|
|
2117
|
-
"contributors",
|
|
2118
|
-
"license",
|
|
2119
|
-
"funding",
|
|
2120
|
-
"homepage",
|
|
2121
|
-
"repository",
|
|
2122
|
-
"bugs",
|
|
2123
|
-
"keywords",
|
|
2124
|
-
"categories",
|
|
2125
|
-
"sideEffects",
|
|
2126
|
-
"exports",
|
|
2127
|
-
"main",
|
|
2128
|
-
"module",
|
|
2129
|
-
"unpkg",
|
|
2130
|
-
"jsdelivr",
|
|
2131
|
-
"types",
|
|
2132
|
-
"typesVersions",
|
|
2133
|
-
"bin",
|
|
2134
|
-
"icon",
|
|
2135
|
-
"files",
|
|
2136
|
-
"browserslist",
|
|
2137
|
-
"engines",
|
|
2138
|
-
"engineStrict",
|
|
2139
|
-
"packageManager",
|
|
2140
|
-
"publishConfig",
|
|
2141
|
-
"activationEvents",
|
|
2142
|
-
"contributes",
|
|
2143
|
-
"scripts",
|
|
2144
|
-
"dependencies",
|
|
2145
|
-
"devDependencies",
|
|
2146
|
-
"optionalDependencies",
|
|
2147
|
-
"peerDependencies",
|
|
2148
|
-
"peerDependenciesMeta",
|
|
2149
|
-
"pnpm",
|
|
2150
|
-
"overrides",
|
|
2151
|
-
"resolutions",
|
|
2152
|
-
"husky",
|
|
2153
|
-
"simple-git-hooks",
|
|
2154
|
-
"lint-staged",
|
|
2155
|
-
"eslintConfig",
|
|
2156
|
-
"prettier"
|
|
2157
|
-
];
|
|
2158
|
-
const packageExportsSortOrder = [
|
|
2159
|
-
"types",
|
|
2160
|
-
"node-addons",
|
|
2161
|
-
"node",
|
|
2162
|
-
"browser",
|
|
2163
|
-
"import",
|
|
2164
|
-
"require",
|
|
2165
|
-
"development",
|
|
2166
|
-
"production",
|
|
2167
|
-
"default"
|
|
2168
|
-
];
|
|
2169
|
-
/**
|
|
2170
2085
|
* Sort package.json
|
|
2171
2086
|
*
|
|
2172
2087
|
* Requires `jsonc` config
|
|
@@ -2183,7 +2098,7 @@ async function sortPackageJson() {
|
|
|
2183
2098
|
"jsonc/sort-keys": [
|
|
2184
2099
|
"error",
|
|
2185
2100
|
{
|
|
2186
|
-
order:
|
|
2101
|
+
order: PACKAGE_SORT_ORDER,
|
|
2187
2102
|
pathPattern: "^$"
|
|
2188
2103
|
},
|
|
2189
2104
|
{
|
|
@@ -2203,7 +2118,7 @@ async function sortPackageJson() {
|
|
|
2203
2118
|
pathPattern: "^workspaces\\.catalogs\\.[^.]+$"
|
|
2204
2119
|
},
|
|
2205
2120
|
{
|
|
2206
|
-
order:
|
|
2121
|
+
order: PACKAGE_EXPORTS_SORT_ORDER,
|
|
2207
2122
|
pathPattern: "^exports.*$"
|
|
2208
2123
|
},
|
|
2209
2124
|
{
|
|
@@ -3610,4 +3525,4 @@ const CONFIG_PRESET_FULL_OFF = {
|
|
|
3610
3525
|
vue: false,
|
|
3611
3526
|
yaml: false
|
|
3612
3527
|
};
|
|
3613
|
-
export { CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SANITY, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, PACKAGE_NAME, StylisticConfigDefaults, astro, combine, command, comments, config, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, medusa, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, shadcn, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
3528
|
+
export { CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SANITY, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, PACKAGE_EXPORTS_SORT_ORDER, PACKAGE_NAME, PACKAGE_SORT_ORDER, StylisticConfigDefaults, astro, combine, command, comments, config, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, medusa, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, shadcn, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infernodesign/eslint-config",
|
|
3
3
|
"description": "ESLint config for Inferno Design.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.18.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "bun run gen && tsdown --clean --dts",
|
|
42
42
|
"build:inspect": "bun run build && bunx @eslint/config-inspector build",
|
|
43
|
+
"bumpp": "bun ../../scripts/bumpp.ts",
|
|
43
44
|
"dev": "tsdown --watch",
|
|
44
45
|
"gen": "bun run scripts/typegen.ts && bun run scripts/versiongen.ts",
|
|
45
46
|
"lint": "eslint --quiet",
|
|
@@ -57,9 +58,9 @@
|
|
|
57
58
|
"@eslint/config-helpers": "^0.7.0",
|
|
58
59
|
"@eslint/markdown": "^8.0.3",
|
|
59
60
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.72.
|
|
61
|
-
"@typescript-eslint/parser": "^8.72.
|
|
62
|
-
"@typescript-eslint/utils": "^8.72.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.72.1",
|
|
62
|
+
"@typescript-eslint/parser": "^8.72.1",
|
|
63
|
+
"@typescript-eslint/utils": "^8.72.1",
|
|
63
64
|
"@vitest/eslint-plugin": "^1.6.28",
|
|
64
65
|
"ansis": "^4.4.0",
|
|
65
66
|
"cac": "^7.1.0",
|
|
@@ -75,14 +76,14 @@
|
|
|
75
76
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
76
77
|
"eslint-plugin-perfectionist": "^5.13.0",
|
|
77
78
|
"eslint-plugin-pnpm": "^1.9.1",
|
|
78
|
-
"eslint-plugin-regexp": "^3.3.
|
|
79
|
+
"eslint-plugin-regexp": "^3.3.3",
|
|
79
80
|
"eslint-plugin-toml": "^1.5.0",
|
|
80
81
|
"eslint-plugin-unicorn": "^79.0.0",
|
|
81
82
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
82
|
-
"eslint-plugin-vue": "^10.
|
|
83
|
+
"eslint-plugin-vue": "^10.12.0",
|
|
83
84
|
"eslint-plugin-yml": "^3.9.0",
|
|
84
85
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
85
|
-
"globals": "^17.
|
|
86
|
+
"globals": "^17.14.0",
|
|
86
87
|
"jsonc-eslint-parser": "^3.3.0",
|
|
87
88
|
"local-pkg": "^1.2.1",
|
|
88
89
|
"parse-gitignore": "^2.0.0",
|
|
@@ -94,17 +95,17 @@
|
|
|
94
95
|
"@eslint-react/eslint-plugin": "^5.28.8",
|
|
95
96
|
"@eslint/config-inspector": "^3.5.0",
|
|
96
97
|
"@infernodesign/typescript-config": "workspace:*",
|
|
97
|
-
"@medusajs/eslint-plugin": "^2.22.
|
|
98
|
+
"@medusajs/eslint-plugin": "^2.22.2",
|
|
98
99
|
"@next/eslint-plugin-next": "^16.4.3",
|
|
99
100
|
"@prettier/plugin-xml": "^3.4.2",
|
|
100
101
|
"@sanity-labs/eslint-plugin": "^1.0.7",
|
|
101
102
|
"@shadcn/lint": "^0.2.3",
|
|
102
103
|
"@types/bun": "^1.4.4",
|
|
103
104
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
104
|
-
"@types/node": "^26.6.
|
|
105
|
-
"@unocss/eslint-plugin": "^66.
|
|
105
|
+
"@types/node": "^26.6.6",
|
|
106
|
+
"@unocss/eslint-plugin": "^66.12.0",
|
|
106
107
|
"astro-eslint-parser": "^3.2.0",
|
|
107
|
-
"eslint": "^10.
|
|
108
|
+
"eslint": "^10.14.0",
|
|
108
109
|
"eslint-plugin-astro": "^3.2.1",
|
|
109
110
|
"eslint-plugin-better-tailwindcss": "^4.10.0",
|
|
110
111
|
"eslint-plugin-erasable-syntax-only": "^0.7.2",
|
|
@@ -112,34 +113,34 @@
|
|
|
112
113
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
113
114
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
114
115
|
"eslint-plugin-solid": "^0.18.1",
|
|
115
|
-
"eslint-plugin-storybook": "^10.6.
|
|
116
|
+
"eslint-plugin-storybook": "^10.6.5",
|
|
116
117
|
"eslint-plugin-svelte": "^3.23.1",
|
|
117
118
|
"eslint-plugin-vuejs-accessibility": "^2.6.3",
|
|
118
|
-
"eslint-typegen": "^2.3.
|
|
119
|
+
"eslint-typegen": "^2.3.2",
|
|
119
120
|
"execa": "^10.2.1",
|
|
120
121
|
"find-up-simple": "^1.0.1",
|
|
121
122
|
"jiti": "^2.7.0",
|
|
122
123
|
"pnpm-workspace-yaml": "^1.9.1",
|
|
123
124
|
"prettier-plugin-astro": "^1.1.2",
|
|
124
125
|
"prettier-plugin-slidev": "^1.0.5",
|
|
125
|
-
"svelte": "^5.57.
|
|
126
|
+
"svelte": "^5.57.3",
|
|
126
127
|
"svelte-eslint-parser": "^1.10.0",
|
|
127
128
|
"tinyglobby": "^0.2.17",
|
|
128
|
-
"tsdown": "^0.23.
|
|
129
|
+
"tsdown": "^0.23.4",
|
|
129
130
|
"typescript": "^6.0.3",
|
|
130
131
|
"vitest": "^5.0.5",
|
|
131
132
|
"vue": "^3.5.44"
|
|
132
133
|
},
|
|
133
134
|
"peerDependencies": {
|
|
134
135
|
"@eslint-react/eslint-plugin": "^5.28.8",
|
|
135
|
-
"@medusajs/eslint-plugin": "^2.22.
|
|
136
|
+
"@medusajs/eslint-plugin": "^2.22.2",
|
|
136
137
|
"@next/eslint-plugin-next": "^16.4.3",
|
|
137
138
|
"@prettier/plugin-xml": "^3.4.2",
|
|
138
139
|
"@sanity-labs/eslint-plugin": "^1.0.7",
|
|
139
140
|
"@shadcn/lint": "^0.2.3",
|
|
140
|
-
"@unocss/eslint-plugin": "^66.
|
|
141
|
+
"@unocss/eslint-plugin": "^66.12.0",
|
|
141
142
|
"astro-eslint-parser": "^3.2.0",
|
|
142
|
-
"eslint": "^10.
|
|
143
|
+
"eslint": "^10.14.0",
|
|
143
144
|
"eslint-plugin-astro": "^3.2.1",
|
|
144
145
|
"eslint-plugin-better-tailwindcss": "^4.10.0",
|
|
145
146
|
"eslint-plugin-erasable-syntax-only": "^0.7.2",
|
|
@@ -147,7 +148,7 @@
|
|
|
147
148
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
148
149
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
149
150
|
"eslint-plugin-solid": "^0.18.1",
|
|
150
|
-
"eslint-plugin-storybook": "^10.6.
|
|
151
|
+
"eslint-plugin-storybook": "^10.6.5",
|
|
151
152
|
"eslint-plugin-svelte": "^3.23.1",
|
|
152
153
|
"eslint-plugin-vuejs-accessibility": "^2.6.3",
|
|
153
154
|
"prettier-plugin-astro": "^1.1.2",
|