@ntnyq/eslint-config 2.0.0-beta.26 → 2.0.0-beta.28
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 +363 -126
- package/dist/index.d.cts +39 -16
- package/dist/index.d.ts +39 -16
- package/dist/index.js +346 -116
- package/package.json +6 -7
package/dist/index.d.cts
CHANGED
|
@@ -7,24 +7,24 @@ export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
|
7
7
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
8
8
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
9
9
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
10
|
-
export { default as
|
|
11
|
-
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
12
|
-
export { eslintPluginYml as pluginYaml };
|
|
10
|
+
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
13
11
|
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
14
12
|
export { eslintPluginJsonc as pluginJsonc };
|
|
15
|
-
|
|
16
|
-
export { eslintPluginImportX as pluginImport };
|
|
13
|
+
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
17
14
|
import * as yamlEslintParser from 'yaml-eslint-parser';
|
|
18
15
|
export { yamlEslintParser as parserYaml };
|
|
19
16
|
import * as vueEslintParser from 'vue-eslint-parser';
|
|
20
17
|
export { vueEslintParser as parserVue };
|
|
21
18
|
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
22
19
|
export { jsoncEslintParser as parserJsonc };
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
export { default as tseslint } from 'typescript-eslint';
|
|
21
|
+
|
|
22
|
+
declare const hasTypeScript: boolean;
|
|
23
|
+
declare const hasVue: boolean;
|
|
24
|
+
declare const hasUnoCSS: boolean;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* @file
|
|
27
|
+
* @file globs constants
|
|
28
28
|
*/
|
|
29
29
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
30
30
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -54,20 +54,34 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
54
54
|
*/
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* JavaScript preset
|
|
58
|
+
*/
|
|
59
|
+
declare const presetJavaScript: FlatESLintConfig[];
|
|
60
|
+
/**
|
|
61
|
+
* JavaScript & TypeScript
|
|
62
|
+
*/
|
|
63
|
+
declare const presetBasic: FlatESLintConfig[];
|
|
64
|
+
/**
|
|
65
|
+
* JSON and sort json keys
|
|
58
66
|
*/
|
|
59
|
-
declare const
|
|
60
|
-
declare const common: FlatESLintConfig[];
|
|
67
|
+
declare const presetJsonc: FlatESLintConfig[];
|
|
61
68
|
/**
|
|
62
|
-
*
|
|
69
|
+
* JSON YAML Markdown
|
|
63
70
|
*/
|
|
64
|
-
declare const
|
|
71
|
+
declare const presetLanguageExtensions: FlatESLintConfig[];
|
|
72
|
+
declare const presetCommon: FlatESLintConfig[];
|
|
73
|
+
/**
|
|
74
|
+
* All supported framework
|
|
75
|
+
*/
|
|
76
|
+
declare const presetAll: FlatESLintConfig[];
|
|
65
77
|
/**
|
|
66
78
|
* custom framework support
|
|
67
79
|
*/
|
|
68
|
-
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, unocss: enableUnoCSS }?: {
|
|
80
|
+
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, unocss: enableUnoCSS, prettier: enablePrettier, markdown: enableMarkdown, }?: {
|
|
69
81
|
vue?: boolean | undefined;
|
|
70
82
|
unocss?: boolean | undefined;
|
|
83
|
+
prettier?: boolean | undefined;
|
|
84
|
+
markdown?: boolean | undefined;
|
|
71
85
|
}): FlatESLintConfig[];
|
|
72
86
|
|
|
73
87
|
declare function getVueVersion(): number;
|
|
@@ -97,11 +111,20 @@ declare const comments: eslint_define_config.FlatESLintConfig[];
|
|
|
97
111
|
declare const javascript: eslint_define_config.FlatESLintConfig[];
|
|
98
112
|
declare const jsx: eslint_define_config.FlatESLintConfig[];
|
|
99
113
|
|
|
100
|
-
declare const
|
|
114
|
+
declare const typescriptCore: FlatESLintConfig[];
|
|
115
|
+
declare const typescript: FlatESLintConfig[];
|
|
101
116
|
|
|
102
117
|
/**
|
|
103
118
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores
|
|
104
119
|
*/
|
|
105
120
|
declare const ignores: eslint_define_config.FlatESLintConfig[];
|
|
106
121
|
|
|
107
|
-
|
|
122
|
+
/**
|
|
123
|
+
* @file plugins & parsers
|
|
124
|
+
*/
|
|
125
|
+
type InteropDefault<T> = T extends {
|
|
126
|
+
default: infer U;
|
|
127
|
+
} ? U : T;
|
|
128
|
+
declare function interopDefault<T>(m: T): InteropDefault<T>;
|
|
129
|
+
|
|
130
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropDefault, comments, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsonc, jsx, markdown, node, ntnyq, presetAll, presetBasic, presetCommon, presetJavaScript, presetJsonc, presetLanguageExtensions, prettier, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,24 +7,24 @@ export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
|
7
7
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
8
8
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
9
9
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
10
|
-
export { default as
|
|
11
|
-
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
12
|
-
export { eslintPluginYml as pluginYaml };
|
|
10
|
+
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
13
11
|
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
14
12
|
export { eslintPluginJsonc as pluginJsonc };
|
|
15
|
-
|
|
16
|
-
export { eslintPluginImportX as pluginImport };
|
|
13
|
+
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
17
14
|
import * as yamlEslintParser from 'yaml-eslint-parser';
|
|
18
15
|
export { yamlEslintParser as parserYaml };
|
|
19
16
|
import * as vueEslintParser from 'vue-eslint-parser';
|
|
20
17
|
export { vueEslintParser as parserVue };
|
|
21
18
|
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
22
19
|
export { jsoncEslintParser as parserJsonc };
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
export { default as tseslint } from 'typescript-eslint';
|
|
21
|
+
|
|
22
|
+
declare const hasTypeScript: boolean;
|
|
23
|
+
declare const hasVue: boolean;
|
|
24
|
+
declare const hasUnoCSS: boolean;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* @file
|
|
27
|
+
* @file globs constants
|
|
28
28
|
*/
|
|
29
29
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
30
30
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -54,20 +54,34 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
54
54
|
*/
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* JavaScript preset
|
|
58
|
+
*/
|
|
59
|
+
declare const presetJavaScript: FlatESLintConfig[];
|
|
60
|
+
/**
|
|
61
|
+
* JavaScript & TypeScript
|
|
62
|
+
*/
|
|
63
|
+
declare const presetBasic: FlatESLintConfig[];
|
|
64
|
+
/**
|
|
65
|
+
* JSON and sort json keys
|
|
58
66
|
*/
|
|
59
|
-
declare const
|
|
60
|
-
declare const common: FlatESLintConfig[];
|
|
67
|
+
declare const presetJsonc: FlatESLintConfig[];
|
|
61
68
|
/**
|
|
62
|
-
*
|
|
69
|
+
* JSON YAML Markdown
|
|
63
70
|
*/
|
|
64
|
-
declare const
|
|
71
|
+
declare const presetLanguageExtensions: FlatESLintConfig[];
|
|
72
|
+
declare const presetCommon: FlatESLintConfig[];
|
|
73
|
+
/**
|
|
74
|
+
* All supported framework
|
|
75
|
+
*/
|
|
76
|
+
declare const presetAll: FlatESLintConfig[];
|
|
65
77
|
/**
|
|
66
78
|
* custom framework support
|
|
67
79
|
*/
|
|
68
|
-
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, unocss: enableUnoCSS }?: {
|
|
80
|
+
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, unocss: enableUnoCSS, prettier: enablePrettier, markdown: enableMarkdown, }?: {
|
|
69
81
|
vue?: boolean | undefined;
|
|
70
82
|
unocss?: boolean | undefined;
|
|
83
|
+
prettier?: boolean | undefined;
|
|
84
|
+
markdown?: boolean | undefined;
|
|
71
85
|
}): FlatESLintConfig[];
|
|
72
86
|
|
|
73
87
|
declare function getVueVersion(): number;
|
|
@@ -97,11 +111,20 @@ declare const comments: eslint_define_config.FlatESLintConfig[];
|
|
|
97
111
|
declare const javascript: eslint_define_config.FlatESLintConfig[];
|
|
98
112
|
declare const jsx: eslint_define_config.FlatESLintConfig[];
|
|
99
113
|
|
|
100
|
-
declare const
|
|
114
|
+
declare const typescriptCore: FlatESLintConfig[];
|
|
115
|
+
declare const typescript: FlatESLintConfig[];
|
|
101
116
|
|
|
102
117
|
/**
|
|
103
118
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores
|
|
104
119
|
*/
|
|
105
120
|
declare const ignores: eslint_define_config.FlatESLintConfig[];
|
|
106
121
|
|
|
107
|
-
|
|
122
|
+
/**
|
|
123
|
+
* @file plugins & parsers
|
|
124
|
+
*/
|
|
125
|
+
type InteropDefault<T> = T extends {
|
|
126
|
+
default: infer U;
|
|
127
|
+
} ? U : T;
|
|
128
|
+
declare function interopDefault<T>(m: T): InteropDefault<T>;
|
|
129
|
+
|
|
130
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropDefault, comments, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsonc, jsx, markdown, node, ntnyq, presetAll, presetBasic, presetCommon, presetJavaScript, presetJsonc, presetLanguageExtensions, prettier, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|