@open-turo/eslint-config-typescript 15.0.0-pr-374.337.1.1 → 15.0.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/index.js
CHANGED
|
@@ -103,8 +103,20 @@ module.exports = {
|
|
|
103
103
|
prefer: "type-imports",
|
|
104
104
|
},
|
|
105
105
|
],
|
|
106
|
+
/** We do not need to force people to wrap `void`-return implicit arrow returns with braces just for a lint rule. TypeScript alone covers functionality, by the return type being `void`. */
|
|
107
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
108
|
+
/** Included as part of `strict-type-checked`, but nothing we want to enforce. */
|
|
109
|
+
"@typescript-eslint/no-deprecated": "off",
|
|
106
110
|
/** Prefers `import type {}` syntax over `import { type }` if all imports are type-only */
|
|
107
111
|
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
112
|
+
/** A relatively stylistic rule, downgraded to "off" to limit breaking changes in the update that includes `strict-type-checked`. */
|
|
113
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
114
|
+
/** This rule can help us identify syntax that is more defensive than the types suggest. Unfortunately, it may be protecting us from runtime errors where the type definitions are incorrect. As such, it is turned "off", as even "warn" auto-fixes source code. */
|
|
115
|
+
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
116
|
+
/** There is readability benefit to passing in type arguments that match defaults. If defaults change, we may prefer the manual inspection of all the types changed, too. */
|
|
117
|
+
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
118
|
+
/** Errors on generic type parameters that are only used once, even though that helps with return type inference. */
|
|
119
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
108
120
|
"@typescript-eslint/no-unused-vars": [
|
|
109
121
|
"error",
|
|
110
122
|
{
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"author": "Turo engineering",
|
|
3
3
|
"description": "Turo eslint configuration for typescript",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
6
|
-
"@typescript-eslint/parser": "8.
|
|
5
|
+
"@typescript-eslint/eslint-plugin": "8.22.0",
|
|
6
|
+
"@typescript-eslint/parser": "8.22.0",
|
|
7
7
|
"eslint-config-prettier": "10.0.1",
|
|
8
8
|
"eslint-import-resolver-typescript": "3.7.0",
|
|
9
9
|
"eslint-plugin-import": "2.31.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"repository": "https://github.com/open-turo/eslint-config-typescript",
|
|
45
|
-
"version": "15.0.0
|
|
45
|
+
"version": "15.0.0"
|
|
46
46
|
}
|
|
@@ -704,10 +704,10 @@ exports[`validate config load config file in ESLint to validate all rules are co
|
|
|
704
704
|
"error",
|
|
705
705
|
],
|
|
706
706
|
"@typescript-eslint/no-confusing-void-expression": [
|
|
707
|
-
"
|
|
707
|
+
"off",
|
|
708
708
|
],
|
|
709
709
|
"@typescript-eslint/no-deprecated": [
|
|
710
|
-
"
|
|
710
|
+
"off",
|
|
711
711
|
],
|
|
712
712
|
"@typescript-eslint/no-duplicate-enum-values": [
|
|
713
713
|
"error",
|
|
@@ -788,16 +788,16 @@ exports[`validate config load config file in ESLint to validate all rules are co
|
|
|
788
788
|
"error",
|
|
789
789
|
],
|
|
790
790
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
|
791
|
-
"
|
|
791
|
+
"off",
|
|
792
792
|
],
|
|
793
793
|
"@typescript-eslint/no-unnecessary-condition": [
|
|
794
|
-
"
|
|
794
|
+
"off",
|
|
795
795
|
],
|
|
796
796
|
"@typescript-eslint/no-unnecessary-template-expression": [
|
|
797
797
|
"error",
|
|
798
798
|
],
|
|
799
799
|
"@typescript-eslint/no-unnecessary-type-arguments": [
|
|
800
|
-
"
|
|
800
|
+
"off",
|
|
801
801
|
],
|
|
802
802
|
"@typescript-eslint/no-unnecessary-type-assertion": [
|
|
803
803
|
"error",
|
|
@@ -806,7 +806,7 @@ exports[`validate config load config file in ESLint to validate all rules are co
|
|
|
806
806
|
"error",
|
|
807
807
|
],
|
|
808
808
|
"@typescript-eslint/no-unnecessary-type-parameters": [
|
|
809
|
-
"
|
|
809
|
+
"off",
|
|
810
810
|
],
|
|
811
811
|
"@typescript-eslint/no-unsafe-argument": [
|
|
812
812
|
"error",
|
|
Binary file
|