@open-turo/eslint-config-typescript 23.1.12 → 23.1.13
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/index.js
CHANGED
|
@@ -139,6 +139,8 @@ const sonarJsConfig = () =>
|
|
|
139
139
|
// We may want to catch errors but not use the error object directly, just trigger error handling fallbacks within the catch block.
|
|
140
140
|
"sonarjs/no-ignored-exceptions": "off",
|
|
141
141
|
"sonarjs/no-nested-functions": ["warn", { threshold: 5 }],
|
|
142
|
+
/** This rule is noisy when we want to specify a prop as optional with `?:`, since it reports on types that have an explicit `undefined` in the union. We may not control those underlying types, as in valid parameters for 3rd party API, and so those are false positives. */
|
|
143
|
+
"sonarjs/no-redundant-optional": "off",
|
|
142
144
|
"sonarjs/no-small-switch": "off",
|
|
143
145
|
// Overlaps with @typescript-eslint/no-unused-vars
|
|
144
146
|
"sonarjs/no-unused-vars": "off",
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2422,7 +2422,7 @@ exports[`validate config the flat config is correct for index.js 1`] = `
|
|
|
2422
2422
|
2,
|
|
2423
2423
|
],
|
|
2424
2424
|
"sonarjs/no-redundant-optional": [
|
|
2425
|
-
|
|
2425
|
+
0,
|
|
2426
2426
|
],
|
|
2427
2427
|
"sonarjs/no-redundant-parentheses": [
|
|
2428
2428
|
0,
|
|
@@ -5709,7 +5709,7 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
|
5709
5709
|
2,
|
|
5710
5710
|
],
|
|
5711
5711
|
"sonarjs/no-redundant-optional": [
|
|
5712
|
-
|
|
5712
|
+
0,
|
|
5713
5713
|
],
|
|
5714
5714
|
"sonarjs/no-redundant-parentheses": [
|
|
5715
5715
|
0,
|
|
@@ -8996,7 +8996,7 @@ exports[`validate config the flat config with vitest is correct for index.js 1`]
|
|
|
8996
8996
|
2,
|
|
8997
8997
|
],
|
|
8998
8998
|
"sonarjs/no-redundant-optional": [
|
|
8999
|
-
|
|
8999
|
+
0,
|
|
9000
9000
|
],
|
|
9001
9001
|
"sonarjs/no-redundant-parentheses": [
|
|
9002
9002
|
0,
|
|
@@ -12370,7 +12370,7 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
12370
12370
|
2,
|
|
12371
12371
|
],
|
|
12372
12372
|
"sonarjs/no-redundant-optional": [
|
|
12373
|
-
|
|
12373
|
+
0,
|
|
12374
12374
|
],
|
|
12375
12375
|
"sonarjs/no-redundant-parentheses": [
|
|
12376
12376
|
0,
|
|
Binary file
|