@ntnyq/eslint-config 2.0.0-beta.25 → 2.0.0-beta.27
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 +338 -115
- package/dist/index.d.cts +26 -13
- package/dist/index.d.ts +26 -13
- package/dist/index.js +352 -132
- package/package.json +16 -17
package/dist/index.d.cts
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import * as eslint_define_config from 'eslint-define-config';
|
|
2
2
|
import { FlatESLintConfig } from 'eslint-define-config';
|
|
3
|
-
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
4
|
-
export { eslintPluginYml as pluginYaml };
|
|
5
3
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
6
|
-
export { default as pluginImport } from 'eslint-plugin-i';
|
|
7
4
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
8
|
-
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
9
5
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
10
6
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
11
7
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
12
8
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
13
9
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
14
|
-
export { default as
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
export { default as
|
|
18
|
-
import * as
|
|
19
|
-
export {
|
|
10
|
+
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
11
|
+
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
12
|
+
export { eslintPluginJsonc as pluginJsonc };
|
|
13
|
+
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
14
|
+
import * as yamlEslintParser from 'yaml-eslint-parser';
|
|
15
|
+
export { yamlEslintParser as parserYaml };
|
|
16
|
+
import * as vueEslintParser from 'vue-eslint-parser';
|
|
17
|
+
export { vueEslintParser as parserVue };
|
|
18
|
+
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
19
|
+
export { jsoncEslintParser as parserJsonc };
|
|
20
|
+
export { default as tseslint } from 'typescript-eslint';
|
|
21
|
+
|
|
22
|
+
declare const hasTypeScript: boolean;
|
|
23
|
+
declare const hasVue: boolean;
|
|
20
24
|
|
|
21
25
|
/**
|
|
22
|
-
* @file
|
|
26
|
+
* @file globs constants
|
|
23
27
|
*/
|
|
24
28
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
25
29
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -92,11 +96,20 @@ declare const comments: eslint_define_config.FlatESLintConfig[];
|
|
|
92
96
|
declare const javascript: eslint_define_config.FlatESLintConfig[];
|
|
93
97
|
declare const jsx: eslint_define_config.FlatESLintConfig[];
|
|
94
98
|
|
|
95
|
-
declare const
|
|
99
|
+
declare const typescriptCore: FlatESLintConfig[];
|
|
100
|
+
declare const typescript: FlatESLintConfig[];
|
|
96
101
|
|
|
97
102
|
/**
|
|
98
103
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores
|
|
99
104
|
*/
|
|
100
105
|
declare const ignores: eslint_define_config.FlatESLintConfig[];
|
|
101
106
|
|
|
102
|
-
|
|
107
|
+
/**
|
|
108
|
+
* @file plugins & parsers
|
|
109
|
+
*/
|
|
110
|
+
type InteropDefault<T> = T extends {
|
|
111
|
+
default: infer U;
|
|
112
|
+
} ? U : T;
|
|
113
|
+
declare function interopDefault<T>(m: T): InteropDefault<T>;
|
|
114
|
+
|
|
115
|
+
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, all, basic, comments, common, getVueVersion, hasTypeScript, hasVue, ignores, imports, interopDefault, javascript, jsonc, jsx, markdown, node, ntnyq, prettier, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import * as eslint_define_config from 'eslint-define-config';
|
|
2
2
|
import { FlatESLintConfig } from 'eslint-define-config';
|
|
3
|
-
import * as eslintPluginYml from 'eslint-plugin-yml';
|
|
4
|
-
export { eslintPluginYml as pluginYaml };
|
|
5
3
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
6
|
-
export { default as pluginImport } from 'eslint-plugin-i';
|
|
7
4
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
8
|
-
export { default as pluginJsonc } from 'eslint-plugin-jsonc';
|
|
9
5
|
export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
|
|
10
6
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
11
7
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
12
8
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
13
9
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
14
|
-
export { default as
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
export { default as
|
|
18
|
-
import * as
|
|
19
|
-
export {
|
|
10
|
+
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
11
|
+
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
12
|
+
export { eslintPluginJsonc as pluginJsonc };
|
|
13
|
+
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
14
|
+
import * as yamlEslintParser from 'yaml-eslint-parser';
|
|
15
|
+
export { yamlEslintParser as parserYaml };
|
|
16
|
+
import * as vueEslintParser from 'vue-eslint-parser';
|
|
17
|
+
export { vueEslintParser as parserVue };
|
|
18
|
+
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
19
|
+
export { jsoncEslintParser as parserJsonc };
|
|
20
|
+
export { default as tseslint } from 'typescript-eslint';
|
|
21
|
+
|
|
22
|
+
declare const hasTypeScript: boolean;
|
|
23
|
+
declare const hasVue: boolean;
|
|
20
24
|
|
|
21
25
|
/**
|
|
22
|
-
* @file
|
|
26
|
+
* @file globs constants
|
|
23
27
|
*/
|
|
24
28
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
25
29
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -92,11 +96,20 @@ declare const comments: eslint_define_config.FlatESLintConfig[];
|
|
|
92
96
|
declare const javascript: eslint_define_config.FlatESLintConfig[];
|
|
93
97
|
declare const jsx: eslint_define_config.FlatESLintConfig[];
|
|
94
98
|
|
|
95
|
-
declare const
|
|
99
|
+
declare const typescriptCore: FlatESLintConfig[];
|
|
100
|
+
declare const typescript: FlatESLintConfig[];
|
|
96
101
|
|
|
97
102
|
/**
|
|
98
103
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores
|
|
99
104
|
*/
|
|
100
105
|
declare const ignores: eslint_define_config.FlatESLintConfig[];
|
|
101
106
|
|
|
102
|
-
|
|
107
|
+
/**
|
|
108
|
+
* @file plugins & parsers
|
|
109
|
+
*/
|
|
110
|
+
type InteropDefault<T> = T extends {
|
|
111
|
+
default: infer U;
|
|
112
|
+
} ? U : T;
|
|
113
|
+
declare function interopDefault<T>(m: T): InteropDefault<T>;
|
|
114
|
+
|
|
115
|
+
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, all, basic, comments, common, getVueVersion, hasTypeScript, hasVue, ignores, imports, interopDefault, javascript, jsonc, jsx, markdown, node, ntnyq, prettier, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|