@frabbit/eslint-config 1.5.11 → 1.5.14
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 +1 -2
- package/dist/index.d.cts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.js +1 -2
- package/package.json +27 -27
package/dist/index.cjs
CHANGED
|
@@ -228,7 +228,6 @@ var imports = [
|
|
|
228
228
|
},
|
|
229
229
|
rules: {
|
|
230
230
|
"antfu/import-dedupe": "error",
|
|
231
|
-
"antfu/prefer-inline-type-import": "error",
|
|
232
231
|
"import/first": "error",
|
|
233
232
|
"import/newline-after-import": ["error", { count: 1 }],
|
|
234
233
|
"import/no-default-export": "error",
|
|
@@ -854,7 +853,7 @@ var typescript = [
|
|
|
854
853
|
// handled by unused-imports/no-unused-imports
|
|
855
854
|
"@typescript-eslint/no-unused-vars": "off",
|
|
856
855
|
"@typescript-eslint/prefer-as-const": "warn",
|
|
857
|
-
"
|
|
856
|
+
"no-restricted-syntax": ["error", "TSEnumDeclaration[const=true]"]
|
|
858
857
|
}
|
|
859
858
|
},
|
|
860
859
|
{
|
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/dist/index.js
CHANGED
|
@@ -123,7 +123,6 @@ var imports = [
|
|
|
123
123
|
},
|
|
124
124
|
rules: {
|
|
125
125
|
"antfu/import-dedupe": "error",
|
|
126
|
-
"antfu/prefer-inline-type-import": "error",
|
|
127
126
|
"import/first": "error",
|
|
128
127
|
"import/newline-after-import": ["error", { count: 1 }],
|
|
129
128
|
"import/no-default-export": "error",
|
|
@@ -749,7 +748,7 @@ var typescript = [
|
|
|
749
748
|
// handled by unused-imports/no-unused-imports
|
|
750
749
|
"@typescript-eslint/no-unused-vars": "off",
|
|
751
750
|
"@typescript-eslint/prefer-as-const": "warn",
|
|
752
|
-
"
|
|
751
|
+
"no-restricted-syntax": ["error", "TSEnumDeclaration[const=true]"]
|
|
753
752
|
}
|
|
754
753
|
},
|
|
755
754
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frabbit/eslint-config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.14",
|
|
4
4
|
"packageManager": "npm@9.6.7",
|
|
5
5
|
"description": "ESLint config for @frabbit.",
|
|
6
6
|
"type": "module",
|
|
@@ -37,44 +37,44 @@
|
|
|
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.
|
|
43
|
-
"eslint-config-prettier": "^9.
|
|
44
|
-
"eslint-define-config": "^
|
|
45
|
-
"eslint-plugin-antfu": "^0.
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
41
|
+
"@typescript-eslint/parser": "^6.15.0",
|
|
42
|
+
"@unocss/eslint-plugin": "^0.58.0",
|
|
43
|
+
"eslint-config-prettier": "^9.1.0",
|
|
44
|
+
"eslint-define-config": "^2.0.0",
|
|
45
|
+
"eslint-plugin-antfu": "^2.0.0",
|
|
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.1",
|
|
48
|
+
"eslint-plugin-jsonc": "^2.11.2",
|
|
49
49
|
"eslint-plugin-markdown": "^3.0.1",
|
|
50
|
-
"eslint-plugin-prettier": "^5.
|
|
51
|
-
"eslint-plugin-security": "^1.
|
|
52
|
-
"eslint-plugin-sonarjs": "^0.
|
|
53
|
-
"eslint-plugin-unicorn": "^
|
|
50
|
+
"eslint-plugin-prettier": "^5.1.1",
|
|
51
|
+
"eslint-plugin-security": "^2.1.0",
|
|
52
|
+
"eslint-plugin-sonarjs": "^0.23.0",
|
|
53
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
54
54
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
55
|
-
"eslint-plugin-vue": "^9.
|
|
56
|
-
"eslint-plugin-yml": "^1.
|
|
57
|
-
"globals": "^13.
|
|
58
|
-
"jsonc-eslint-parser": "^2.
|
|
55
|
+
"eslint-plugin-vue": "^9.19.2",
|
|
56
|
+
"eslint-plugin-yml": "^1.11.0",
|
|
57
|
+
"globals": "^13.24.0",
|
|
58
|
+
"jsonc-eslint-parser": "^2.4.0",
|
|
59
59
|
"local-pkg": "^0.5.0",
|
|
60
|
-
"prettier": "^3.
|
|
61
|
-
"vue-eslint-parser": "^9.3.
|
|
60
|
+
"prettier": "^3.1.1",
|
|
61
|
+
"vue-eslint-parser": "^9.3.2",
|
|
62
62
|
"yaml-eslint-parser": "^1.2.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@frabbit/prettier-config": "^2.0.0",
|
|
66
66
|
"@semantic-release/changelog": "^6.0.3",
|
|
67
67
|
"@semantic-release/git": "^10.0.1",
|
|
68
|
-
"@semantic-release/github": "^9.2.
|
|
69
|
-
"@semantic-release/npm": "^11.0.
|
|
70
|
-
"@types/node": "^20.
|
|
71
|
-
"bumpp": "^9.2.
|
|
68
|
+
"@semantic-release/github": "^9.2.5",
|
|
69
|
+
"@semantic-release/npm": "^11.0.2",
|
|
70
|
+
"@types/node": "^20.10.5",
|
|
71
|
+
"bumpp": "^9.2.1",
|
|
72
72
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
73
|
-
"eslint": "^8.
|
|
73
|
+
"eslint": "^8.56.0",
|
|
74
74
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
75
|
-
"sucrase": "^3.
|
|
76
|
-
"tsup": "^
|
|
77
|
-
"typescript": "^5.
|
|
75
|
+
"sucrase": "^3.35.0",
|
|
76
|
+
"tsup": "^8.0.1",
|
|
77
|
+
"typescript": "^5.3.3"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=16.14.0"
|