@frabbit/eslint-config 1.5.10 → 1.5.13
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 +24 -24
- package/dist/index.d.ts +24 -24
- package/package.json +18 -13
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlatESLintConfig } from 'eslint-define-config';
|
|
2
2
|
import * as eslintPluginSonarjs from 'eslint-plugin-sonarjs';
|
|
3
3
|
export { eslintPluginSonarjs as pluginSonar };
|
|
4
4
|
import * as eslintPluginI from 'eslint-plugin-i';
|
|
@@ -18,38 +18,38 @@ export { yamlEslintParser as parserYml };
|
|
|
18
18
|
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
19
19
|
export { jsoncEslintParser as parserJsonc };
|
|
20
20
|
|
|
21
|
-
declare const comments:
|
|
21
|
+
declare const comments: FlatESLintConfig[];
|
|
22
22
|
|
|
23
|
-
declare const ignores:
|
|
23
|
+
declare const ignores: FlatESLintConfig[];
|
|
24
24
|
|
|
25
|
-
declare const imports:
|
|
25
|
+
declare const imports: FlatESLintConfig[];
|
|
26
26
|
|
|
27
|
-
declare const javascript:
|
|
27
|
+
declare const javascript: FlatESLintConfig[];
|
|
28
28
|
|
|
29
|
-
declare const jsonc:
|
|
29
|
+
declare const jsonc: FlatESLintConfig[];
|
|
30
30
|
|
|
31
|
-
declare const markdown:
|
|
31
|
+
declare const markdown: FlatESLintConfig[];
|
|
32
32
|
|
|
33
|
-
declare const prettier:
|
|
33
|
+
declare const prettier: FlatESLintConfig[];
|
|
34
34
|
|
|
35
|
-
declare const security:
|
|
35
|
+
declare const security: FlatESLintConfig[];
|
|
36
36
|
|
|
37
|
-
declare const sonarjs:
|
|
37
|
+
declare const sonarjs: FlatESLintConfig[];
|
|
38
38
|
|
|
39
|
-
declare const sortPackageJson:
|
|
40
|
-
declare const sortTsconfig:
|
|
39
|
+
declare const sortPackageJson: FlatESLintConfig[];
|
|
40
|
+
declare const sortTsconfig: FlatESLintConfig[];
|
|
41
41
|
|
|
42
|
-
declare const typescript:
|
|
42
|
+
declare const typescript: FlatESLintConfig[];
|
|
43
43
|
|
|
44
|
-
declare const unicorn:
|
|
44
|
+
declare const unicorn: FlatESLintConfig[];
|
|
45
45
|
|
|
46
|
-
declare const unocss:
|
|
46
|
+
declare const unocss: FlatESLintConfig[];
|
|
47
47
|
|
|
48
48
|
declare function getVueVersion(): number;
|
|
49
|
-
declare const reactivityTransform:
|
|
50
|
-
declare const vue:
|
|
49
|
+
declare const reactivityTransform: FlatESLintConfig[];
|
|
50
|
+
declare const vue: FlatESLintConfig[];
|
|
51
51
|
|
|
52
|
-
declare const yml:
|
|
52
|
+
declare const yml: FlatESLintConfig[];
|
|
53
53
|
|
|
54
54
|
declare const isInEditor: boolean | "" | undefined;
|
|
55
55
|
declare const hasTypeScript: boolean;
|
|
@@ -92,16 +92,16 @@ declare const configPrettier: any;
|
|
|
92
92
|
|
|
93
93
|
declare const pluginSecurity: any;
|
|
94
94
|
|
|
95
|
-
declare const presetJavaScript:
|
|
96
|
-
declare const presetLangsExtensions:
|
|
97
|
-
declare const basic:
|
|
95
|
+
declare const presetJavaScript: FlatESLintConfig[];
|
|
96
|
+
declare const presetLangsExtensions: FlatESLintConfig[];
|
|
97
|
+
declare const basic: FlatESLintConfig[];
|
|
98
98
|
|
|
99
|
-
declare const all:
|
|
100
|
-
declare function frabbit(config?:
|
|
99
|
+
declare const all: FlatESLintConfig[];
|
|
100
|
+
declare function frabbit(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, prettier: enablePrettier, markdown: enableMarkdown, unocss: enableUnocss, }?: Partial<{
|
|
101
101
|
vue: boolean;
|
|
102
102
|
prettier: boolean;
|
|
103
103
|
markdown: boolean;
|
|
104
104
|
unocss: boolean;
|
|
105
|
-
}>):
|
|
105
|
+
}>): FlatESLintConfig[];
|
|
106
106
|
|
|
107
107
|
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_NUXT_LAYOUTS, GLOB_NUXT_PAGE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, frabbit, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginSecurity, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, security, sonarjs, sortPackageJson, sortTsconfig, typescript, unicorn, unocss, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlatESLintConfig } from 'eslint-define-config';
|
|
2
2
|
import * as eslintPluginSonarjs from 'eslint-plugin-sonarjs';
|
|
3
3
|
export { eslintPluginSonarjs as pluginSonar };
|
|
4
4
|
import * as eslintPluginI from 'eslint-plugin-i';
|
|
@@ -18,38 +18,38 @@ export { yamlEslintParser as parserYml };
|
|
|
18
18
|
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
19
19
|
export { jsoncEslintParser as parserJsonc };
|
|
20
20
|
|
|
21
|
-
declare const comments:
|
|
21
|
+
declare const comments: FlatESLintConfig[];
|
|
22
22
|
|
|
23
|
-
declare const ignores:
|
|
23
|
+
declare const ignores: FlatESLintConfig[];
|
|
24
24
|
|
|
25
|
-
declare const imports:
|
|
25
|
+
declare const imports: FlatESLintConfig[];
|
|
26
26
|
|
|
27
|
-
declare const javascript:
|
|
27
|
+
declare const javascript: FlatESLintConfig[];
|
|
28
28
|
|
|
29
|
-
declare const jsonc:
|
|
29
|
+
declare const jsonc: FlatESLintConfig[];
|
|
30
30
|
|
|
31
|
-
declare const markdown:
|
|
31
|
+
declare const markdown: FlatESLintConfig[];
|
|
32
32
|
|
|
33
|
-
declare const prettier:
|
|
33
|
+
declare const prettier: FlatESLintConfig[];
|
|
34
34
|
|
|
35
|
-
declare const security:
|
|
35
|
+
declare const security: FlatESLintConfig[];
|
|
36
36
|
|
|
37
|
-
declare const sonarjs:
|
|
37
|
+
declare const sonarjs: FlatESLintConfig[];
|
|
38
38
|
|
|
39
|
-
declare const sortPackageJson:
|
|
40
|
-
declare const sortTsconfig:
|
|
39
|
+
declare const sortPackageJson: FlatESLintConfig[];
|
|
40
|
+
declare const sortTsconfig: FlatESLintConfig[];
|
|
41
41
|
|
|
42
|
-
declare const typescript:
|
|
42
|
+
declare const typescript: FlatESLintConfig[];
|
|
43
43
|
|
|
44
|
-
declare const unicorn:
|
|
44
|
+
declare const unicorn: FlatESLintConfig[];
|
|
45
45
|
|
|
46
|
-
declare const unocss:
|
|
46
|
+
declare const unocss: FlatESLintConfig[];
|
|
47
47
|
|
|
48
48
|
declare function getVueVersion(): number;
|
|
49
|
-
declare const reactivityTransform:
|
|
50
|
-
declare const vue:
|
|
49
|
+
declare const reactivityTransform: FlatESLintConfig[];
|
|
50
|
+
declare const vue: FlatESLintConfig[];
|
|
51
51
|
|
|
52
|
-
declare const yml:
|
|
52
|
+
declare const yml: FlatESLintConfig[];
|
|
53
53
|
|
|
54
54
|
declare const isInEditor: boolean | "" | undefined;
|
|
55
55
|
declare const hasTypeScript: boolean;
|
|
@@ -92,16 +92,16 @@ declare const configPrettier: any;
|
|
|
92
92
|
|
|
93
93
|
declare const pluginSecurity: any;
|
|
94
94
|
|
|
95
|
-
declare const presetJavaScript:
|
|
96
|
-
declare const presetLangsExtensions:
|
|
97
|
-
declare const basic:
|
|
95
|
+
declare const presetJavaScript: FlatESLintConfig[];
|
|
96
|
+
declare const presetLangsExtensions: FlatESLintConfig[];
|
|
97
|
+
declare const basic: FlatESLintConfig[];
|
|
98
98
|
|
|
99
|
-
declare const all:
|
|
100
|
-
declare function frabbit(config?:
|
|
99
|
+
declare const all: FlatESLintConfig[];
|
|
100
|
+
declare function frabbit(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, prettier: enablePrettier, markdown: enableMarkdown, unocss: enableUnocss, }?: Partial<{
|
|
101
101
|
vue: boolean;
|
|
102
102
|
prettier: boolean;
|
|
103
103
|
markdown: boolean;
|
|
104
104
|
unocss: boolean;
|
|
105
|
-
}>):
|
|
105
|
+
}>): FlatESLintConfig[];
|
|
106
106
|
|
|
107
107
|
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_NUXT_LAYOUTS, GLOB_NUXT_PAGE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, frabbit, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginSecurity, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, security, sonarjs, sortPackageJson, sortTsconfig, typescript, unicorn, unocss, vue, yml };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frabbit/eslint-config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"packageManager": "npm@9.6.7",
|
|
5
5
|
"description": "ESLint config for @frabbit.",
|
|
6
6
|
"type": "module",
|
|
@@ -37,24 +37,24 @@
|
|
|
37
37
|
"eslint": "^8.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
41
|
-
"@typescript-eslint/parser": "^6.
|
|
42
|
-
"@unocss/eslint-plugin": "^0.
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^6.11.0",
|
|
41
|
+
"@typescript-eslint/parser": "^6.11.0",
|
|
42
|
+
"@unocss/eslint-plugin": "^0.57.6",
|
|
43
43
|
"eslint-config-prettier": "^9.0.0",
|
|
44
|
-
"eslint-define-config": "^
|
|
45
|
-
"eslint-plugin-antfu": "^0.
|
|
44
|
+
"eslint-define-config": "^2.0.0",
|
|
45
|
+
"eslint-plugin-antfu": "^1.0.10",
|
|
46
46
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
47
|
-
"eslint-plugin-i": "^2.
|
|
48
|
-
"eslint-plugin-jsonc": "^2.
|
|
47
|
+
"eslint-plugin-i": "^2.29.0",
|
|
48
|
+
"eslint-plugin-jsonc": "^2.10.0",
|
|
49
49
|
"eslint-plugin-markdown": "^3.0.1",
|
|
50
|
-
"eslint-plugin-prettier": "^5.0.
|
|
50
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
51
51
|
"eslint-plugin-security": "^1.7.1",
|
|
52
|
-
"eslint-plugin-sonarjs": "^0.
|
|
53
|
-
"eslint-plugin-unicorn": "^
|
|
52
|
+
"eslint-plugin-sonarjs": "^0.23.0",
|
|
53
|
+
"eslint-plugin-unicorn": "^49.0.0",
|
|
54
54
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
55
|
-
"eslint-plugin-vue": "^9.
|
|
55
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
56
56
|
"eslint-plugin-yml": "^1.9.0",
|
|
57
|
-
"globals": "^13.
|
|
57
|
+
"globals": "^13.23.0",
|
|
58
58
|
"jsonc-eslint-parser": "^2.3.0",
|
|
59
59
|
"local-pkg": "^0.5.0",
|
|
60
60
|
"prettier": "^3.0.3",
|
|
@@ -63,8 +63,13 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@frabbit/prettier-config": "^2.0.0",
|
|
66
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
67
|
+
"@semantic-release/git": "^10.0.1",
|
|
68
|
+
"@semantic-release/github": "^9.2.1",
|
|
69
|
+
"@semantic-release/npm": "^11.0.0",
|
|
66
70
|
"@types/node": "^20.8.0",
|
|
67
71
|
"bumpp": "^9.2.0",
|
|
72
|
+
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
68
73
|
"eslint": "^8.50.0",
|
|
69
74
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
70
75
|
"sucrase": "^3.34.0",
|