@gooddata/eslint-config 11.19.0-alpha.9 → 11.20.0-alpha.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/PACKAGES_V8.md +1 -2
- package/PACKAGES_V9.md +1 -1
- package/PACKAGES_V9_OXLINT.md +21 -0
- package/README.md +22 -0
- package/dist/base.js +792 -283
- package/dist/base.json +1049 -213
- package/dist/browser-esm.js +794 -285
- package/dist/browser-esm.json +1051 -215
- package/dist/browser.js +792 -283
- package/dist/browser.json +1049 -213
- package/dist/esm-react-cypress.js +715 -187
- package/dist/esm-react-cypress.json +1051 -204
- package/dist/esm-react-vitest-storybook.js +825 -297
- package/dist/esm-react-vitest-storybook.json +1076 -204
- package/dist/esm-react-vitest.js +825 -297
- package/dist/esm-react-vitest.json +1060 -204
- package/dist/esm-react.js +798 -289
- package/dist/esm-react.json +1051 -216
- package/dist/esm-vitest.js +821 -293
- package/dist/esm-vitest.json +1060 -203
- package/dist/esm.js +794 -285
- package/dist/esm.json +1051 -215
- package/dist/oxlint-base.d.ts +12 -0
- package/dist/oxlint-base.js +1368 -0
- package/dist/oxlint-browser-esm.d.ts +12 -0
- package/dist/oxlint-browser-esm.js +1379 -0
- package/dist/oxlint-browser.d.ts +12 -0
- package/dist/oxlint-browser.js +1373 -0
- package/dist/oxlint-esm-react-cypress.d.ts +12 -0
- package/dist/oxlint-esm-react-cypress.js +1425 -0
- package/dist/oxlint-esm-react-vitest-storybook.d.ts +12 -0
- package/dist/oxlint-esm-react-vitest-storybook.js +1484 -0
- package/dist/oxlint-esm-react-vitest.d.ts +12 -0
- package/dist/oxlint-esm-react-vitest.js +1450 -0
- package/dist/oxlint-esm-react.d.ts +12 -0
- package/dist/oxlint-esm-react.js +1425 -0
- package/dist/oxlint-esm-vitest.d.ts +12 -0
- package/dist/oxlint-esm-vitest.js +1399 -0
- package/dist/oxlint-esm.d.ts +12 -0
- package/dist/oxlint-esm.js +1374 -0
- package/dist/oxlint-react-cypress.d.ts +12 -0
- package/dist/oxlint-react-cypress.js +1425 -0
- package/dist/oxlint-react-vitest.d.ts +12 -0
- package/dist/oxlint-react-vitest.js +1450 -0
- package/dist/oxlint-react.d.ts +12 -0
- package/dist/oxlint-react.js +1425 -0
- package/dist/oxlint-vitest.d.ts +12 -0
- package/dist/oxlint-vitest.js +1393 -0
- package/dist/react-cypress.js +713 -185
- package/dist/react-cypress.json +1050 -203
- package/dist/react-vitest.js +823 -295
- package/dist/react-vitest.json +1059 -203
- package/dist/react.js +796 -287
- package/dist/react.json +1049 -214
- package/dist/vitest.js +819 -291
- package/dist/vitest.json +1059 -202
- package/package.json +40 -6
package/dist/react-vitest.js
CHANGED
|
@@ -7,11 +7,11 @@ import plugin0003 from "@typescript-eslint/parser";
|
|
|
7
7
|
import plugin0004 from "eslint-plugin-no-barrel-files";
|
|
8
8
|
import plugin0005 from "eslint-plugin-import-x";
|
|
9
9
|
import plugin0006 from "eslint-plugin-jsdoc";
|
|
10
|
-
import plugin0007 from "eslint-plugin-
|
|
11
|
-
import plugin0008 from "eslint-plugin-
|
|
12
|
-
import plugin0009 from "eslint-plugin-react";
|
|
13
|
-
import plugin0010 from "eslint-plugin
|
|
14
|
-
import plugin0011 from "
|
|
10
|
+
import plugin0007 from "eslint-plugin-sonarjs";
|
|
11
|
+
import plugin0008 from "eslint-plugin-react";
|
|
12
|
+
import plugin0009 from "eslint-plugin-react-hooks";
|
|
13
|
+
import plugin0010 from "@vitest/eslint-plugin";
|
|
14
|
+
import plugin0011 from "eslint-plugin-no-only-tests";
|
|
15
15
|
|
|
16
16
|
export default [
|
|
17
17
|
{
|
|
@@ -45,7 +45,6 @@ export default [
|
|
|
45
45
|
"no-empty-pattern": "error",
|
|
46
46
|
"no-empty-static-block": "error",
|
|
47
47
|
"no-ex-assign": "error",
|
|
48
|
-
"no-extra-boolean-cast": "error",
|
|
49
48
|
"no-fallthrough": "error",
|
|
50
49
|
"no-func-assign": "error",
|
|
51
50
|
"no-global-assign": "error",
|
|
@@ -67,7 +66,6 @@ export default [
|
|
|
67
66
|
"no-sparse-arrays": "error",
|
|
68
67
|
"no-this-before-super": "error",
|
|
69
68
|
"no-undef": "error",
|
|
70
|
-
"no-unexpected-multiline": "off",
|
|
71
69
|
"no-unreachable": "error",
|
|
72
70
|
"no-unsafe-finally": "error",
|
|
73
71
|
"no-unsafe-negation": "error",
|
|
@@ -77,38 +75,10 @@ export default [
|
|
|
77
75
|
"no-unused-vars": "error",
|
|
78
76
|
"no-useless-backreference": "error",
|
|
79
77
|
"no-useless-catch": "error",
|
|
80
|
-
"no-useless-escape": "off",
|
|
81
78
|
"no-with": "error",
|
|
82
79
|
"require-yield": "error",
|
|
83
80
|
"use-isnan": "error",
|
|
84
81
|
"valid-typeof": "error",
|
|
85
|
-
"no-console": [
|
|
86
|
-
2,
|
|
87
|
-
{
|
|
88
|
-
allow: [
|
|
89
|
-
"warn",
|
|
90
|
-
"error",
|
|
91
|
-
],
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
"no-restricted-exports": [
|
|
95
|
-
2,
|
|
96
|
-
{
|
|
97
|
-
restrictDefaultExports: {
|
|
98
|
-
direct: true,
|
|
99
|
-
named: true,
|
|
100
|
-
defaultFrom: true,
|
|
101
|
-
namedFrom: true,
|
|
102
|
-
namespaceFrom: true,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
"no-duplicate-imports": [
|
|
107
|
-
"error",
|
|
108
|
-
{
|
|
109
|
-
includeExports: true,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
82
|
"no-restricted-imports": [
|
|
113
83
|
"error",
|
|
114
84
|
{
|
|
@@ -629,17 +599,6 @@ export default [
|
|
|
629
599
|
],
|
|
630
600
|
},
|
|
631
601
|
],
|
|
632
|
-
"no-restricted-syntax": [
|
|
633
|
-
"error",
|
|
634
|
-
{
|
|
635
|
-
selector: "MemberExpression[object.name='React']",
|
|
636
|
-
message: "Do not use `React.*`. Use named imports instead.",
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
selector: "MemberExpression[object.name='ReactDOM']",
|
|
640
|
-
message: "Do not use `ReactDOM.*`. Use named imports instead.",
|
|
641
|
-
},
|
|
642
|
-
],
|
|
643
602
|
"sort-imports": [
|
|
644
603
|
"error",
|
|
645
604
|
{
|
|
@@ -648,13 +607,55 @@ export default [
|
|
|
648
607
|
ignoreMemberSort: false,
|
|
649
608
|
},
|
|
650
609
|
],
|
|
651
|
-
"no-
|
|
610
|
+
"no-useless-escape": "off",
|
|
652
611
|
"no-unneeded-ternary": [
|
|
653
612
|
"error",
|
|
654
613
|
{
|
|
655
614
|
defaultAssignment: false,
|
|
656
615
|
},
|
|
657
616
|
],
|
|
617
|
+
"no-extra-boolean-cast": "error",
|
|
618
|
+
"no-unexpected-multiline": "off",
|
|
619
|
+
"no-duplicate-imports": [
|
|
620
|
+
"error",
|
|
621
|
+
{
|
|
622
|
+
includeExports: true,
|
|
623
|
+
},
|
|
624
|
+
],
|
|
625
|
+
"prefer-const": "off",
|
|
626
|
+
"no-console": [
|
|
627
|
+
2,
|
|
628
|
+
{
|
|
629
|
+
allow: [
|
|
630
|
+
"warn",
|
|
631
|
+
"error",
|
|
632
|
+
],
|
|
633
|
+
},
|
|
634
|
+
],
|
|
635
|
+
"no-restricted-exports": [
|
|
636
|
+
2,
|
|
637
|
+
{
|
|
638
|
+
restrictDefaultExports: {
|
|
639
|
+
direct: true,
|
|
640
|
+
named: true,
|
|
641
|
+
defaultFrom: true,
|
|
642
|
+
namedFrom: true,
|
|
643
|
+
namespaceFrom: true,
|
|
644
|
+
},
|
|
645
|
+
},
|
|
646
|
+
],
|
|
647
|
+
"no-restricted-syntax": [
|
|
648
|
+
"error",
|
|
649
|
+
{
|
|
650
|
+
selector: "MemberExpression[object.name='React']",
|
|
651
|
+
message: "Do not use `React.*`. Use named imports instead.",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
selector: "MemberExpression[object.name='ReactDOM']",
|
|
655
|
+
message: "Do not use `ReactDOM.*`. Use named imports instead.",
|
|
656
|
+
},
|
|
657
|
+
],
|
|
658
|
+
"no-negated-condition": "error",
|
|
658
659
|
},
|
|
659
660
|
},
|
|
660
661
|
{
|
|
@@ -662,18 +663,6 @@ export default [
|
|
|
662
663
|
"**/*.ts",
|
|
663
664
|
"**/*.tsx",
|
|
664
665
|
],
|
|
665
|
-
ignores: [
|
|
666
|
-
"**/vitest.config.ts",
|
|
667
|
-
"**/vitest.*.config.ts",
|
|
668
|
-
"**/vitest.setup.ts",
|
|
669
|
-
"**/vitest.setup.tsx",
|
|
670
|
-
"**/*.test.ts",
|
|
671
|
-
"**/*.test.tsx",
|
|
672
|
-
"**/*.test.utils.ts",
|
|
673
|
-
"**/*.test.utils.tsx",
|
|
674
|
-
"**/*.test.helpers.ts",
|
|
675
|
-
"**/*.test.helpers.tsx",
|
|
676
|
-
],
|
|
677
666
|
rules: {
|
|
678
667
|
"no-restricted-imports": [
|
|
679
668
|
"error",
|
|
@@ -1205,144 +1194,666 @@ export default [
|
|
|
1205
1194
|
},
|
|
1206
1195
|
{
|
|
1207
1196
|
files: [
|
|
1208
|
-
"**/
|
|
1209
|
-
"**/
|
|
1197
|
+
"**/vitest.config.ts",
|
|
1198
|
+
"**/vitest.*.config.ts",
|
|
1199
|
+
"**/vitest.setup.ts",
|
|
1200
|
+
"**/vitest.setup.tsx",
|
|
1201
|
+
"**/*.test.ts",
|
|
1202
|
+
"**/*.test.tsx",
|
|
1203
|
+
"**/*.test.utils.ts",
|
|
1204
|
+
"**/*.test.utils.tsx",
|
|
1205
|
+
"**/*.test.helpers.ts",
|
|
1206
|
+
"**/*.test.helpers.tsx",
|
|
1210
1207
|
],
|
|
1211
1208
|
rules: {
|
|
1212
|
-
"no-restricted-
|
|
1213
|
-
},
|
|
1214
|
-
},
|
|
1215
|
-
{
|
|
1216
|
-
plugins: {
|
|
1217
|
-
headers: plugin0001,
|
|
1218
|
-
},
|
|
1219
|
-
rules: {
|
|
1220
|
-
"headers/header-format": [
|
|
1209
|
+
"no-restricted-imports": [
|
|
1221
1210
|
"error",
|
|
1222
1211
|
{
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1212
|
+
paths: [
|
|
1213
|
+
{
|
|
1214
|
+
name: "react",
|
|
1215
|
+
importNames: [
|
|
1216
|
+
"default",
|
|
1217
|
+
],
|
|
1218
|
+
message: "Default import from React is not allowed. Use named imports instead.",
|
|
1230
1219
|
},
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
languageOptions: {
|
|
1238
|
-
parser: plugin0003,
|
|
1239
|
-
sourceType: "module",
|
|
1240
|
-
},
|
|
1241
|
-
plugins: {
|
|
1242
|
-
"@typescript-eslint": plugin0002,
|
|
1243
|
-
},
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
files: [
|
|
1247
|
-
"**/*.ts",
|
|
1248
|
-
"**/*.tsx",
|
|
1249
|
-
"**/*.mts",
|
|
1250
|
-
"**/*.cts",
|
|
1251
|
-
],
|
|
1252
|
-
languageOptions: {
|
|
1253
|
-
parserOptions: {
|
|
1254
|
-
projectService: true,
|
|
1255
|
-
},
|
|
1256
|
-
},
|
|
1257
|
-
rules: {
|
|
1258
|
-
"constructor-super": "off",
|
|
1259
|
-
"getter-return": "off",
|
|
1260
|
-
"no-class-assign": "off",
|
|
1261
|
-
"no-const-assign": "off",
|
|
1262
|
-
"no-dupe-args": "off",
|
|
1263
|
-
"no-dupe-class-members": "off",
|
|
1264
|
-
"no-dupe-keys": "off",
|
|
1265
|
-
"no-func-assign": "off",
|
|
1266
|
-
"no-import-assign": "off",
|
|
1267
|
-
"no-new-native-nonconstructor": "off",
|
|
1268
|
-
"no-new-symbol": "off",
|
|
1269
|
-
"no-obj-calls": "off",
|
|
1270
|
-
"no-redeclare": "off",
|
|
1271
|
-
"no-setter-return": "off",
|
|
1272
|
-
"no-this-before-super": "off",
|
|
1273
|
-
"no-undef": "off",
|
|
1274
|
-
"no-unreachable": "off",
|
|
1275
|
-
"no-unsafe-negation": "off",
|
|
1276
|
-
"no-var": "error",
|
|
1277
|
-
"no-with": "off",
|
|
1278
|
-
"prefer-const": "error",
|
|
1279
|
-
"prefer-rest-params": "error",
|
|
1280
|
-
"prefer-spread": "error",
|
|
1281
|
-
"@typescript-eslint/ban-ts-comment": [
|
|
1282
|
-
"error",
|
|
1283
|
-
{
|
|
1284
|
-
"ts-expect-error": "allow-with-description",
|
|
1285
|
-
},
|
|
1286
|
-
],
|
|
1287
|
-
"no-array-constructor": "off",
|
|
1288
|
-
"@typescript-eslint/no-array-constructor": "error",
|
|
1289
|
-
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
1290
|
-
"@typescript-eslint/no-empty-object-type": "error",
|
|
1291
|
-
"@typescript-eslint/no-explicit-any": "error",
|
|
1292
|
-
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
1293
|
-
"@typescript-eslint/no-misused-new": "error",
|
|
1294
|
-
"@typescript-eslint/no-namespace": "error",
|
|
1295
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
1296
|
-
"@typescript-eslint/no-require-imports": "error",
|
|
1297
|
-
"@typescript-eslint/no-this-alias": "error",
|
|
1298
|
-
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
1299
|
-
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
1300
|
-
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
1301
|
-
"no-unused-expressions": "off",
|
|
1302
|
-
"@typescript-eslint/no-unused-expressions": "error",
|
|
1303
|
-
"no-unused-vars": "off",
|
|
1304
|
-
"@typescript-eslint/no-unused-vars": [
|
|
1305
|
-
2,
|
|
1306
|
-
{
|
|
1307
|
-
varsIgnorePattern: "^_.*$",
|
|
1308
|
-
argsIgnorePattern: "^_.*$",
|
|
1309
|
-
},
|
|
1310
|
-
],
|
|
1311
|
-
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
1312
|
-
"@typescript-eslint/prefer-as-const": "error",
|
|
1313
|
-
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
1314
|
-
"@typescript-eslint/triple-slash-reference": "error",
|
|
1315
|
-
"@typescript-eslint/explicit-function-return-type": 0,
|
|
1316
|
-
"@typescript-eslint/no-use-before-define": 0,
|
|
1317
|
-
"@typescript-eslint/no-empty-function": 0,
|
|
1318
|
-
"@typescript-eslint/naming-convention": [
|
|
1319
|
-
"error",
|
|
1320
|
-
{
|
|
1321
|
-
selector: "interface",
|
|
1322
|
-
format: [
|
|
1323
|
-
"PascalCase",
|
|
1324
|
-
],
|
|
1325
|
-
custom: {
|
|
1326
|
-
regex: "^I[A-Z]",
|
|
1327
|
-
match: true,
|
|
1328
|
-
},
|
|
1329
|
-
},
|
|
1330
|
-
],
|
|
1331
|
-
"@typescript-eslint/array-type": "off",
|
|
1332
|
-
"@typescript-eslint/no-restricted-types": [
|
|
1333
|
-
"error",
|
|
1334
|
-
{
|
|
1335
|
-
types: {
|
|
1336
|
-
String: {
|
|
1337
|
-
message: "Use 'string' instead",
|
|
1338
|
-
fixWith: "string",
|
|
1220
|
+
{
|
|
1221
|
+
name: "react-dom",
|
|
1222
|
+
importNames: [
|
|
1223
|
+
"default",
|
|
1224
|
+
],
|
|
1225
|
+
message: "Default import from React DOM is not allowed. Use named imports instead.",
|
|
1339
1226
|
},
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1227
|
+
{
|
|
1228
|
+
name: "@gooddata/sdk-ui-kit",
|
|
1229
|
+
importNames: [
|
|
1230
|
+
"Icon",
|
|
1231
|
+
],
|
|
1232
|
+
message: "The Icon export cannot be tree-shaken, use {IconName}Icon imports instead.",
|
|
1343
1233
|
},
|
|
1344
|
-
|
|
1345
|
-
|
|
1234
|
+
{
|
|
1235
|
+
name: "vitest",
|
|
1236
|
+
importNames: [
|
|
1237
|
+
"test",
|
|
1238
|
+
],
|
|
1239
|
+
message: "Use 'it' instead of 'test' for consistency.",
|
|
1240
|
+
},
|
|
1241
|
+
],
|
|
1242
|
+
patterns: [
|
|
1243
|
+
{
|
|
1244
|
+
group: [
|
|
1245
|
+
"lodash-es",
|
|
1246
|
+
],
|
|
1247
|
+
importNames: [
|
|
1248
|
+
"get",
|
|
1249
|
+
"getOr",
|
|
1250
|
+
],
|
|
1251
|
+
message: "Please use the ?. and ?? operators instead.",
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
group: [
|
|
1255
|
+
"lodash-es",
|
|
1256
|
+
],
|
|
1257
|
+
importNames: [
|
|
1258
|
+
"keys",
|
|
1259
|
+
],
|
|
1260
|
+
message: "Please use Object.keys() instead.",
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
group: [
|
|
1264
|
+
"lodash-es",
|
|
1265
|
+
],
|
|
1266
|
+
importNames: [
|
|
1267
|
+
"values",
|
|
1268
|
+
],
|
|
1269
|
+
message: "Please use Object.values() instead.",
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
group: [
|
|
1273
|
+
"lodash-es",
|
|
1274
|
+
],
|
|
1275
|
+
importNames: [
|
|
1276
|
+
"entries",
|
|
1277
|
+
"toPairs",
|
|
1278
|
+
],
|
|
1279
|
+
message: "Please use Object.entries() instead.",
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
group: [
|
|
1283
|
+
"lodash-es",
|
|
1284
|
+
],
|
|
1285
|
+
importNames: [
|
|
1286
|
+
"map",
|
|
1287
|
+
],
|
|
1288
|
+
message: "Please use Array.prototype.map() instead.",
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
group: [
|
|
1292
|
+
"lodash-es",
|
|
1293
|
+
],
|
|
1294
|
+
importNames: [
|
|
1295
|
+
"flatMap",
|
|
1296
|
+
],
|
|
1297
|
+
message: "Please use Array.prototype.flatMap() instead.",
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
group: [
|
|
1301
|
+
"lodash-es",
|
|
1302
|
+
],
|
|
1303
|
+
importNames: [
|
|
1304
|
+
"filter",
|
|
1305
|
+
],
|
|
1306
|
+
message: "Please use Array.prototype.filter() instead.",
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
group: [
|
|
1310
|
+
"lodash-es",
|
|
1311
|
+
],
|
|
1312
|
+
importNames: [
|
|
1313
|
+
"find",
|
|
1314
|
+
],
|
|
1315
|
+
message: "Please use Array.prototype.find() instead.",
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
group: [
|
|
1319
|
+
"lodash-es",
|
|
1320
|
+
],
|
|
1321
|
+
importNames: [
|
|
1322
|
+
"findIndex",
|
|
1323
|
+
],
|
|
1324
|
+
message: "Please use Array.prototype.findIndex() instead.",
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
group: [
|
|
1328
|
+
"lodash-es",
|
|
1329
|
+
],
|
|
1330
|
+
importNames: [
|
|
1331
|
+
"includes",
|
|
1332
|
+
],
|
|
1333
|
+
message: "Please use Array.prototype.includes() instead.",
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
group: [
|
|
1337
|
+
"lodash-es",
|
|
1338
|
+
],
|
|
1339
|
+
importNames: [
|
|
1340
|
+
"some",
|
|
1341
|
+
],
|
|
1342
|
+
message: "Please use Array.prototype.some() instead.",
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
group: [
|
|
1346
|
+
"lodash-es",
|
|
1347
|
+
],
|
|
1348
|
+
importNames: [
|
|
1349
|
+
"every",
|
|
1350
|
+
],
|
|
1351
|
+
message: "Please use Array.prototype.every() instead.",
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
group: [
|
|
1355
|
+
"lodash-es",
|
|
1356
|
+
],
|
|
1357
|
+
importNames: [
|
|
1358
|
+
"concat",
|
|
1359
|
+
],
|
|
1360
|
+
message: "Please use Array.prototype.concat() or spread [...arr1, ...arr2] instead.",
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
group: [
|
|
1364
|
+
"lodash-es",
|
|
1365
|
+
],
|
|
1366
|
+
importNames: [
|
|
1367
|
+
"reverse",
|
|
1368
|
+
],
|
|
1369
|
+
message: "Please use Array.prototype.reverse() instead.",
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
group: [
|
|
1373
|
+
"lodash-es",
|
|
1374
|
+
],
|
|
1375
|
+
importNames: [
|
|
1376
|
+
"slice",
|
|
1377
|
+
],
|
|
1378
|
+
message: "Please use Array.prototype.slice() instead.",
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
group: [
|
|
1382
|
+
"lodash-es",
|
|
1383
|
+
],
|
|
1384
|
+
importNames: [
|
|
1385
|
+
"indexOf",
|
|
1386
|
+
],
|
|
1387
|
+
message: "Please use Array.prototype.indexOf() instead.",
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
group: [
|
|
1391
|
+
"lodash-es",
|
|
1392
|
+
],
|
|
1393
|
+
importNames: [
|
|
1394
|
+
"lastIndexOf",
|
|
1395
|
+
],
|
|
1396
|
+
message: "Please use Array.prototype.lastIndexOf() instead.",
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
group: [
|
|
1400
|
+
"lodash-es",
|
|
1401
|
+
],
|
|
1402
|
+
importNames: [
|
|
1403
|
+
"fill",
|
|
1404
|
+
],
|
|
1405
|
+
message: "Please use Array.prototype.fill() instead.",
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
group: [
|
|
1409
|
+
"lodash-es",
|
|
1410
|
+
],
|
|
1411
|
+
importNames: [
|
|
1412
|
+
"startsWith",
|
|
1413
|
+
],
|
|
1414
|
+
message: "Please use String.prototype.startsWith() instead.",
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
group: [
|
|
1418
|
+
"lodash-es",
|
|
1419
|
+
],
|
|
1420
|
+
importNames: [
|
|
1421
|
+
"endsWith",
|
|
1422
|
+
],
|
|
1423
|
+
message: "Please use String.prototype.endsWith() instead.",
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
group: [
|
|
1427
|
+
"lodash-es",
|
|
1428
|
+
],
|
|
1429
|
+
importNames: [
|
|
1430
|
+
"repeat",
|
|
1431
|
+
],
|
|
1432
|
+
message: "Please use String.prototype.repeat() instead.",
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
group: [
|
|
1436
|
+
"lodash-es",
|
|
1437
|
+
],
|
|
1438
|
+
importNames: [
|
|
1439
|
+
"padStart",
|
|
1440
|
+
],
|
|
1441
|
+
message: "Please use String.prototype.padStart() instead.",
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
group: [
|
|
1445
|
+
"lodash-es",
|
|
1446
|
+
],
|
|
1447
|
+
importNames: [
|
|
1448
|
+
"padEnd",
|
|
1449
|
+
],
|
|
1450
|
+
message: "Please use String.prototype.padEnd() instead.",
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
group: [
|
|
1454
|
+
"lodash-es",
|
|
1455
|
+
],
|
|
1456
|
+
importNames: [
|
|
1457
|
+
"trim",
|
|
1458
|
+
],
|
|
1459
|
+
message: "Please use String.prototype.trim() instead.",
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
group: [
|
|
1463
|
+
"lodash-es",
|
|
1464
|
+
],
|
|
1465
|
+
importNames: [
|
|
1466
|
+
"trimStart",
|
|
1467
|
+
"trimLeft",
|
|
1468
|
+
],
|
|
1469
|
+
message: "Please use String.prototype.trimStart() instead.",
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
group: [
|
|
1473
|
+
"lodash-es",
|
|
1474
|
+
],
|
|
1475
|
+
importNames: [
|
|
1476
|
+
"trimEnd",
|
|
1477
|
+
"trimRight",
|
|
1478
|
+
],
|
|
1479
|
+
message: "Please use String.prototype.trimEnd() instead.",
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
group: [
|
|
1483
|
+
"lodash-es",
|
|
1484
|
+
],
|
|
1485
|
+
importNames: [
|
|
1486
|
+
"toUpper",
|
|
1487
|
+
],
|
|
1488
|
+
message: "Please use String.prototype.toUpperCase() instead.",
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
group: [
|
|
1492
|
+
"lodash-es",
|
|
1493
|
+
],
|
|
1494
|
+
importNames: [
|
|
1495
|
+
"toLower",
|
|
1496
|
+
],
|
|
1497
|
+
message: "Please use String.prototype.toLowerCase() instead.",
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
group: [
|
|
1501
|
+
"lodash-es",
|
|
1502
|
+
],
|
|
1503
|
+
importNames: [
|
|
1504
|
+
"isArray",
|
|
1505
|
+
],
|
|
1506
|
+
message: "Please use Array.isArray() instead.",
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
group: [
|
|
1510
|
+
"lodash-es",
|
|
1511
|
+
],
|
|
1512
|
+
importNames: [
|
|
1513
|
+
"isNaN",
|
|
1514
|
+
],
|
|
1515
|
+
message: "Please use Number.isNaN() instead.",
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
group: [
|
|
1519
|
+
"lodash-es",
|
|
1520
|
+
],
|
|
1521
|
+
importNames: [
|
|
1522
|
+
"isFinite",
|
|
1523
|
+
],
|
|
1524
|
+
message: "Please use Number.isFinite() instead.",
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
group: [
|
|
1528
|
+
"lodash-es",
|
|
1529
|
+
],
|
|
1530
|
+
importNames: [
|
|
1531
|
+
"isInteger",
|
|
1532
|
+
],
|
|
1533
|
+
message: "Please use Number.isInteger() instead.",
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
group: [
|
|
1537
|
+
"lodash-es",
|
|
1538
|
+
],
|
|
1539
|
+
importNames: [
|
|
1540
|
+
"isNull",
|
|
1541
|
+
],
|
|
1542
|
+
message: "Please use value === null instead.",
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
group: [
|
|
1546
|
+
"lodash-es",
|
|
1547
|
+
],
|
|
1548
|
+
importNames: [
|
|
1549
|
+
"isUndefined",
|
|
1550
|
+
],
|
|
1551
|
+
message: "Please use value === undefined instead.",
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
group: [
|
|
1555
|
+
"lodash-es",
|
|
1556
|
+
],
|
|
1557
|
+
importNames: [
|
|
1558
|
+
"defaultTo",
|
|
1559
|
+
],
|
|
1560
|
+
message: "Please use value ?? defaultValue instead.",
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
group: [
|
|
1564
|
+
"lodash-es",
|
|
1565
|
+
],
|
|
1566
|
+
importNames: [
|
|
1567
|
+
"assign",
|
|
1568
|
+
],
|
|
1569
|
+
message: "Please use Object.assign() or spread syntax {...obj} instead.",
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
group: [
|
|
1573
|
+
"lodash-es",
|
|
1574
|
+
],
|
|
1575
|
+
importNames: [
|
|
1576
|
+
"flatten",
|
|
1577
|
+
],
|
|
1578
|
+
message: "Please use Array.prototype.flat() instead.",
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
group: [
|
|
1582
|
+
"lodash-es",
|
|
1583
|
+
],
|
|
1584
|
+
importNames: [
|
|
1585
|
+
"flattenDeep",
|
|
1586
|
+
],
|
|
1587
|
+
message: "Please use Array.prototype.flat(Infinity) instead.",
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
group: [
|
|
1591
|
+
"lodash-es",
|
|
1592
|
+
],
|
|
1593
|
+
importNames: [
|
|
1594
|
+
"isNil",
|
|
1595
|
+
],
|
|
1596
|
+
message: "Please use value === null || value === undefined instead.",
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
group: [
|
|
1600
|
+
"lodash-es",
|
|
1601
|
+
],
|
|
1602
|
+
importNames: [
|
|
1603
|
+
"noop",
|
|
1604
|
+
],
|
|
1605
|
+
message: "Please use () => {} instead.",
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
group: [
|
|
1609
|
+
"lodash-es",
|
|
1610
|
+
],
|
|
1611
|
+
importNames: [
|
|
1612
|
+
"identity",
|
|
1613
|
+
],
|
|
1614
|
+
message: "Please use x => x instead.",
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
group: [
|
|
1618
|
+
"lodash-es",
|
|
1619
|
+
],
|
|
1620
|
+
importNames: [
|
|
1621
|
+
"first",
|
|
1622
|
+
"head",
|
|
1623
|
+
],
|
|
1624
|
+
message: "Please use Array.prototype.at(0) instead.",
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
group: [
|
|
1628
|
+
"lodash-es",
|
|
1629
|
+
],
|
|
1630
|
+
importNames: [
|
|
1631
|
+
"last",
|
|
1632
|
+
],
|
|
1633
|
+
message: "Please use Array.prototype.at(-1) instead.",
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
group: [
|
|
1637
|
+
"lodash-es",
|
|
1638
|
+
],
|
|
1639
|
+
importNames: [
|
|
1640
|
+
"forEach",
|
|
1641
|
+
],
|
|
1642
|
+
message: "Please use Array.prototype.forEach() instead.",
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
group: [
|
|
1646
|
+
"lodash-es",
|
|
1647
|
+
],
|
|
1648
|
+
importNames: [
|
|
1649
|
+
"fromPairs",
|
|
1650
|
+
],
|
|
1651
|
+
message: "Please use Object.fromEntries() instead.",
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
group: [
|
|
1655
|
+
"lodash-es",
|
|
1656
|
+
],
|
|
1657
|
+
importNames: [
|
|
1658
|
+
"join",
|
|
1659
|
+
],
|
|
1660
|
+
message: "Please use Array.prototype.join() instead.",
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
group: [
|
|
1664
|
+
"lodash-es",
|
|
1665
|
+
],
|
|
1666
|
+
importNames: [
|
|
1667
|
+
"isDate",
|
|
1668
|
+
],
|
|
1669
|
+
message: "Please use val instanceof Date instead.",
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
group: [
|
|
1673
|
+
"lodash-es",
|
|
1674
|
+
],
|
|
1675
|
+
importNames: [
|
|
1676
|
+
"isFunction",
|
|
1677
|
+
],
|
|
1678
|
+
message: "Please use typeof val === 'function' instead.",
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
group: [
|
|
1682
|
+
"lodash-es",
|
|
1683
|
+
],
|
|
1684
|
+
importNames: [
|
|
1685
|
+
"isNumber",
|
|
1686
|
+
],
|
|
1687
|
+
message: "Please use typeof val === 'number' instead.",
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
group: [
|
|
1691
|
+
"lodash-es",
|
|
1692
|
+
],
|
|
1693
|
+
importNames: [
|
|
1694
|
+
"isObject",
|
|
1695
|
+
],
|
|
1696
|
+
message: "Please use val !== null && typeof val === 'object' instead.",
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
group: [
|
|
1700
|
+
"lodash-es",
|
|
1701
|
+
],
|
|
1702
|
+
importNames: [
|
|
1703
|
+
"isString",
|
|
1704
|
+
],
|
|
1705
|
+
message: "Please use typeof val === 'string' instead.",
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
group: [
|
|
1709
|
+
"lodash-es",
|
|
1710
|
+
],
|
|
1711
|
+
importNames: [
|
|
1712
|
+
"toString",
|
|
1713
|
+
],
|
|
1714
|
+
message: "Please use String(val) instead.",
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
group: [
|
|
1718
|
+
"lodash-es",
|
|
1719
|
+
],
|
|
1720
|
+
importNames: [
|
|
1721
|
+
"flow",
|
|
1722
|
+
"flowRight",
|
|
1723
|
+
],
|
|
1724
|
+
message: "Please use refactoring your code instead.",
|
|
1725
|
+
},
|
|
1726
|
+
],
|
|
1727
|
+
},
|
|
1728
|
+
],
|
|
1729
|
+
},
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
files: [
|
|
1733
|
+
"**/eslint.config.ts",
|
|
1734
|
+
"**/eslint.config.js",
|
|
1735
|
+
],
|
|
1736
|
+
rules: {
|
|
1737
|
+
"no-restricted-exports": "off",
|
|
1738
|
+
},
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
plugins: {
|
|
1742
|
+
headers: plugin0001,
|
|
1743
|
+
},
|
|
1744
|
+
rules: {
|
|
1745
|
+
"headers/header-format": [
|
|
1746
|
+
"error",
|
|
1747
|
+
{
|
|
1748
|
+
source: "string",
|
|
1749
|
+
style: "line",
|
|
1750
|
+
content: "(C) (years) GoodData Corporation",
|
|
1751
|
+
patterns: {
|
|
1752
|
+
years: {
|
|
1753
|
+
pattern: "\\d{4}(-\\d{4})?",
|
|
1754
|
+
defaultValue: "2026",
|
|
1755
|
+
},
|
|
1756
|
+
},
|
|
1757
|
+
},
|
|
1758
|
+
],
|
|
1759
|
+
},
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
languageOptions: {
|
|
1763
|
+
parser: plugin0003,
|
|
1764
|
+
sourceType: "module",
|
|
1765
|
+
},
|
|
1766
|
+
plugins: {
|
|
1767
|
+
"@typescript-eslint": plugin0002,
|
|
1768
|
+
},
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
files: [
|
|
1772
|
+
"**/*.ts",
|
|
1773
|
+
"**/*.tsx",
|
|
1774
|
+
"**/*.mts",
|
|
1775
|
+
"**/*.cts",
|
|
1776
|
+
],
|
|
1777
|
+
languageOptions: {
|
|
1778
|
+
parserOptions: {
|
|
1779
|
+
projectService: true,
|
|
1780
|
+
},
|
|
1781
|
+
},
|
|
1782
|
+
rules: {
|
|
1783
|
+
"constructor-super": "off",
|
|
1784
|
+
"getter-return": "off",
|
|
1785
|
+
"no-class-assign": "off",
|
|
1786
|
+
"no-const-assign": "off",
|
|
1787
|
+
"no-dupe-args": "off",
|
|
1788
|
+
"no-dupe-class-members": "off",
|
|
1789
|
+
"no-dupe-keys": "off",
|
|
1790
|
+
"no-func-assign": "off",
|
|
1791
|
+
"no-import-assign": "off",
|
|
1792
|
+
"no-new-native-nonconstructor": "off",
|
|
1793
|
+
"no-new-symbol": "off",
|
|
1794
|
+
"no-obj-calls": "off",
|
|
1795
|
+
"no-redeclare": "off",
|
|
1796
|
+
"no-setter-return": "off",
|
|
1797
|
+
"no-this-before-super": "off",
|
|
1798
|
+
"no-undef": "off",
|
|
1799
|
+
"no-unreachable": "off",
|
|
1800
|
+
"no-unsafe-negation": "off",
|
|
1801
|
+
"no-var": "error",
|
|
1802
|
+
"no-with": "off",
|
|
1803
|
+
"prefer-const": "error",
|
|
1804
|
+
"prefer-rest-params": "error",
|
|
1805
|
+
"prefer-spread": "error",
|
|
1806
|
+
"no-array-constructor": "off",
|
|
1807
|
+
"no-unused-expressions": "off",
|
|
1808
|
+
"no-unused-vars": "off",
|
|
1809
|
+
"@typescript-eslint/no-array-constructor": "error",
|
|
1810
|
+
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
1811
|
+
"@typescript-eslint/no-empty-object-type": "error",
|
|
1812
|
+
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
1813
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
1814
|
+
"@typescript-eslint/no-namespace": "error",
|
|
1815
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
1816
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
1817
|
+
"@typescript-eslint/no-this-alias": "error",
|
|
1818
|
+
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
1819
|
+
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
1820
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
1821
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
1822
|
+
"@typescript-eslint/triple-slash-reference": "error",
|
|
1823
|
+
"@typescript-eslint/explicit-function-return-type": 0,
|
|
1824
|
+
"@typescript-eslint/no-use-before-define": 0,
|
|
1825
|
+
"@typescript-eslint/no-empty-function": 0,
|
|
1826
|
+
"@typescript-eslint/no-unused-vars": [
|
|
1827
|
+
2,
|
|
1828
|
+
{
|
|
1829
|
+
varsIgnorePattern: "^_.*$",
|
|
1830
|
+
argsIgnorePattern: "^_.*$",
|
|
1831
|
+
},
|
|
1832
|
+
],
|
|
1833
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
1834
|
+
"@typescript-eslint/array-type": "off",
|
|
1835
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
1836
|
+
"error",
|
|
1837
|
+
{
|
|
1838
|
+
"ts-expect-error": "allow-with-description",
|
|
1839
|
+
},
|
|
1840
|
+
],
|
|
1841
|
+
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
1842
|
+
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
1843
|
+
"@typescript-eslint/no-restricted-types": [
|
|
1844
|
+
"error",
|
|
1845
|
+
{
|
|
1846
|
+
types: {
|
|
1847
|
+
String: {
|
|
1848
|
+
message: "Use 'string' instead",
|
|
1849
|
+
fixWith: "string",
|
|
1850
|
+
},
|
|
1851
|
+
Number: {
|
|
1852
|
+
message: "Use 'number' instead",
|
|
1853
|
+
fixWith: "number",
|
|
1854
|
+
},
|
|
1855
|
+
Boolean: {
|
|
1856
|
+
message: "Use 'boolean' instead",
|
|
1346
1857
|
fixWith: "boolean",
|
|
1347
1858
|
},
|
|
1348
1859
|
Symbol: {
|
|
@@ -1352,18 +1863,11 @@ export default [
|
|
|
1352
1863
|
},
|
|
1353
1864
|
},
|
|
1354
1865
|
],
|
|
1355
|
-
"@typescript-eslint/consistent-type-exports": [
|
|
1356
|
-
"error",
|
|
1357
|
-
{
|
|
1358
|
-
fixMixedExportsWithInlineTypeSpecifier: false,
|
|
1359
|
-
},
|
|
1360
|
-
],
|
|
1361
1866
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
1362
1867
|
"@typescript-eslint/interface-name-prefix": "off",
|
|
1363
1868
|
"@typescript-eslint/member-ordering": "off",
|
|
1364
1869
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
1365
1870
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
1366
|
-
"@typescript-eslint/prefer-optional-chain": "error",
|
|
1367
1871
|
"no-restricted-syntax": [
|
|
1368
1872
|
"error",
|
|
1369
1873
|
{
|
|
@@ -1394,6 +1898,26 @@ export default [
|
|
|
1394
1898
|
fixStyle: "inline-type-imports",
|
|
1395
1899
|
},
|
|
1396
1900
|
],
|
|
1901
|
+
"@typescript-eslint/prefer-optional-chain": "error",
|
|
1902
|
+
"@typescript-eslint/consistent-type-exports": [
|
|
1903
|
+
"error",
|
|
1904
|
+
{
|
|
1905
|
+
fixMixedExportsWithInlineTypeSpecifier: false,
|
|
1906
|
+
},
|
|
1907
|
+
],
|
|
1908
|
+
"@typescript-eslint/naming-convention": [
|
|
1909
|
+
"error",
|
|
1910
|
+
{
|
|
1911
|
+
selector: "interface",
|
|
1912
|
+
format: [
|
|
1913
|
+
"PascalCase",
|
|
1914
|
+
],
|
|
1915
|
+
custom: {
|
|
1916
|
+
regex: "^I[A-Z]",
|
|
1917
|
+
match: true,
|
|
1918
|
+
},
|
|
1919
|
+
},
|
|
1920
|
+
],
|
|
1397
1921
|
},
|
|
1398
1922
|
},
|
|
1399
1923
|
{
|
|
@@ -1404,6 +1928,14 @@ export default [
|
|
|
1404
1928
|
"no-barrel-files/no-barrel-files": "error",
|
|
1405
1929
|
},
|
|
1406
1930
|
},
|
|
1931
|
+
{
|
|
1932
|
+
files: [
|
|
1933
|
+
"**/eslint.config.ts",
|
|
1934
|
+
],
|
|
1935
|
+
rules: {
|
|
1936
|
+
"no-barrel-files/no-barrel-files": "off",
|
|
1937
|
+
},
|
|
1938
|
+
},
|
|
1407
1939
|
{
|
|
1408
1940
|
plugins: {
|
|
1409
1941
|
"import-x": plugin0005,
|
|
@@ -1417,7 +1949,6 @@ export default [
|
|
|
1417
1949
|
],
|
|
1418
1950
|
},
|
|
1419
1951
|
rules: {
|
|
1420
|
-
"import-x/no-unresolved": "error",
|
|
1421
1952
|
"import-x/named": "error",
|
|
1422
1953
|
"import-x/namespace": "error",
|
|
1423
1954
|
"import-x/default": "error",
|
|
@@ -1425,6 +1956,7 @@ export default [
|
|
|
1425
1956
|
"import-x/no-named-as-default": "warn",
|
|
1426
1957
|
"import-x/no-named-as-default-member": "warn",
|
|
1427
1958
|
"import-x/no-duplicates": "warn",
|
|
1959
|
+
"import-x/no-unassigned-import": "error",
|
|
1428
1960
|
"import-x/order": [
|
|
1429
1961
|
"error",
|
|
1430
1962
|
{
|
|
@@ -1460,7 +1992,6 @@ export default [
|
|
|
1460
1992
|
"newlines-between": "always",
|
|
1461
1993
|
},
|
|
1462
1994
|
],
|
|
1463
|
-
"import-x/no-unassigned-import": "error",
|
|
1464
1995
|
},
|
|
1465
1996
|
},
|
|
1466
1997
|
{
|
|
@@ -1499,9 +2030,6 @@ export default [
|
|
|
1499
2030
|
},
|
|
1500
2031
|
},
|
|
1501
2032
|
},
|
|
1502
|
-
rules: {
|
|
1503
|
-
"import-x/named": "off",
|
|
1504
|
-
},
|
|
1505
2033
|
},
|
|
1506
2034
|
{
|
|
1507
2035
|
files: [
|
|
@@ -1521,34 +2049,14 @@ export default [
|
|
|
1521
2049
|
},
|
|
1522
2050
|
{
|
|
1523
2051
|
plugins: {
|
|
1524
|
-
|
|
1525
|
-
},
|
|
1526
|
-
rules: {
|
|
1527
|
-
"no-only-tests/no-only-tests": [
|
|
1528
|
-
"error",
|
|
1529
|
-
{
|
|
1530
|
-
block: [
|
|
1531
|
-
"fixture",
|
|
1532
|
-
],
|
|
1533
|
-
focus: [
|
|
1534
|
-
"only",
|
|
1535
|
-
],
|
|
1536
|
-
},
|
|
1537
|
-
],
|
|
1538
|
-
},
|
|
1539
|
-
},
|
|
1540
|
-
{
|
|
1541
|
-
plugins: {
|
|
1542
|
-
sonarjs: plugin0008,
|
|
2052
|
+
sonarjs: plugin0007,
|
|
1543
2053
|
},
|
|
1544
2054
|
rules: {
|
|
1545
2055
|
"sonarjs/function-name": "off",
|
|
1546
|
-
"sonarjs/class-name": "off",
|
|
1547
2056
|
"sonarjs/max-lines": "off",
|
|
1548
2057
|
"sonarjs/no-tab": "off",
|
|
1549
2058
|
"sonarjs/variable-name": "off",
|
|
1550
2059
|
"sonarjs/comment-regex": "off",
|
|
1551
|
-
"sonarjs/no-commented-code": "off",
|
|
1552
2060
|
"sonarjs/elseif-without-else": "off",
|
|
1553
2061
|
"sonarjs/no-fallthrough": "error",
|
|
1554
2062
|
"sonarjs/nested-control-flow": "off",
|
|
@@ -1561,15 +2069,11 @@ export default [
|
|
|
1561
2069
|
"sonarjs/expression-complexity": "off",
|
|
1562
2070
|
"sonarjs/no-redundant-parentheses": "off",
|
|
1563
2071
|
"sonarjs/no-labels": "error",
|
|
1564
|
-
"sonarjs/no-nested-assignment": "off",
|
|
1565
2072
|
"sonarjs/no-redundant-boolean": "error",
|
|
1566
2073
|
"sonarjs/prefer-single-boolean-return": "error",
|
|
1567
2074
|
"sonarjs/unused-import": "error",
|
|
1568
|
-
"sonarjs/fixme-tag": "off",
|
|
1569
|
-
"sonarjs/todo-tag": "warn",
|
|
1570
2075
|
"sonarjs/useless-string-operation": "off",
|
|
1571
2076
|
"sonarjs/no-unused-function-argument": "off",
|
|
1572
|
-
"sonarjs/no-duplicate-string": "off",
|
|
1573
2077
|
"sonarjs/no-case-label-in-switch": "error",
|
|
1574
2078
|
"sonarjs/no-parameter-reassignment": "error",
|
|
1575
2079
|
"sonarjs/prefer-while": "error",
|
|
@@ -1577,14 +2081,11 @@ export default [
|
|
|
1577
2081
|
"sonarjs/no-small-switch": "error",
|
|
1578
2082
|
"sonarjs/no-hardcoded-ip": "error",
|
|
1579
2083
|
"sonarjs/label-position": "error",
|
|
1580
|
-
"sonarjs/public-static-readonly": "off",
|
|
1581
2084
|
"sonarjs/file-header": "off",
|
|
1582
2085
|
"sonarjs/call-argument-line": "error",
|
|
1583
2086
|
"sonarjs/max-switch-cases": "error",
|
|
1584
|
-
"sonarjs/no-unused-vars": "off",
|
|
1585
2087
|
"sonarjs/prefer-immediate-return": "off",
|
|
1586
2088
|
"sonarjs/function-inside-loop": "error",
|
|
1587
|
-
"sonarjs/code-eval": "off",
|
|
1588
2089
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
1589
2090
|
"sonarjs/future-reserved-words": "error",
|
|
1590
2091
|
"sonarjs/array-constructor": "off",
|
|
@@ -1593,52 +2094,34 @@ export default [
|
|
|
1593
2094
|
"sonarjs/no-primitive-wrappers": "error",
|
|
1594
2095
|
"sonarjs/for-in": "off",
|
|
1595
2096
|
"sonarjs/cyclomatic-complexity": "off",
|
|
1596
|
-
"sonarjs/no-skipped-tests": "off",
|
|
1597
2097
|
"sonarjs/no-identical-expressions": "error",
|
|
1598
2098
|
"sonarjs/no-nested-switch": "off",
|
|
1599
|
-
"sonarjs/constructor-for-side-effects": "off",
|
|
1600
|
-
"sonarjs/no-dead-store": "off",
|
|
1601
2099
|
"sonarjs/no-identical-conditions": "error",
|
|
1602
2100
|
"sonarjs/no-duplicated-branches": "error",
|
|
1603
|
-
"sonarjs/deprecation": "off",
|
|
1604
|
-
"sonarjs/no-inverted-boolean-check": "off",
|
|
1605
2101
|
"sonarjs/misplaced-loop-counter": "error",
|
|
1606
|
-
"sonarjs/no-nested-functions": "off",
|
|
1607
|
-
"sonarjs/no-hardcoded-passwords": "off",
|
|
1608
2102
|
"sonarjs/sql-queries": "error",
|
|
1609
2103
|
"sonarjs/insecure-cookie": "error",
|
|
1610
2104
|
"sonarjs/no-useless-increment": "error",
|
|
1611
|
-
"sonarjs/no-globals-shadowing": "off",
|
|
1612
2105
|
"sonarjs/no-undefined-assignment": "off",
|
|
1613
|
-
"sonarjs/no-empty-test-file": "off",
|
|
1614
|
-
"sonarjs/no-ignored-return": "off",
|
|
1615
2106
|
"sonarjs/no-wildcard-import": "off",
|
|
1616
|
-
"sonarjs/arguments-order": "off",
|
|
1617
|
-
"sonarjs/pseudo-random": "off",
|
|
1618
2107
|
"sonarjs/for-loop-increment-sign": "error",
|
|
1619
2108
|
"sonarjs/cookies": "off",
|
|
1620
2109
|
"sonarjs/null-dereference": "error",
|
|
1621
|
-
"sonarjs/no-selector-parameter": "off",
|
|
1622
2110
|
"sonarjs/updated-loop-counter": "error",
|
|
1623
2111
|
"sonarjs/block-scoped-var": "error",
|
|
1624
2112
|
"sonarjs/no-built-in-override": "off",
|
|
1625
2113
|
"sonarjs/prefer-object-literal": "off",
|
|
1626
|
-
"sonarjs/no-ignored-exceptions": "off",
|
|
1627
2114
|
"sonarjs/no-gratuitous-expressions": "error",
|
|
1628
2115
|
"sonarjs/file-uploads": "error",
|
|
1629
2116
|
"sonarjs/file-permissions": "error",
|
|
1630
2117
|
"sonarjs/no-empty-character-class": "error",
|
|
1631
2118
|
"sonarjs/no-unenclosed-multiline-block": "error",
|
|
1632
2119
|
"sonarjs/index-of-compare-to-positive-number": "error",
|
|
1633
|
-
"sonarjs/assertions-in-tests": "off",
|
|
1634
|
-
"sonarjs/no-implicit-global": "off",
|
|
1635
2120
|
"sonarjs/no-useless-catch": "error",
|
|
1636
2121
|
"sonarjs/xml-parser-xxe": "error",
|
|
1637
2122
|
"sonarjs/non-existent-operator": "error",
|
|
1638
2123
|
"sonarjs/web-sql-database": "off",
|
|
1639
|
-
"sonarjs/post-message": "off",
|
|
1640
2124
|
"sonarjs/no-array-delete": "error",
|
|
1641
|
-
"sonarjs/no-alphabetical-sort": "off",
|
|
1642
2125
|
"sonarjs/no-incomplete-assertions": "error",
|
|
1643
2126
|
"sonarjs/no-global-this": "error",
|
|
1644
2127
|
"sonarjs/new-operator-misuse": "error",
|
|
@@ -1646,18 +2129,14 @@ export default [
|
|
|
1646
2129
|
"sonarjs/strings-comparison": "off",
|
|
1647
2130
|
"sonarjs/file-name-differ-from-class": "off",
|
|
1648
2131
|
"sonarjs/cookie-no-httponly": "error",
|
|
1649
|
-
"sonarjs/no-nested-conditional": "off",
|
|
1650
2132
|
"sonarjs/no-incorrect-string-concat": "off",
|
|
1651
|
-
"sonarjs/different-types-comparison": "off",
|
|
1652
2133
|
"sonarjs/inverted-assertion-arguments": "error",
|
|
1653
2134
|
"sonarjs/shorthand-property-grouping": "off",
|
|
1654
2135
|
"sonarjs/updated-const-var": "error",
|
|
1655
2136
|
"sonarjs/arguments-usage": "off",
|
|
1656
2137
|
"sonarjs/destructuring-assignment-syntax": "off",
|
|
1657
|
-
"sonarjs/no-invariant-returns": "off",
|
|
1658
2138
|
"sonarjs/arrow-function-convention": "off",
|
|
1659
2139
|
"sonarjs/class-prototype": "off",
|
|
1660
|
-
"sonarjs/generator-without-yield": "off",
|
|
1661
2140
|
"sonarjs/no-require-or-define": "off",
|
|
1662
2141
|
"sonarjs/no-associative-arrays": "error",
|
|
1663
2142
|
"sonarjs/comma-or-logical-or-case": "error",
|
|
@@ -1665,16 +2144,11 @@ export default [
|
|
|
1665
2144
|
"sonarjs/inconsistent-function-call": "error",
|
|
1666
2145
|
"sonarjs/no-use-of-empty-return-value": "error",
|
|
1667
2146
|
"sonarjs/enforce-trailing-comma": "off",
|
|
1668
|
-
"sonarjs/void-use": "off",
|
|
1669
2147
|
"sonarjs/operation-returning-nan": "off",
|
|
1670
2148
|
"sonarjs/values-not-convertible-to-numbers": "off",
|
|
1671
2149
|
"sonarjs/non-number-in-arithmetic-expression": "off",
|
|
1672
|
-
"sonarjs/cognitive-complexity": "warn",
|
|
1673
|
-
"sonarjs/argument-type": "off",
|
|
1674
2150
|
"sonarjs/in-operator-type-error": "error",
|
|
1675
|
-
"sonarjs/array-callback-without-return": "off",
|
|
1676
2151
|
"sonarjs/declarations-in-global-scope": "off",
|
|
1677
|
-
"sonarjs/function-return-type": "off",
|
|
1678
2152
|
"sonarjs/no-inconsistent-returns": "off",
|
|
1679
2153
|
"sonarjs/no-reference-error": "off",
|
|
1680
2154
|
"sonarjs/super-invocation": "error",
|
|
@@ -1684,50 +2158,36 @@ export default [
|
|
|
1684
2158
|
"sonarjs/no-collection-size-mischeck": "error",
|
|
1685
2159
|
"sonarjs/no-unthrown-error": "error",
|
|
1686
2160
|
"sonarjs/no-unused-collection": "error",
|
|
1687
|
-
"sonarjs/no-os-command-from-path": "off",
|
|
1688
|
-
"sonarjs/no-misleading-array-reverse": "off",
|
|
1689
2161
|
"sonarjs/no-for-in-iterable": "off",
|
|
1690
2162
|
"sonarjs/no-element-overwrite": "error",
|
|
1691
2163
|
"sonarjs/no-identical-functions": "error",
|
|
1692
2164
|
"sonarjs/no-empty-collection": "error",
|
|
1693
2165
|
"sonarjs/no-redundant-assignments": "error",
|
|
1694
2166
|
"sonarjs/prefer-type-guard": "error",
|
|
1695
|
-
"sonarjs/use-type-alias": "off",
|
|
1696
2167
|
"sonarjs/no-return-type-any": "off",
|
|
1697
2168
|
"sonarjs/no-implicit-dependencies": "off",
|
|
1698
|
-
"sonarjs/no-useless-intersection": "off",
|
|
1699
2169
|
"sonarjs/weak-ssl": "error",
|
|
1700
2170
|
"sonarjs/no-weak-keys": "error",
|
|
1701
2171
|
"sonarjs/csrf": "error",
|
|
1702
2172
|
"sonarjs/production-debug": "error",
|
|
1703
|
-
"sonarjs/prefer-default-last": "off",
|
|
1704
2173
|
"sonarjs/no-in-misuse": "error",
|
|
1705
2174
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
1706
2175
|
"sonarjs/max-union-size": "off",
|
|
1707
|
-
"sonarjs/no-undefined-argument": "off",
|
|
1708
2176
|
"sonarjs/no-nested-template-literals": "error",
|
|
1709
|
-
"sonarjs/prefer-promise-shorthand": "off",
|
|
1710
|
-
"sonarjs/os-command": "off",
|
|
1711
|
-
"sonarjs/no-redundant-optional": "off",
|
|
1712
2177
|
"sonarjs/regular-expr": "off",
|
|
1713
2178
|
"sonarjs/encryption": "off",
|
|
1714
2179
|
"sonarjs/hashing": "error",
|
|
1715
2180
|
"sonarjs/bool-param-default": "off",
|
|
1716
2181
|
"sonarjs/xpath": "off",
|
|
1717
2182
|
"sonarjs/sockets": "off",
|
|
1718
|
-
"sonarjs/no-try-promise": "off",
|
|
1719
2183
|
"sonarjs/process-argv": "off",
|
|
1720
2184
|
"sonarjs/standard-input": "off",
|
|
1721
2185
|
"sonarjs/unverified-certificate": "error",
|
|
1722
|
-
"sonarjs/no-unsafe-unzip": "off",
|
|
1723
2186
|
"sonarjs/cors": "error",
|
|
1724
|
-
"sonarjs/link-with-target-blank": "off",
|
|
1725
2187
|
"sonarjs/disabled-auto-escaping": "error",
|
|
1726
|
-
"sonarjs/table-header": "off",
|
|
1727
2188
|
"sonarjs/no-table-as-layout": "error",
|
|
1728
2189
|
"sonarjs/table-header-reference": "error",
|
|
1729
2190
|
"sonarjs/object-alt-content": "error",
|
|
1730
|
-
"sonarjs/no-clear-text-protocols": "off",
|
|
1731
2191
|
"sonarjs/publicly-writable-directories": "error",
|
|
1732
2192
|
"sonarjs/unverified-hostname": "error",
|
|
1733
2193
|
"sonarjs/encryption-secure-mode": "error",
|
|
@@ -1748,21 +2208,15 @@ export default [
|
|
|
1748
2208
|
"sonarjs/dns-prefetching": "off",
|
|
1749
2209
|
"sonarjs/confidential-information-logging": "error",
|
|
1750
2210
|
"sonarjs/no-ip-forward": "error",
|
|
1751
|
-
"sonarjs/empty-string-repetition": "off",
|
|
1752
|
-
"sonarjs/regex-complexity": "off",
|
|
1753
|
-
"sonarjs/anchor-precedence": "off",
|
|
1754
|
-
"sonarjs/slow-regex": "off",
|
|
1755
2211
|
"sonarjs/no-invalid-regexp": "error",
|
|
1756
2212
|
"sonarjs/unused-named-groups": "error",
|
|
1757
2213
|
"sonarjs/no-same-argument-assert": "error",
|
|
1758
2214
|
"sonarjs/unicode-aware-regex": "off",
|
|
1759
2215
|
"sonarjs/no-misleading-character-class": "error",
|
|
1760
|
-
"sonarjs/duplicates-in-character-class": "off",
|
|
1761
2216
|
"sonarjs/session-regeneration": "error",
|
|
1762
2217
|
"sonarjs/test-check-exception": "error",
|
|
1763
2218
|
"sonarjs/stable-tests": "error",
|
|
1764
2219
|
"sonarjs/no-empty-after-reluctant": "error",
|
|
1765
|
-
"sonarjs/single-character-alternation": "off",
|
|
1766
2220
|
"sonarjs/no-code-after-done": "error",
|
|
1767
2221
|
"sonarjs/disabled-timeout": "error",
|
|
1768
2222
|
"sonarjs/chai-determinate-assertion": "error",
|
|
@@ -1783,7 +2237,6 @@ export default [
|
|
|
1783
2237
|
"sonarjs/aws-sagemaker-unencrypted-notebook": "error",
|
|
1784
2238
|
"sonarjs/aws-restricted-ip-admin-access": "error",
|
|
1785
2239
|
"sonarjs/no-empty-alternatives": "error",
|
|
1786
|
-
"sonarjs/no-control-regex": "off",
|
|
1787
2240
|
"sonarjs/no-regex-spaces": "error",
|
|
1788
2241
|
"sonarjs/aws-sns-unencrypted-topics": "error",
|
|
1789
2242
|
"sonarjs/existing-groups": "error",
|
|
@@ -1793,24 +2246,81 @@ export default [
|
|
|
1793
2246
|
"sonarjs/aws-efs-unencrypted": "error",
|
|
1794
2247
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
1795
2248
|
"sonarjs/stateful-regex": "error",
|
|
1796
|
-
"sonarjs/concise-regex": "off",
|
|
1797
2249
|
"sonarjs/single-char-in-character-classes": "error",
|
|
1798
|
-
"sonarjs/no-hardcoded-secrets": "off",
|
|
1799
2250
|
"sonarjs/no-exclusive-tests": "error",
|
|
1800
2251
|
"sonarjs/hardcoded-secret-signatures": "error",
|
|
1801
2252
|
"sonarjs/jsx-no-leaked-render": "error",
|
|
1802
2253
|
"sonarjs/no-hook-setter-in-body": "error",
|
|
1803
|
-
"sonarjs/no-useless-react-setstate": "off",
|
|
1804
2254
|
"sonarjs/no-uniq-key": "error",
|
|
1805
|
-
"sonarjs/redundant-type-aliases": "off",
|
|
1806
|
-
"sonarjs/prefer-regexp-exec": "off",
|
|
1807
2255
|
"sonarjs/no-internal-api-use": "error",
|
|
1808
|
-
"sonarjs/prefer-read-only-props": "off",
|
|
1809
2256
|
"sonarjs/no-literal-call": "error",
|
|
1810
|
-
"sonarjs/reduce-initial-value": "off",
|
|
1811
|
-
"sonarjs/no-async-constructor": "off",
|
|
1812
2257
|
"sonarjs/review-blockchain-mnemonic": "error",
|
|
1813
2258
|
"sonarjs/dynamically-constructed-templates": "error",
|
|
2259
|
+
"sonarjs/no-duplicate-string": "off",
|
|
2260
|
+
"sonarjs/cognitive-complexity": "warn",
|
|
2261
|
+
"sonarjs/todo-tag": "warn",
|
|
2262
|
+
"sonarjs/no-hardcoded-passwords": "off",
|
|
2263
|
+
"sonarjs/no-alphabetical-sort": "off",
|
|
2264
|
+
"sonarjs/no-os-command-from-path": "off",
|
|
2265
|
+
"sonarjs/os-command": "off",
|
|
2266
|
+
"sonarjs/prefer-regexp-exec": "off",
|
|
2267
|
+
"sonarjs/no-clear-text-protocols": "off",
|
|
2268
|
+
"sonarjs/deprecation": "off",
|
|
2269
|
+
"sonarjs/no-nested-conditional": "off",
|
|
2270
|
+
"sonarjs/no-ignored-exceptions": "off",
|
|
2271
|
+
"sonarjs/slow-regex": "off",
|
|
2272
|
+
"sonarjs/prefer-read-only-props": "off",
|
|
2273
|
+
"sonarjs/no-skipped-tests": "off",
|
|
2274
|
+
"sonarjs/no-commented-code": "off",
|
|
2275
|
+
"sonarjs/no-ignored-return": "off",
|
|
2276
|
+
"sonarjs/array-callback-without-return": "off",
|
|
2277
|
+
"sonarjs/pseudo-random": "off",
|
|
2278
|
+
"sonarjs/no-nested-functions": "off",
|
|
2279
|
+
"sonarjs/no-async-constructor": "off",
|
|
2280
|
+
"sonarjs/assertions-in-tests": "off",
|
|
2281
|
+
"sonarjs/function-return-type": "off",
|
|
2282
|
+
"sonarjs/no-unused-vars": "off",
|
|
2283
|
+
"sonarjs/no-invariant-returns": "off",
|
|
2284
|
+
"sonarjs/different-types-comparison": "off",
|
|
2285
|
+
"sonarjs/no-selector-parameter": "off",
|
|
2286
|
+
"sonarjs/anchor-precedence": "off",
|
|
2287
|
+
"sonarjs/redundant-type-aliases": "off",
|
|
2288
|
+
"sonarjs/no-redundant-optional": "off",
|
|
2289
|
+
"sonarjs/reduce-initial-value": "off",
|
|
2290
|
+
"sonarjs/no-globals-shadowing": "off",
|
|
2291
|
+
"sonarjs/use-type-alias": "off",
|
|
2292
|
+
"sonarjs/void-use": "off",
|
|
2293
|
+
"sonarjs/no-undefined-argument": "off",
|
|
2294
|
+
"sonarjs/no-useless-react-setstate": "off",
|
|
2295
|
+
"sonarjs/no-inverted-boolean-check": "off",
|
|
2296
|
+
"sonarjs/concise-regex": "off",
|
|
2297
|
+
"sonarjs/no-dead-store": "off",
|
|
2298
|
+
"sonarjs/public-static-readonly": "off",
|
|
2299
|
+
"sonarjs/code-eval": "off",
|
|
2300
|
+
"sonarjs/no-misleading-array-reverse": "off",
|
|
2301
|
+
"sonarjs/fixme-tag": "off",
|
|
2302
|
+
"sonarjs/argument-type": "off",
|
|
2303
|
+
"sonarjs/constructor-for-side-effects": "off",
|
|
2304
|
+
"sonarjs/no-useless-intersection": "off",
|
|
2305
|
+
"sonarjs/no-empty-test-file": "off",
|
|
2306
|
+
"sonarjs/prefer-default-last": "off",
|
|
2307
|
+
"sonarjs/prefer-promise-shorthand": "off",
|
|
2308
|
+
"sonarjs/no-unsafe-unzip": "off",
|
|
2309
|
+
"sonarjs/no-nested-assignment": "off",
|
|
2310
|
+
"sonarjs/generator-without-yield": "off",
|
|
2311
|
+
"sonarjs/no-try-promise": "off",
|
|
2312
|
+
"sonarjs/single-character-alternation": "off",
|
|
2313
|
+
"sonarjs/class-name": "off",
|
|
2314
|
+
"sonarjs/no-hardcoded-secrets": "off",
|
|
2315
|
+
"sonarjs/regex-complexity": "off",
|
|
2316
|
+
"sonarjs/post-message": "off",
|
|
2317
|
+
"sonarjs/link-with-target-blank": "off",
|
|
2318
|
+
"sonarjs/duplicates-in-character-class": "off",
|
|
2319
|
+
"sonarjs/arguments-order": "off",
|
|
2320
|
+
"sonarjs/empty-string-repetition": "off",
|
|
2321
|
+
"sonarjs/table-header": "off",
|
|
2322
|
+
"sonarjs/no-implicit-global": "off",
|
|
2323
|
+
"sonarjs/no-control-regex": "off",
|
|
1814
2324
|
},
|
|
1815
2325
|
},
|
|
1816
2326
|
{
|
|
@@ -1901,7 +2411,7 @@ export default [
|
|
|
1901
2411
|
},
|
|
1902
2412
|
{
|
|
1903
2413
|
plugins: {
|
|
1904
|
-
react:
|
|
2414
|
+
react: plugin0008,
|
|
1905
2415
|
},
|
|
1906
2416
|
settings: {
|
|
1907
2417
|
react: {
|
|
@@ -1936,7 +2446,7 @@ export default [
|
|
|
1936
2446
|
},
|
|
1937
2447
|
{
|
|
1938
2448
|
plugins: {
|
|
1939
|
-
"react-hooks":
|
|
2449
|
+
"react-hooks": plugin0009,
|
|
1940
2450
|
},
|
|
1941
2451
|
rules: {
|
|
1942
2452
|
"react-hooks/rules-of-hooks": "error",
|
|
@@ -1945,15 +2455,10 @@ export default [
|
|
|
1945
2455
|
},
|
|
1946
2456
|
{
|
|
1947
2457
|
plugins: {
|
|
1948
|
-
vitest:
|
|
2458
|
+
vitest: plugin0010,
|
|
1949
2459
|
},
|
|
1950
2460
|
rules: {
|
|
1951
|
-
"vitest/expect-expect": "off",
|
|
1952
2461
|
"vitest/no-conditional-expect": "error",
|
|
1953
|
-
"vitest/no-disabled-tests": "warn",
|
|
1954
|
-
"vitest/no-focused-tests": "warn",
|
|
1955
|
-
"vitest/no-commented-out-tests": "warn",
|
|
1956
|
-
"vitest/no-identical-title": "warn",
|
|
1957
2462
|
"vitest/no-import-node-test": "error",
|
|
1958
2463
|
"vitest/no-interpolation-in-snapshots": "error",
|
|
1959
2464
|
"vitest/no-mocks-import": "error",
|
|
@@ -1962,9 +2467,32 @@ export default [
|
|
|
1962
2467
|
"vitest/prefer-called-exactly-once-with": "error",
|
|
1963
2468
|
"vitest/require-local-test-context-for-concurrent-snapshots": "error",
|
|
1964
2469
|
"vitest/valid-describe-callback": "error",
|
|
1965
|
-
"vitest/valid-expect": "warn",
|
|
1966
2470
|
"vitest/valid-expect-in-promise": "error",
|
|
2471
|
+
"vitest/expect-expect": "off",
|
|
2472
|
+
"vitest/no-commented-out-tests": "warn",
|
|
1967
2473
|
"vitest/valid-title": "error",
|
|
2474
|
+
"vitest/no-disabled-tests": "warn",
|
|
2475
|
+
"vitest/no-focused-tests": "warn",
|
|
2476
|
+
"vitest/no-identical-title": "warn",
|
|
2477
|
+
"vitest/valid-expect": "warn",
|
|
2478
|
+
},
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
plugins: {
|
|
2482
|
+
"no-only-tests": plugin0011,
|
|
2483
|
+
},
|
|
2484
|
+
rules: {
|
|
2485
|
+
"no-only-tests/no-only-tests": [
|
|
2486
|
+
"error",
|
|
2487
|
+
{
|
|
2488
|
+
block: [
|
|
2489
|
+
"fixture",
|
|
2490
|
+
],
|
|
2491
|
+
focus: [
|
|
2492
|
+
"only",
|
|
2493
|
+
],
|
|
2494
|
+
},
|
|
2495
|
+
],
|
|
1968
2496
|
},
|
|
1969
2497
|
},
|
|
1970
2498
|
];
|