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