@sxzz/eslint-config 3.12.1 → 3.14.0
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 +2 -0
- package/dist/index.d.ts +28 -27
- package/dist/index.js +3 -1
- package/package.json +18 -18
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as eslint from 'eslint';
|
|
2
|
+
import { Linter } from 'eslint';
|
|
2
3
|
import * as _unocss_eslint_plugin from '@unocss/eslint-plugin';
|
|
3
4
|
import * as eslint_plugin_n from 'eslint-plugin-n';
|
|
4
5
|
import * as eslint_plugin_antfu from 'eslint-plugin-antfu';
|
|
@@ -17,42 +18,42 @@ export { jsoncEslintParser as parserJsonc };
|
|
|
17
18
|
export { default as configCommand } from 'eslint-plugin-command/config';
|
|
18
19
|
export { default as tseslint } from 'typescript-eslint';
|
|
19
20
|
|
|
20
|
-
declare const command:
|
|
21
|
+
declare const command: eslint.Linter.FlatConfig<eslint.Linter.RulesRecord>[];
|
|
21
22
|
|
|
22
|
-
declare const comments:
|
|
23
|
+
declare const comments: Linter.FlatConfig[];
|
|
23
24
|
|
|
24
|
-
declare const ignores:
|
|
25
|
+
declare const ignores: Linter.FlatConfig[];
|
|
25
26
|
|
|
26
|
-
declare const imports:
|
|
27
|
+
declare const imports: Linter.FlatConfig[];
|
|
27
28
|
|
|
28
29
|
declare const restrictedSyntaxJs: string[];
|
|
29
|
-
declare const javascript:
|
|
30
|
+
declare const javascript: Linter.FlatConfig[];
|
|
30
31
|
|
|
31
|
-
declare const jsonc:
|
|
32
|
+
declare const jsonc: Linter.FlatConfig[];
|
|
32
33
|
|
|
33
|
-
declare const markdown:
|
|
34
|
+
declare const markdown: Linter.FlatConfig[];
|
|
34
35
|
|
|
35
|
-
declare const node:
|
|
36
|
+
declare const node: Linter.FlatConfig[];
|
|
36
37
|
|
|
37
|
-
declare const sortKeys:
|
|
38
|
+
declare const sortKeys: Linter.FlatConfig[];
|
|
38
39
|
|
|
39
|
-
declare const prettier:
|
|
40
|
+
declare const prettier: Linter.FlatConfig[];
|
|
40
41
|
|
|
41
|
-
declare const sortPackageJson:
|
|
42
|
-
declare const sortTsconfig:
|
|
42
|
+
declare const sortPackageJson: Linter.FlatConfig[];
|
|
43
|
+
declare const sortTsconfig: Linter.FlatConfig[];
|
|
43
44
|
|
|
44
|
-
declare const typescriptCore:
|
|
45
|
-
declare const typescript:
|
|
45
|
+
declare const typescriptCore: Linter.FlatConfig[];
|
|
46
|
+
declare const typescript: Linter.FlatConfig[];
|
|
46
47
|
|
|
47
|
-
declare const unicorn:
|
|
48
|
+
declare const unicorn: Linter.FlatConfig[];
|
|
48
49
|
|
|
49
|
-
declare const unocss:
|
|
50
|
+
declare const unocss: Linter.FlatConfig[];
|
|
50
51
|
|
|
51
52
|
declare function getVueVersion(): number;
|
|
52
|
-
declare const reactivityTransform:
|
|
53
|
-
declare const vue:
|
|
53
|
+
declare const reactivityTransform: Linter.FlatConfig[];
|
|
54
|
+
declare const vue: Linter.FlatConfig[];
|
|
54
55
|
|
|
55
|
-
declare const yml:
|
|
56
|
+
declare const yml: Linter.FlatConfig[];
|
|
56
57
|
|
|
57
58
|
declare const isInEditor: boolean;
|
|
58
59
|
declare const hasTypeScript: boolean;
|
|
@@ -99,13 +100,13 @@ declare const configPrettier: any;
|
|
|
99
100
|
declare const pluginUnusedImports: any;
|
|
100
101
|
|
|
101
102
|
/** Ignore common files and include javascript support */
|
|
102
|
-
declare const presetJavaScript:
|
|
103
|
+
declare const presetJavaScript: Linter.FlatConfig<Linter.RulesRecord>[];
|
|
103
104
|
/** Includes basic json(c) file support and sorting json keys */
|
|
104
|
-
declare const presetJsonc:
|
|
105
|
+
declare const presetJsonc: Linter.FlatConfig<Linter.RulesRecord>[];
|
|
105
106
|
/** Includes markdown, yaml + `presetJsonc` support */
|
|
106
|
-
declare const presetLangsExtensions:
|
|
107
|
+
declare const presetLangsExtensions: Linter.FlatConfig<Linter.RulesRecord>[];
|
|
107
108
|
/** Includes `presetJavaScript` and typescript support */
|
|
108
|
-
declare const presetBasic:
|
|
109
|
+
declare const presetBasic: Linter.FlatConfig<Linter.RulesRecord>[];
|
|
109
110
|
/**
|
|
110
111
|
* Includes
|
|
111
112
|
* - `presetBasic` (JS+TS) support
|
|
@@ -114,7 +115,7 @@ declare const presetBasic: FlatESLintConfig[];
|
|
|
114
115
|
* - UnoCSS support (`uno.config.ts` is required)
|
|
115
116
|
* - Prettier support
|
|
116
117
|
*/
|
|
117
|
-
declare const presetAll:
|
|
118
|
+
declare const presetAll: Linter.FlatConfig<Linter.RulesRecord>[];
|
|
118
119
|
|
|
119
120
|
/**
|
|
120
121
|
*
|
|
@@ -122,7 +123,7 @@ declare const presetAll: FlatESLintConfig[];
|
|
|
122
123
|
* @param features
|
|
123
124
|
* @returns
|
|
124
125
|
*/
|
|
125
|
-
declare function sxzz(config?:
|
|
126
|
+
declare function sxzz(config?: Linter.FlatConfig | Linter.FlatConfig[], { command: enableCommand, markdown: enableMarkdown, prettier: enablePrettier, unocss: enableUnocss, vue: enableVue, }?: Partial<{
|
|
126
127
|
/** Vue support. Auto-enable. */
|
|
127
128
|
vue: boolean;
|
|
128
129
|
/** Prettier support. Default: true */
|
|
@@ -133,6 +134,6 @@ declare function sxzz(config?: FlatESLintConfig | FlatESLintConfig[], { command:
|
|
|
133
134
|
unocss: boolean;
|
|
134
135
|
sortKeys: boolean;
|
|
135
136
|
command: boolean;
|
|
136
|
-
}>):
|
|
137
|
+
}>): Linter.FlatConfig[];
|
|
137
138
|
|
|
138
139
|
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, presetAll as all, presetBasic as basic, command, comments, configPrettier, getVueVersion, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, node, pluginAntfu, pluginComments, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPrettier, pluginUnicorn, pluginUnocss, pluginUnusedImports, pluginVue, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, restrictedSyntaxJs, sortKeys, sortPackageJson, sortTsconfig, sxzz, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "ESLint config for @sxzz.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,38 +27,38 @@
|
|
|
27
27
|
"eslint": "^8.56.0 || ^9.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@unocss/eslint-plugin": "^0.
|
|
30
|
+
"@unocss/eslint-plugin": "^0.61.3",
|
|
31
31
|
"eslint-config-prettier": "^9.1.0",
|
|
32
|
-
"eslint-
|
|
33
|
-
"eslint-plugin-antfu": "^2.3.3",
|
|
32
|
+
"eslint-plugin-antfu": "^2.3.4",
|
|
34
33
|
"eslint-plugin-command": "^0.2.3",
|
|
35
34
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
36
|
-
"eslint-plugin-import-x": "^0.
|
|
35
|
+
"eslint-plugin-import-x": "^3.0.1",
|
|
37
36
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
38
|
-
"eslint-plugin-markdown": "^5.
|
|
39
|
-
"eslint-plugin-n": "^17.
|
|
40
|
-
"eslint-plugin-perfectionist": "^2.
|
|
37
|
+
"eslint-plugin-markdown": "^5.1.0",
|
|
38
|
+
"eslint-plugin-n": "^17.9.0",
|
|
39
|
+
"eslint-plugin-perfectionist": "^2.11.0",
|
|
41
40
|
"eslint-plugin-prettier": "^5.1.3",
|
|
42
|
-
"eslint-plugin-unicorn": "^
|
|
41
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
43
42
|
"eslint-plugin-unused-imports": "^4.0.0",
|
|
44
|
-
"eslint-plugin-vue": "^9.
|
|
43
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
45
44
|
"eslint-plugin-yml": "^1.14.0",
|
|
46
|
-
"globals": "^15.
|
|
45
|
+
"globals": "^15.8.0",
|
|
47
46
|
"jsonc-eslint-parser": "^2.4.0",
|
|
48
47
|
"local-pkg": "^0.5.0",
|
|
49
|
-
"prettier": "^3.3.
|
|
50
|
-
"typescript-eslint": "^7.
|
|
48
|
+
"prettier": "^3.3.3",
|
|
49
|
+
"typescript-eslint": "^7.16.0",
|
|
51
50
|
"vue-eslint-parser": "^9.4.3",
|
|
52
51
|
"yaml-eslint-parser": "^1.2.3"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
54
|
"@sxzz/prettier-config": "^2.0.2",
|
|
56
|
-
"@types/
|
|
55
|
+
"@types/eslint": "^8.56.10",
|
|
56
|
+
"@types/node": "^20.14.10",
|
|
57
57
|
"bumpp": "^9.4.1",
|
|
58
|
-
"eslint": "^9.
|
|
59
|
-
"tsup": "^8.0
|
|
60
|
-
"tsx": "^4.
|
|
61
|
-
"typescript": "^5.
|
|
58
|
+
"eslint": "^9.7.0",
|
|
59
|
+
"tsup": "^8.1.0",
|
|
60
|
+
"tsx": "^4.16.2",
|
|
61
|
+
"typescript": "^5.5.3"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": "^18.18.0 || >=20.0.0"
|