@so1ve/eslint-config 1.0.0-alpha.8 → 1.0.0-alpha.9
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/index.cjs +1 -0
- package/dist/index.d.ts +5 -15
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1037,6 +1037,7 @@ function typescript({
|
|
|
1037
1037
|
parser: parserTs__default["default"],
|
|
1038
1038
|
parserOptions: {
|
|
1039
1039
|
sourceType: "module",
|
|
1040
|
+
extraFileExtensions: componentExts.map((ext) => `.${ext}`),
|
|
1040
1041
|
EXPERIMENTAL_useProjectService: true,
|
|
1041
1042
|
...parserOptions
|
|
1042
1043
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,15 +37,11 @@ export { default as parserYaml } from 'yaml-eslint-parser';
|
|
|
37
37
|
declare const comments: () => FlatESLintConfigItem[];
|
|
38
38
|
|
|
39
39
|
interface OptionsComponentExts {
|
|
40
|
-
/**
|
|
41
|
-
* Additional extensions for components.
|
|
42
|
-
*/
|
|
40
|
+
/** Additional extensions for components. */
|
|
43
41
|
componentExts?: string[];
|
|
44
42
|
}
|
|
45
43
|
interface OptionsTypeScriptParserOptions {
|
|
46
|
-
/**
|
|
47
|
-
* Additional parser options for TypeScript.
|
|
48
|
-
*/
|
|
44
|
+
/** Additional parser options for TypeScript. */
|
|
49
45
|
parserOptions?: Partial<ParserOptions>;
|
|
50
46
|
}
|
|
51
47
|
interface OptionsHasTypeScript {
|
|
@@ -120,9 +116,7 @@ interface Options extends OptionsComponentExts {
|
|
|
120
116
|
* @default true
|
|
121
117
|
*/
|
|
122
118
|
formatting?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Provide overrides for rules for each integration.
|
|
125
|
-
*/
|
|
119
|
+
/** Provide overrides for rules for each integration. */
|
|
126
120
|
overrides?: {
|
|
127
121
|
javascript?: FlatESLintConfigItem["rules"];
|
|
128
122
|
typescript?: FlatESLintConfigItem["rules"];
|
|
@@ -172,9 +166,7 @@ declare const vue: ({ overrides, typescript, }?: OptionsHasTypeScript & OptionsO
|
|
|
172
166
|
|
|
173
167
|
declare const yaml: ({ overrides, }?: OptionsOverrides) => FlatESLintConfigItem[];
|
|
174
168
|
|
|
175
|
-
/**
|
|
176
|
-
* Construct an array of ESLint flat config items.
|
|
177
|
-
*/
|
|
169
|
+
/** Construct an array of ESLint flat config items. */
|
|
178
170
|
declare function so1ve(options?: Options, ...userConfigs: (FlatESLintConfigItem | FlatESLintConfigItem[])[]): FlatESLintConfigItem[];
|
|
179
171
|
|
|
180
172
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
@@ -204,9 +196,7 @@ declare const GLOB_TESTS: string[];
|
|
|
204
196
|
declare const GLOB_ALL_SRC: string[];
|
|
205
197
|
declare const GLOB_EXCLUDE: string[];
|
|
206
198
|
|
|
207
|
-
/**
|
|
208
|
-
* Combine array and non-array configs into a single array.
|
|
209
|
-
*/
|
|
199
|
+
/** Combine array and non-array configs into a single array. */
|
|
210
200
|
declare const combine: (...configs: (FlatESLintConfigItem | FlatESLintConfigItem[])[]) => FlatESLintConfigItem[];
|
|
211
201
|
declare const renameRules: (rules: Record<string, any>, from: string, to: string) => {
|
|
212
202
|
[k: string]: any;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.9",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"description": "Ray's eslint config.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"toml-eslint-parser": "^0.6.0",
|
|
71
71
|
"vue-eslint-parser": "^9.3.1",
|
|
72
72
|
"yaml-eslint-parser": "^1.2.2",
|
|
73
|
-
"@so1ve/eslint-plugin
|
|
74
|
-
"@so1ve/eslint-plugin": "1.0.0-alpha.
|
|
73
|
+
"@so1ve/eslint-plugin": "1.0.0-alpha.9",
|
|
74
|
+
"@so1ve/eslint-plugin-sort-imports": "1.0.0-alpha.9"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"eslint": "^8.46.0"
|