@lincy/eslint-config 3.3.1 → 3.4.1
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/README.md +90 -24
- package/dist/chunk-YG22WGT3.js +40 -0
- package/dist/index.cjs +7076 -203
- package/dist/index.d.cts +20 -9
- package/dist/index.d.ts +20 -9
- package/dist/index.js +6963 -162
- package/dist/main-4FJS3AFB.js +1563 -0
- package/package.json +10 -9
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
2
2
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
3
3
|
import { ParserOptions } from '@typescript-eslint/parser';
|
|
4
|
-
|
|
4
|
+
import * as parser from '@typescript-eslint/parser';
|
|
5
|
+
export { parser as parserTs };
|
|
5
6
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
6
7
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
7
|
-
|
|
8
|
+
import * as eslintPluginI from 'eslint-plugin-i';
|
|
9
|
+
export { eslintPluginI as pluginImport };
|
|
8
10
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
9
|
-
|
|
11
|
+
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
12
|
+
export { eslintPluginJsonc as pluginJsonc };
|
|
10
13
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
11
14
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
12
15
|
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
@@ -14,7 +17,8 @@ export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
|
14
17
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
15
18
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
16
19
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
17
|
-
|
|
20
|
+
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
21
|
+
export { eslintPluginYml as pluginYaml };
|
|
18
22
|
export { default as pluginNoOnlyTests } from 'eslint-plugin-no-only-tests';
|
|
19
23
|
export { default as parserVue } from 'vue-eslint-parser';
|
|
20
24
|
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
@@ -46,7 +50,14 @@ interface OptionsHasTypeScript {
|
|
|
46
50
|
typescript?: boolean;
|
|
47
51
|
}
|
|
48
52
|
interface OptionsStylistic {
|
|
49
|
-
stylistic?: boolean;
|
|
53
|
+
stylistic?: boolean | StylisticConfig;
|
|
54
|
+
}
|
|
55
|
+
interface StylisticConfig {
|
|
56
|
+
indent?: number | 'tab';
|
|
57
|
+
quotes?: 'single' | 'double';
|
|
58
|
+
}
|
|
59
|
+
interface StylisticOverridesConfig extends OptionsStylistic {
|
|
60
|
+
overrides?: FlatESLintConfigItem['rules'];
|
|
50
61
|
}
|
|
51
62
|
interface OptionsOverrides {
|
|
52
63
|
overrides?: FlatESLintConfigItem['rules'];
|
|
@@ -55,7 +66,7 @@ interface OptionsOverrides {
|
|
|
55
66
|
interface OptionsIsInEditor {
|
|
56
67
|
isInEditor?: boolean;
|
|
57
68
|
}
|
|
58
|
-
interface OptionsConfig {
|
|
69
|
+
interface OptionsConfig extends OptionsComponentExts {
|
|
59
70
|
/**
|
|
60
71
|
* Enable gitignore support.
|
|
61
72
|
*
|
|
@@ -108,7 +119,7 @@ interface OptionsConfig {
|
|
|
108
119
|
*
|
|
109
120
|
* @default true
|
|
110
121
|
*/
|
|
111
|
-
stylistic?: boolean;
|
|
122
|
+
stylistic?: boolean | StylisticConfig;
|
|
112
123
|
/**
|
|
113
124
|
* Control to disable some rules in editors.
|
|
114
125
|
* @default auto-detect based on the process.env
|
|
@@ -164,7 +175,7 @@ declare function sortPackageJson(): FlatESLintConfigItem[];
|
|
|
164
175
|
*/
|
|
165
176
|
declare function sortTsconfig(): FlatESLintConfigItem[];
|
|
166
177
|
|
|
167
|
-
declare function stylistic(options?:
|
|
178
|
+
declare function stylistic(options?: StylisticOverridesConfig): FlatESLintConfigItem[];
|
|
168
179
|
|
|
169
180
|
declare function typescript(options?: OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): FlatESLintConfigItem[];
|
|
170
181
|
|
|
@@ -209,4 +220,4 @@ declare const GLOB_TESTS: string[];
|
|
|
209
220
|
declare const GLOB_ALL_SRC: string[];
|
|
210
221
|
declare const GLOB_EXCLUDE: string[];
|
|
211
222
|
|
|
212
|
-
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, combine, comments, lincy as default, ignores, imports, javascript, jsdoc, jsonc, lincy, markdown, node, recordRulesState, recordRulesStateConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, typescript, unicorn, vue, warnUnnecessaryOffRules, yaml };
|
|
223
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, StylisticConfig, StylisticOverridesConfig, combine, comments, lincy as default, ignores, imports, javascript, jsdoc, jsonc, lincy, markdown, node, recordRulesState, recordRulesStateConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, typescript, unicorn, vue, warnUnnecessaryOffRules, yaml };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
2
2
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
3
3
|
import { ParserOptions } from '@typescript-eslint/parser';
|
|
4
|
-
|
|
4
|
+
import * as parser from '@typescript-eslint/parser';
|
|
5
|
+
export { parser as parserTs };
|
|
5
6
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
6
7
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
7
|
-
|
|
8
|
+
import * as eslintPluginI from 'eslint-plugin-i';
|
|
9
|
+
export { eslintPluginI as pluginImport };
|
|
8
10
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
9
|
-
|
|
11
|
+
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
12
|
+
export { eslintPluginJsonc as pluginJsonc };
|
|
10
13
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
11
14
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
12
15
|
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
@@ -14,7 +17,8 @@ export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
|
14
17
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
15
18
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
16
19
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
17
|
-
|
|
20
|
+
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
21
|
+
export { eslintPluginYml as pluginYaml };
|
|
18
22
|
export { default as pluginNoOnlyTests } from 'eslint-plugin-no-only-tests';
|
|
19
23
|
export { default as parserVue } from 'vue-eslint-parser';
|
|
20
24
|
export { default as parserYaml } from 'yaml-eslint-parser';
|
|
@@ -46,7 +50,14 @@ interface OptionsHasTypeScript {
|
|
|
46
50
|
typescript?: boolean;
|
|
47
51
|
}
|
|
48
52
|
interface OptionsStylistic {
|
|
49
|
-
stylistic?: boolean;
|
|
53
|
+
stylistic?: boolean | StylisticConfig;
|
|
54
|
+
}
|
|
55
|
+
interface StylisticConfig {
|
|
56
|
+
indent?: number | 'tab';
|
|
57
|
+
quotes?: 'single' | 'double';
|
|
58
|
+
}
|
|
59
|
+
interface StylisticOverridesConfig extends OptionsStylistic {
|
|
60
|
+
overrides?: FlatESLintConfigItem['rules'];
|
|
50
61
|
}
|
|
51
62
|
interface OptionsOverrides {
|
|
52
63
|
overrides?: FlatESLintConfigItem['rules'];
|
|
@@ -55,7 +66,7 @@ interface OptionsOverrides {
|
|
|
55
66
|
interface OptionsIsInEditor {
|
|
56
67
|
isInEditor?: boolean;
|
|
57
68
|
}
|
|
58
|
-
interface OptionsConfig {
|
|
69
|
+
interface OptionsConfig extends OptionsComponentExts {
|
|
59
70
|
/**
|
|
60
71
|
* Enable gitignore support.
|
|
61
72
|
*
|
|
@@ -108,7 +119,7 @@ interface OptionsConfig {
|
|
|
108
119
|
*
|
|
109
120
|
* @default true
|
|
110
121
|
*/
|
|
111
|
-
stylistic?: boolean;
|
|
122
|
+
stylistic?: boolean | StylisticConfig;
|
|
112
123
|
/**
|
|
113
124
|
* Control to disable some rules in editors.
|
|
114
125
|
* @default auto-detect based on the process.env
|
|
@@ -164,7 +175,7 @@ declare function sortPackageJson(): FlatESLintConfigItem[];
|
|
|
164
175
|
*/
|
|
165
176
|
declare function sortTsconfig(): FlatESLintConfigItem[];
|
|
166
177
|
|
|
167
|
-
declare function stylistic(options?:
|
|
178
|
+
declare function stylistic(options?: StylisticOverridesConfig): FlatESLintConfigItem[];
|
|
168
179
|
|
|
169
180
|
declare function typescript(options?: OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): FlatESLintConfigItem[];
|
|
170
181
|
|
|
@@ -209,4 +220,4 @@ declare const GLOB_TESTS: string[];
|
|
|
209
220
|
declare const GLOB_ALL_SRC: string[];
|
|
210
221
|
declare const GLOB_EXCLUDE: string[];
|
|
211
222
|
|
|
212
|
-
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, combine, comments, lincy as default, ignores, imports, javascript, jsdoc, jsonc, lincy, markdown, node, recordRulesState, recordRulesStateConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, typescript, unicorn, vue, warnUnnecessaryOffRules, yaml };
|
|
223
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, StylisticConfig, StylisticOverridesConfig, combine, comments, lincy as default, ignores, imports, javascript, jsdoc, jsonc, lincy, markdown, node, recordRulesState, recordRulesStateConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, typescript, unicorn, vue, warnUnnecessaryOffRules, yaml };
|