@frabbit/eslint-config 1.4.0 → 1.5.2
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 +7 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -90,7 +90,7 @@ __export(src_exports, {
|
|
|
90
90
|
prettier: () => prettier,
|
|
91
91
|
reactivityTransform: () => reactivityTransform,
|
|
92
92
|
security: () => security,
|
|
93
|
-
|
|
93
|
+
sonarjs: () => sonarjs,
|
|
94
94
|
sortPackageJson: () => sortPackageJson,
|
|
95
95
|
sortTsconfig: () => sortTsconfig,
|
|
96
96
|
typescript: () => typescript,
|
|
@@ -535,7 +535,7 @@ var prettier = [
|
|
|
535
535
|
var security = [
|
|
536
536
|
{
|
|
537
537
|
plugins: {
|
|
538
|
-
|
|
538
|
+
security: pluginSecurity
|
|
539
539
|
},
|
|
540
540
|
rules: {
|
|
541
541
|
"security/detect-bidi-characters": "warn",
|
|
@@ -556,11 +556,11 @@ var security = [
|
|
|
556
556
|
}
|
|
557
557
|
];
|
|
558
558
|
|
|
559
|
-
// src/configs/
|
|
560
|
-
var
|
|
559
|
+
// src/configs/sonarjs.ts
|
|
560
|
+
var sonarjs = [
|
|
561
561
|
{
|
|
562
562
|
plugins: {
|
|
563
|
-
|
|
563
|
+
sonarjs: pluginSonar
|
|
564
564
|
},
|
|
565
565
|
rules: {
|
|
566
566
|
"sonarjs/cognitive-complexity": "error",
|
|
@@ -1261,7 +1261,7 @@ var presetJavaScript = [
|
|
|
1261
1261
|
...imports,
|
|
1262
1262
|
...unicorn,
|
|
1263
1263
|
...security,
|
|
1264
|
-
...
|
|
1264
|
+
...sonarjs
|
|
1265
1265
|
];
|
|
1266
1266
|
var presetLangsExtensions = [
|
|
1267
1267
|
...markdown,
|
|
@@ -1363,7 +1363,7 @@ function frabbit(config = [], {
|
|
|
1363
1363
|
prettier,
|
|
1364
1364
|
reactivityTransform,
|
|
1365
1365
|
security,
|
|
1366
|
-
|
|
1366
|
+
sonarjs,
|
|
1367
1367
|
sortPackageJson,
|
|
1368
1368
|
sortTsconfig,
|
|
1369
1369
|
typescript,
|
package/dist/index.d.cts
CHANGED
|
@@ -36,7 +36,7 @@ declare const prettier: FlatESLintConfigItem[];
|
|
|
36
36
|
|
|
37
37
|
declare const security: FlatESLintConfigItem[];
|
|
38
38
|
|
|
39
|
-
declare const
|
|
39
|
+
declare const sonarjs: FlatESLintConfigItem[];
|
|
40
40
|
|
|
41
41
|
declare const sortPackageJson: FlatESLintConfigItem[];
|
|
42
42
|
declare const sortTsconfig: FlatESLintConfigItem[];
|
|
@@ -102,4 +102,4 @@ declare function frabbit(config?: FlatESLintConfigItem | FlatESLintConfigItem[],
|
|
|
102
102
|
unocss: boolean;
|
|
103
103
|
}>): FlatESLintConfigItem[];
|
|
104
104
|
|
|
105
|
-
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, all, basic, comments, configPrettier, frabbit, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, security,
|
|
105
|
+
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, all, basic, comments, configPrettier, frabbit, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, 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
|
@@ -36,7 +36,7 @@ declare const prettier: FlatESLintConfigItem[];
|
|
|
36
36
|
|
|
37
37
|
declare const security: FlatESLintConfigItem[];
|
|
38
38
|
|
|
39
|
-
declare const
|
|
39
|
+
declare const sonarjs: FlatESLintConfigItem[];
|
|
40
40
|
|
|
41
41
|
declare const sortPackageJson: FlatESLintConfigItem[];
|
|
42
42
|
declare const sortTsconfig: FlatESLintConfigItem[];
|
|
@@ -102,4 +102,4 @@ declare function frabbit(config?: FlatESLintConfigItem | FlatESLintConfigItem[],
|
|
|
102
102
|
unocss: boolean;
|
|
103
103
|
}>): FlatESLintConfigItem[];
|
|
104
104
|
|
|
105
|
-
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, all, basic, comments, configPrettier, frabbit, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, security,
|
|
105
|
+
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, all, basic, comments, configPrettier, frabbit, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, 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
|
@@ -432,7 +432,7 @@ var prettier = [
|
|
|
432
432
|
var security = [
|
|
433
433
|
{
|
|
434
434
|
plugins: {
|
|
435
|
-
|
|
435
|
+
security: pluginSecurity
|
|
436
436
|
},
|
|
437
437
|
rules: {
|
|
438
438
|
"security/detect-bidi-characters": "warn",
|
|
@@ -453,11 +453,11 @@ var security = [
|
|
|
453
453
|
}
|
|
454
454
|
];
|
|
455
455
|
|
|
456
|
-
// src/configs/
|
|
457
|
-
var
|
|
456
|
+
// src/configs/sonarjs.ts
|
|
457
|
+
var sonarjs = [
|
|
458
458
|
{
|
|
459
459
|
plugins: {
|
|
460
|
-
|
|
460
|
+
sonarjs: pluginSonar
|
|
461
461
|
},
|
|
462
462
|
rules: {
|
|
463
463
|
"sonarjs/cognitive-complexity": "error",
|
|
@@ -1158,7 +1158,7 @@ var presetJavaScript = [
|
|
|
1158
1158
|
...imports,
|
|
1159
1159
|
...unicorn,
|
|
1160
1160
|
...security,
|
|
1161
|
-
...
|
|
1161
|
+
...sonarjs
|
|
1162
1162
|
];
|
|
1163
1163
|
var presetLangsExtensions = [
|
|
1164
1164
|
...markdown,
|
|
@@ -1259,7 +1259,7 @@ export {
|
|
|
1259
1259
|
prettier,
|
|
1260
1260
|
reactivityTransform,
|
|
1261
1261
|
security,
|
|
1262
|
-
|
|
1262
|
+
sonarjs,
|
|
1263
1263
|
sortPackageJson,
|
|
1264
1264
|
sortTsconfig,
|
|
1265
1265
|
typescript,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frabbit/eslint-config",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"packageManager": "
|
|
3
|
+
"version": "1.5.2",
|
|
4
|
+
"packageManager": "npm@9.6.7",
|
|
5
5
|
"description": "ESLint config for @frabbit.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"eslint": "^8.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
41
|
-
"@typescript-eslint/parser": "^6.7.
|
|
42
|
-
"@unocss/eslint-plugin": "^0.56.
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
41
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
42
|
+
"@unocss/eslint-plugin": "^0.56.4",
|
|
43
43
|
"eslint-config-prettier": "^9.0.0",
|
|
44
44
|
"eslint-define-config": "^1.23.0",
|
|
45
45
|
"eslint-plugin-antfu": "^0.43.1",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"eslint-plugin-yml": "^1.9.0",
|
|
57
57
|
"globals": "^13.22.0",
|
|
58
58
|
"jsonc-eslint-parser": "^2.3.0",
|
|
59
|
-
"local-pkg": "^0.
|
|
59
|
+
"local-pkg": "^0.5.0",
|
|
60
60
|
"prettier": "^3.0.3",
|
|
61
61
|
"vue-eslint-parser": "^9.3.1",
|
|
62
62
|
"yaml-eslint-parser": "^1.2.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@frabbit/prettier-config": "^2.0.0",
|
|
66
|
-
"@types/node": "^20.
|
|
66
|
+
"@types/node": "^20.8.0",
|
|
67
67
|
"bumpp": "^9.2.0",
|
|
68
68
|
"eslint": "^8.50.0",
|
|
69
69
|
"eslint-plugin-sort-keys": "^2.3.5",
|