@frabbit/eslint-config 1.5.1 → 1.5.3
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 +14 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -5
- package/package.json +1 -1
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,
|
|
@@ -302,6 +302,14 @@ var javascript = [
|
|
|
302
302
|
rules: {
|
|
303
303
|
"array-callback-return": "error",
|
|
304
304
|
"block-scoped-var": "error",
|
|
305
|
+
camelcase: [
|
|
306
|
+
"error",
|
|
307
|
+
{
|
|
308
|
+
ignoreDestructuring: true,
|
|
309
|
+
ignoreImports: true,
|
|
310
|
+
properties: "always"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
305
313
|
"class-methods-use-this": "error",
|
|
306
314
|
"constructor-super": "error",
|
|
307
315
|
"dot-notation": "warn",
|
|
@@ -556,11 +564,11 @@ var security = [
|
|
|
556
564
|
}
|
|
557
565
|
];
|
|
558
566
|
|
|
559
|
-
// src/configs/
|
|
560
|
-
var
|
|
567
|
+
// src/configs/sonarjs.ts
|
|
568
|
+
var sonarjs = [
|
|
561
569
|
{
|
|
562
570
|
plugins: {
|
|
563
|
-
|
|
571
|
+
sonarjs: pluginSonar
|
|
564
572
|
},
|
|
565
573
|
rules: {
|
|
566
574
|
"sonarjs/cognitive-complexity": "error",
|
|
@@ -1261,7 +1269,7 @@ var presetJavaScript = [
|
|
|
1261
1269
|
...imports,
|
|
1262
1270
|
...unicorn,
|
|
1263
1271
|
...security,
|
|
1264
|
-
...
|
|
1272
|
+
...sonarjs
|
|
1265
1273
|
];
|
|
1266
1274
|
var presetLangsExtensions = [
|
|
1267
1275
|
...markdown,
|
|
@@ -1363,7 +1371,7 @@ function frabbit(config = [], {
|
|
|
1363
1371
|
prettier,
|
|
1364
1372
|
reactivityTransform,
|
|
1365
1373
|
security,
|
|
1366
|
-
|
|
1374
|
+
sonarjs,
|
|
1367
1375
|
sortPackageJson,
|
|
1368
1376
|
sortTsconfig,
|
|
1369
1377
|
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
|
@@ -199,6 +199,14 @@ var javascript = [
|
|
|
199
199
|
rules: {
|
|
200
200
|
"array-callback-return": "error",
|
|
201
201
|
"block-scoped-var": "error",
|
|
202
|
+
camelcase: [
|
|
203
|
+
"error",
|
|
204
|
+
{
|
|
205
|
+
ignoreDestructuring: true,
|
|
206
|
+
ignoreImports: true,
|
|
207
|
+
properties: "always"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
202
210
|
"class-methods-use-this": "error",
|
|
203
211
|
"constructor-super": "error",
|
|
204
212
|
"dot-notation": "warn",
|
|
@@ -453,11 +461,11 @@ var security = [
|
|
|
453
461
|
}
|
|
454
462
|
];
|
|
455
463
|
|
|
456
|
-
// src/configs/
|
|
457
|
-
var
|
|
464
|
+
// src/configs/sonarjs.ts
|
|
465
|
+
var sonarjs = [
|
|
458
466
|
{
|
|
459
467
|
plugins: {
|
|
460
|
-
|
|
468
|
+
sonarjs: pluginSonar
|
|
461
469
|
},
|
|
462
470
|
rules: {
|
|
463
471
|
"sonarjs/cognitive-complexity": "error",
|
|
@@ -1158,7 +1166,7 @@ var presetJavaScript = [
|
|
|
1158
1166
|
...imports,
|
|
1159
1167
|
...unicorn,
|
|
1160
1168
|
...security,
|
|
1161
|
-
...
|
|
1169
|
+
...sonarjs
|
|
1162
1170
|
];
|
|
1163
1171
|
var presetLangsExtensions = [
|
|
1164
1172
|
...markdown,
|
|
@@ -1259,7 +1267,7 @@ export {
|
|
|
1259
1267
|
prettier,
|
|
1260
1268
|
reactivityTransform,
|
|
1261
1269
|
security,
|
|
1262
|
-
|
|
1270
|
+
sonarjs,
|
|
1263
1271
|
sortPackageJson,
|
|
1264
1272
|
sortTsconfig,
|
|
1265
1273
|
typescript,
|