@open-turo/eslint-config-typescript 18.1.9 → 18.1.10
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.cjs
CHANGED
|
@@ -109,6 +109,10 @@ const sonarJsConfig = () =>
|
|
|
109
109
|
"sonarjs/deprecation": "off",
|
|
110
110
|
// This rule is not helpful in TypeScript files, and in JavaScript we often return different types from functions, so this is not a strictness level we want to enforce.
|
|
111
111
|
"sonarjs/function-return-type": "off",
|
|
112
|
+
// Performance issues with this rule, and TypeScript already catches the primary case (async constructors are a compile error)
|
|
113
|
+
"sonarjs/no-async-constructor": "off",
|
|
114
|
+
// Performance issues, inconsistent behavior, and primarily catches edge cases rather than common issues
|
|
115
|
+
"sonarjs/no-dead-store": "off",
|
|
112
116
|
// We may want to catch errors but not use the error object directly, just trigger error handling fallbacks within the catch block.
|
|
113
117
|
"sonarjs/no-ignored-exceptions": "off",
|
|
114
118
|
"sonarjs/no-nested-functions": ["warn", { threshold: 5 }],
|
|
Binary file
|
package/package.json
CHANGED
package/recommended.cjs
CHANGED
|
@@ -110,6 +110,10 @@ module.exports = {
|
|
|
110
110
|
"sonarjs/deprecation": "off",
|
|
111
111
|
// This rule is not helpful in TypeScript files, and in JavaScript we often return different types from functions, so this is not a strictness level we want to enforce.
|
|
112
112
|
"sonarjs/function-return-type": "off",
|
|
113
|
+
// Performance issues with this rule, and TypeScript already catches the primary case (async constructors are a compile error)
|
|
114
|
+
"sonarjs/no-async-constructor": "off",
|
|
115
|
+
// Performance issues, inconsistent behavior, and primarily catches edge cases rather than common issues
|
|
116
|
+
"sonarjs/no-dead-store": "off",
|
|
113
117
|
// We may want to catch errors but not use the error object directly, just trigger error handling fallbacks within the catch block.
|
|
114
118
|
"sonarjs/no-ignored-exceptions": "off",
|
|
115
119
|
"sonarjs/no-nested-functions": ["warn", { threshold: 5 }],
|
|
@@ -1944,7 +1944,7 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
|
1944
1944
|
2,
|
|
1945
1945
|
],
|
|
1946
1946
|
"sonarjs/no-async-constructor": [
|
|
1947
|
-
|
|
1947
|
+
0,
|
|
1948
1948
|
],
|
|
1949
1949
|
"sonarjs/no-built-in-override": [
|
|
1950
1950
|
0,
|
|
@@ -1971,7 +1971,7 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
|
1971
1971
|
2,
|
|
1972
1972
|
],
|
|
1973
1973
|
"sonarjs/no-dead-store": [
|
|
1974
|
-
|
|
1974
|
+
0,
|
|
1975
1975
|
],
|
|
1976
1976
|
"sonarjs/no-delete-var": [
|
|
1977
1977
|
2,
|
|
@@ -4994,7 +4994,7 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
|
4994
4994
|
2,
|
|
4995
4995
|
],
|
|
4996
4996
|
"sonarjs/no-async-constructor": [
|
|
4997
|
-
|
|
4997
|
+
0,
|
|
4998
4998
|
],
|
|
4999
4999
|
"sonarjs/no-built-in-override": [
|
|
5000
5000
|
0,
|
|
@@ -5021,7 +5021,7 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
|
5021
5021
|
2,
|
|
5022
5022
|
],
|
|
5023
5023
|
"sonarjs/no-dead-store": [
|
|
5024
|
-
|
|
5024
|
+
0,
|
|
5025
5025
|
],
|
|
5026
5026
|
"sonarjs/no-delete-var": [
|
|
5027
5027
|
2,
|
|
@@ -8044,7 +8044,7 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
|
8044
8044
|
2,
|
|
8045
8045
|
],
|
|
8046
8046
|
"sonarjs/no-async-constructor": [
|
|
8047
|
-
|
|
8047
|
+
0,
|
|
8048
8048
|
],
|
|
8049
8049
|
"sonarjs/no-built-in-override": [
|
|
8050
8050
|
0,
|
|
@@ -8071,7 +8071,7 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
|
8071
8071
|
2,
|
|
8072
8072
|
],
|
|
8073
8073
|
"sonarjs/no-dead-store": [
|
|
8074
|
-
|
|
8074
|
+
0,
|
|
8075
8075
|
],
|
|
8076
8076
|
"sonarjs/no-delete-var": [
|
|
8077
8077
|
2,
|
|
@@ -11094,7 +11094,7 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
11094
11094
|
2,
|
|
11095
11095
|
],
|
|
11096
11096
|
"sonarjs/no-async-constructor": [
|
|
11097
|
-
|
|
11097
|
+
0,
|
|
11098
11098
|
],
|
|
11099
11099
|
"sonarjs/no-built-in-override": [
|
|
11100
11100
|
0,
|
|
@@ -11121,7 +11121,7 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
11121
11121
|
2,
|
|
11122
11122
|
],
|
|
11123
11123
|
"sonarjs/no-dead-store": [
|
|
11124
|
-
|
|
11124
|
+
0,
|
|
11125
11125
|
],
|
|
11126
11126
|
"sonarjs/no-delete-var": [
|
|
11127
11127
|
2,
|
|
@@ -14164,7 +14164,7 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
14164
14164
|
"error",
|
|
14165
14165
|
],
|
|
14166
14166
|
"sonarjs/no-async-constructor": [
|
|
14167
|
-
"
|
|
14167
|
+
"off",
|
|
14168
14168
|
],
|
|
14169
14169
|
"sonarjs/no-built-in-override": [
|
|
14170
14170
|
"off",
|
|
@@ -14191,7 +14191,7 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
14191
14191
|
"error",
|
|
14192
14192
|
],
|
|
14193
14193
|
"sonarjs/no-dead-store": [
|
|
14194
|
-
"
|
|
14194
|
+
"off",
|
|
14195
14195
|
],
|
|
14196
14196
|
"sonarjs/no-delete-var": [
|
|
14197
14197
|
"error",
|
|
Binary file
|