@ntnyq/eslint-config 2.0.0-beta.5 → 2.0.0-beta.7

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.
@@ -0,0 +1,79 @@
1
+ import { FlatESLintConfig } from 'eslint-define-config';
2
+ export { default as tsParser } from '@typescript-eslint/parser';
3
+ export { default as tsPlugin } from '@typescript-eslint/eslint-plugin';
4
+ export { default as vueParser } from 'vue-eslint-parser';
5
+ export { default as vuePlugin } from 'eslint-plugin-vue';
6
+ export { default as reactPlugin } from 'eslint-plugin-react';
7
+ export { default as reactHooksPlugin } from 'eslint-plugin-react-hooks';
8
+
9
+ /**
10
+ * @file shared constants
11
+ */
12
+ declare const GLOB_SRC = "**/*.?([mt])[jt]s?(x)";
13
+ declare const GLOB_JS = "**/*.?([mt])js";
14
+ declare const GLOB_JSX = "**/*.?([mt])jsx";
15
+ declare const GLOB_TS = "**/*.?([mt])ts";
16
+ declare const GLOB_TSX = "**/*.?([mt])tsx";
17
+ declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
18
+ declare const GLOB_CSS = "**/*.css";
19
+ declare const GLOB_LESS = "**/*.less";
20
+ declare const GLOB_SCSS = "**/*.scss";
21
+ declare const GLOB_JSON = "**/*.json";
22
+ declare const GLOB_JSON5 = "**/*.json5";
23
+ declare const GLOB_JSONC = "**/*.jsonc";
24
+ declare const GLOB_VUE = "**/*.vue";
25
+ declare const GLOB_ASTRO = "**/*.astro";
26
+ declare const GLOB_MARKDOWN = "**/*.md";
27
+ declare const GLOB_YAML = "**/*.y?(a)ml";
28
+ declare const GLOB_HTML = "**/*.htm?(l)";
29
+ declare const GLOB_ALL_SRC: string[];
30
+ declare const GLOB_NODE_MODULES = "**/node_modules/**";
31
+ declare const GLOB_DIST = "**/dist/**";
32
+ declare const GLOB_LOCKFILE: string[];
33
+ declare const GLOB_EXCLUDE: string[];
34
+
35
+ /**
36
+ * no framework
37
+ */
38
+ declare const basic: FlatESLintConfig[];
39
+ /**
40
+ * all supported framework
41
+ */
42
+ declare const all: FlatESLintConfig[];
43
+ /**
44
+ * custom framework support
45
+ */
46
+ declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, prettier: enablePrettier, markdown: enableMarkdown, }?: {
47
+ vue?: boolean | undefined;
48
+ react?: boolean | undefined;
49
+ astro?: boolean | undefined;
50
+ prettier?: boolean | undefined;
51
+ markdown?: boolean | undefined;
52
+ }): FlatESLintConfig[];
53
+
54
+ declare const js: FlatESLintConfig[];
55
+ declare const jsx: FlatESLintConfig[];
56
+ declare const imports: FlatESLintConfig[];
57
+ declare const unicorn: FlatESLintConfig[];
58
+
59
+ declare const ts: FlatESLintConfig[];
60
+
61
+ declare function getVueVersion(): number;
62
+ declare const vue: FlatESLintConfig[];
63
+
64
+ declare const yml: FlatESLintConfig[];
65
+
66
+ declare const react: FlatESLintConfig[];
67
+
68
+ declare const astro: FlatESLintConfig[];
69
+
70
+ declare const jsonc: FlatESLintConfig[];
71
+ declare const pkgOrder: FlatESLintConfig[];
72
+
73
+ declare const prettier: FlatESLintConfig[];
74
+
75
+ declare const markdown: FlatESLintConfig[];
76
+
77
+ declare const eslintComments: FlatESLintConfig[];
78
+
79
+ 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_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, vue, yml };