@schoero/configs 1.0.38 → 1.0.40
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/eslint/imports.js +3 -4
- package/eslint/typescript.js +5 -3
- package/package.json +1 -1
package/eslint/imports.js
CHANGED
|
@@ -47,10 +47,9 @@ export const imports = [
|
|
|
47
47
|
"unknown"
|
|
48
48
|
],
|
|
49
49
|
internalPattern: [
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"*[^n][^o][^d][^e]*:**/**/*"
|
|
50
|
+
"[!node:]*:*",
|
|
51
|
+
"[!node:]*:**/*",
|
|
52
|
+
"[!node:]*:**/**/*"
|
|
54
53
|
]
|
|
55
54
|
}
|
|
56
55
|
],
|
package/eslint/typescript.js
CHANGED
|
@@ -57,7 +57,9 @@ export const typescript = [
|
|
|
57
57
|
"eslint-plugin-typescript/dot-notation": ["warn", { allowKeywords: true }],
|
|
58
58
|
|
|
59
59
|
// interfaces
|
|
60
|
-
|
|
60
|
+
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
|
|
61
|
+
// off - doesn't work well with method overloads
|
|
62
|
+
"eslint-plugin-typescript/method-signature-style": "off",
|
|
61
63
|
|
|
62
64
|
// sort types
|
|
63
65
|
"eslint-plugin-perfectionist/sort-object-types": [
|
|
@@ -133,7 +135,7 @@ export const typescript = [
|
|
|
133
135
|
|
|
134
136
|
// functions
|
|
135
137
|
"eslint-plugin-typescript/unified-signatures": ["warn", { ignoreDifferentlyNamedParameters: true }],
|
|
136
|
-
"eslint-plugin-typescript/adjacent-overload-signatures": "
|
|
138
|
+
"eslint-plugin-typescript/adjacent-overload-signatures": "off", // conflicts with perfectionist/sort-interfaces
|
|
137
139
|
"eslint-plugin-typescript/prefer-function-type": "warn",
|
|
138
140
|
|
|
139
141
|
// promise
|
|
@@ -148,7 +150,7 @@ export const typescript = [
|
|
|
148
150
|
"eslint-plugin-typescript/no-unnecessary-type-arguments": "warn",
|
|
149
151
|
"eslint-plugin-typescript/prefer-as-const": "warn",
|
|
150
152
|
"eslint-plugin-typescript/prefer-reduce-type-parameter": "warn",
|
|
151
|
-
"eslint-plugin-typescript/sort-type-constituents": "off",
|
|
153
|
+
"eslint-plugin-typescript/sort-type-constituents": "off", // conflicts with perfectionist/sort-union-types
|
|
152
154
|
|
|
153
155
|
// Promise
|
|
154
156
|
"eslint-plugin-typescript/no-floating-promises": "warn",
|
package/package.json
CHANGED