@ntnyq/eslint-config 2.0.0-beta.17 → 2.0.0-beta.19

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.d.cts CHANGED
@@ -1,11 +1,22 @@
1
- import { FlatESLintConfig } from 'eslint-define-config';
1
+ import { FlatESLintConfigItem } from 'eslint-define-config';
2
+ import * as yamlEslintParser from 'yaml-eslint-parser';
3
+ export { yamlEslintParser as parserYml };
4
+ import * as vueEslintParser from 'vue-eslint-parser';
5
+ export { vueEslintParser as parserVue };
6
+ import * as jsoncEslintParser from 'jsonc-eslint-parser';
7
+ export { jsoncEslintParser as parserJsonc };
8
+ import * as astroEslintParser from 'astro-eslint-parser';
9
+ export { astroEslintParser as parserAstro };
2
10
  import * as parser from '@typescript-eslint/parser';
3
- export { parser as tsParser };
4
- export { default as tsPlugin } from '@typescript-eslint/eslint-plugin';
5
- export { default as vueParser } from 'vue-eslint-parser';
6
- export { default as vuePlugin } from 'eslint-plugin-vue';
7
- export { default as reactPlugin } from 'eslint-plugin-react';
8
- export { default as reactHooksPlugin } from 'eslint-plugin-react-hooks';
11
+ export { parser as parserTypescript };
12
+ import * as eslintPluginYml from 'eslint-plugin-yml';
13
+ export { eslintPluginYml as pluginYml };
14
+ import * as eslintPluginAstro from 'eslint-plugin-astro';
15
+ export { eslintPluginAstro as pluginAstro };
16
+ import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
17
+ export { eslintPluginJsonc as pluginJsonc };
18
+ import * as eslintPluginImport from 'eslint-plugin-import';
19
+ export { eslintPluginImport as pluginImport };
9
20
 
10
21
  /**
11
22
  * @file shared constants
@@ -35,50 +46,73 @@ declare const GLOB_LOCKFILE: string[];
35
46
  declare const GLOB_EXCLUDE: string[];
36
47
 
37
48
  /**
38
- * no framework
49
+ * @file presets
39
50
  */
40
- declare const basic: FlatESLintConfig[];
51
+
52
+ /**
53
+ * only js and ts
54
+ */
55
+ declare const basic: FlatESLintConfigItem[];
56
+ declare const common: FlatESLintConfigItem[];
41
57
  /**
42
58
  * all supported framework
43
59
  */
44
- declare const all: FlatESLintConfig[];
60
+ declare const all: FlatESLintConfigItem[];
45
61
  /**
46
62
  * custom framework support
47
63
  */
48
- declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, prettier: enablePrettier, markdown: enableMarkdown, unocss: enableUnoCSS, }?: {
64
+ declare function ntnyq(config?: FlatESLintConfigItem | FlatESLintConfigItem[], { vue: enableVue, react: enableReact, astro: enableAstro, unocss: enableUnoCSS, }?: {
49
65
  vue?: boolean | undefined;
50
66
  react?: boolean | undefined;
51
67
  astro?: boolean | undefined;
52
- prettier?: boolean | undefined;
53
- markdown?: boolean | undefined;
54
68
  unocss?: boolean | undefined;
55
- }): FlatESLintConfig[];
69
+ }): FlatESLintConfigItem[];
56
70
 
57
- declare const js: FlatESLintConfig[];
58
- declare const jsx: FlatESLintConfig[];
59
- declare const imports: FlatESLintConfig[];
60
- declare const unicorn: FlatESLintConfig[];
71
+ declare function getVueVersion(): number;
72
+ declare const vue: FlatESLintConfigItem[];
61
73
 
62
- declare const ts: FlatESLintConfig[];
74
+ declare const yml: FlatESLintConfigItem[];
63
75
 
64
- declare function getVueVersion(): number;
65
- declare const vue: FlatESLintConfig[];
76
+ declare const react: FlatESLintConfigItem[];
77
+
78
+ declare const astro: FlatESLintConfigItem[];
79
+
80
+ declare const jsonc: FlatESLintConfigItem[];
81
+ declare const jsonOrder: FlatESLintConfigItem[];
66
82
 
67
- declare const yml: FlatESLintConfig[];
83
+ declare const imports: FlatESLintConfigItem[];
68
84
 
69
- declare const react: FlatESLintConfig[];
85
+ declare const unocss: FlatESLintConfigItem[];
70
86
 
71
- declare const astro: FlatESLintConfig[];
87
+ declare const unicorn: FlatESLintConfigItem[];
72
88
 
73
- declare const jsonc: FlatESLintConfig[];
74
- declare const pkgOrder: FlatESLintConfig[];
89
+ declare const prettier: FlatESLintConfigItem[];
75
90
 
76
- declare const unocss: FlatESLintConfig[];
91
+ declare const markdown: FlatESLintConfigItem[];
77
92
 
78
- declare const prettier: FlatESLintConfig[];
93
+ declare const comments: FlatESLintConfigItem[];
79
94
 
80
- declare const markdown: FlatESLintConfig[];
95
+ declare const javascript: FlatESLintConfigItem[];
96
+ declare const jsx: FlatESLintConfigItem[];
81
97
 
82
- declare const eslintComments: FlatESLintConfig[];
98
+ declare const typescript: FlatESLintConfigItem[];
99
+
100
+ /**
101
+ * @see https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores
102
+ */
103
+ declare const ignores: FlatESLintConfigItem[];
104
+
105
+ /**
106
+ * @file eslint plugins
107
+ */
108
+ declare const pluginVue: any;
109
+ declare const pluginReact: any;
110
+ declare const pluginUnoCSS: any;
111
+ declare const pluginUnicorn: any;
112
+ declare const pluginPrettier: any;
113
+ declare const pluginMarkdown: any;
114
+ declare const pluginComments: any;
115
+ declare const pluginReactHooks: any;
116
+ declare const pluginTypescript: any;
83
117
 
84
- export { GLOB_ALL_SRC, GLOB_ASTRO, 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, all, astro, basic, eslintComments, getVueVersion, imports, js, jsonc, jsx, markdown, ntnyq, pkgOrder, prettier, react, ts, unicorn, unocss, vue, yml };
118
+ export { GLOB_ALL_SRC, GLOB_ASTRO, 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, all, astro, basic, comments, common, getVueVersion, ignores, imports, javascript, jsonOrder, jsonc, jsx, markdown, ntnyq, pluginComments, pluginMarkdown, pluginPrettier, pluginReact, pluginReactHooks, pluginTypescript, pluginUnicorn, pluginUnoCSS, pluginVue, prettier, react, typescript, unicorn, unocss, vue, yml };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,22 @@
1
- import { FlatESLintConfig } from 'eslint-define-config';
1
+ import { FlatESLintConfigItem } from 'eslint-define-config';
2
+ import * as yamlEslintParser from 'yaml-eslint-parser';
3
+ export { yamlEslintParser as parserYml };
4
+ import * as vueEslintParser from 'vue-eslint-parser';
5
+ export { vueEslintParser as parserVue };
6
+ import * as jsoncEslintParser from 'jsonc-eslint-parser';
7
+ export { jsoncEslintParser as parserJsonc };
8
+ import * as astroEslintParser from 'astro-eslint-parser';
9
+ export { astroEslintParser as parserAstro };
2
10
  import * as parser from '@typescript-eslint/parser';
3
- export { parser as tsParser };
4
- export { default as tsPlugin } from '@typescript-eslint/eslint-plugin';
5
- export { default as vueParser } from 'vue-eslint-parser';
6
- export { default as vuePlugin } from 'eslint-plugin-vue';
7
- export { default as reactPlugin } from 'eslint-plugin-react';
8
- export { default as reactHooksPlugin } from 'eslint-plugin-react-hooks';
11
+ export { parser as parserTypescript };
12
+ import * as eslintPluginYml from 'eslint-plugin-yml';
13
+ export { eslintPluginYml as pluginYml };
14
+ import * as eslintPluginAstro from 'eslint-plugin-astro';
15
+ export { eslintPluginAstro as pluginAstro };
16
+ import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
17
+ export { eslintPluginJsonc as pluginJsonc };
18
+ import * as eslintPluginImport from 'eslint-plugin-import';
19
+ export { eslintPluginImport as pluginImport };
9
20
 
10
21
  /**
11
22
  * @file shared constants
@@ -35,50 +46,73 @@ declare const GLOB_LOCKFILE: string[];
35
46
  declare const GLOB_EXCLUDE: string[];
36
47
 
37
48
  /**
38
- * no framework
49
+ * @file presets
39
50
  */
40
- declare const basic: FlatESLintConfig[];
51
+
52
+ /**
53
+ * only js and ts
54
+ */
55
+ declare const basic: FlatESLintConfigItem[];
56
+ declare const common: FlatESLintConfigItem[];
41
57
  /**
42
58
  * all supported framework
43
59
  */
44
- declare const all: FlatESLintConfig[];
60
+ declare const all: FlatESLintConfigItem[];
45
61
  /**
46
62
  * custom framework support
47
63
  */
48
- declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, prettier: enablePrettier, markdown: enableMarkdown, unocss: enableUnoCSS, }?: {
64
+ declare function ntnyq(config?: FlatESLintConfigItem | FlatESLintConfigItem[], { vue: enableVue, react: enableReact, astro: enableAstro, unocss: enableUnoCSS, }?: {
49
65
  vue?: boolean | undefined;
50
66
  react?: boolean | undefined;
51
67
  astro?: boolean | undefined;
52
- prettier?: boolean | undefined;
53
- markdown?: boolean | undefined;
54
68
  unocss?: boolean | undefined;
55
- }): FlatESLintConfig[];
69
+ }): FlatESLintConfigItem[];
56
70
 
57
- declare const js: FlatESLintConfig[];
58
- declare const jsx: FlatESLintConfig[];
59
- declare const imports: FlatESLintConfig[];
60
- declare const unicorn: FlatESLintConfig[];
71
+ declare function getVueVersion(): number;
72
+ declare const vue: FlatESLintConfigItem[];
61
73
 
62
- declare const ts: FlatESLintConfig[];
74
+ declare const yml: FlatESLintConfigItem[];
63
75
 
64
- declare function getVueVersion(): number;
65
- declare const vue: FlatESLintConfig[];
76
+ declare const react: FlatESLintConfigItem[];
77
+
78
+ declare const astro: FlatESLintConfigItem[];
79
+
80
+ declare const jsonc: FlatESLintConfigItem[];
81
+ declare const jsonOrder: FlatESLintConfigItem[];
66
82
 
67
- declare const yml: FlatESLintConfig[];
83
+ declare const imports: FlatESLintConfigItem[];
68
84
 
69
- declare const react: FlatESLintConfig[];
85
+ declare const unocss: FlatESLintConfigItem[];
70
86
 
71
- declare const astro: FlatESLintConfig[];
87
+ declare const unicorn: FlatESLintConfigItem[];
72
88
 
73
- declare const jsonc: FlatESLintConfig[];
74
- declare const pkgOrder: FlatESLintConfig[];
89
+ declare const prettier: FlatESLintConfigItem[];
75
90
 
76
- declare const unocss: FlatESLintConfig[];
91
+ declare const markdown: FlatESLintConfigItem[];
77
92
 
78
- declare const prettier: FlatESLintConfig[];
93
+ declare const comments: FlatESLintConfigItem[];
79
94
 
80
- declare const markdown: FlatESLintConfig[];
95
+ declare const javascript: FlatESLintConfigItem[];
96
+ declare const jsx: FlatESLintConfigItem[];
81
97
 
82
- declare const eslintComments: FlatESLintConfig[];
98
+ declare const typescript: FlatESLintConfigItem[];
99
+
100
+ /**
101
+ * @see https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores
102
+ */
103
+ declare const ignores: FlatESLintConfigItem[];
104
+
105
+ /**
106
+ * @file eslint plugins
107
+ */
108
+ declare const pluginVue: any;
109
+ declare const pluginReact: any;
110
+ declare const pluginUnoCSS: any;
111
+ declare const pluginUnicorn: any;
112
+ declare const pluginPrettier: any;
113
+ declare const pluginMarkdown: any;
114
+ declare const pluginComments: any;
115
+ declare const pluginReactHooks: any;
116
+ declare const pluginTypescript: any;
83
117
 
84
- export { GLOB_ALL_SRC, GLOB_ASTRO, 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, all, astro, basic, eslintComments, getVueVersion, imports, js, jsonc, jsx, markdown, ntnyq, pkgOrder, prettier, react, ts, unicorn, unocss, vue, yml };
118
+ export { GLOB_ALL_SRC, GLOB_ASTRO, 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, all, astro, basic, comments, common, getVueVersion, ignores, imports, javascript, jsonOrder, jsonc, jsx, markdown, ntnyq, pluginComments, pluginMarkdown, pluginPrettier, pluginReact, pluginReactHooks, pluginTypescript, pluginUnicorn, pluginUnoCSS, pluginVue, prettier, react, typescript, unicorn, unocss, vue, yml };