@vinicunca/eslint-config 2.6.0 → 2.6.2
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/dist/index.cjs +11 -2
- package/dist/index.d.cts +253 -189
- package/dist/index.d.ts +253 -189
- package/dist/index.js +11 -2
- package/package.json +18 -18
package/dist/index.cjs
CHANGED
|
@@ -1065,6 +1065,8 @@ async function stylistic(options = {}) {
|
|
|
1065
1065
|
},
|
|
1066
1066
|
rules: {
|
|
1067
1067
|
...config.rules,
|
|
1068
|
+
"antfu/consistent-list-newline": "error",
|
|
1069
|
+
"antfu/top-level-function": "error",
|
|
1068
1070
|
"curly": [ERROR, "all"],
|
|
1069
1071
|
"style/array-bracket-newline": [ERROR, CONSISTENT],
|
|
1070
1072
|
"style/array-bracket-spacing": [ERROR, NEVER],
|
|
@@ -2283,9 +2285,16 @@ async function typescript(options = {}) {
|
|
|
2283
2285
|
// Temporary turning it off due to performance
|
|
2284
2286
|
"ts/no-misused-promises": OFF,
|
|
2285
2287
|
"ts/no-throw-literal": ERROR,
|
|
2288
|
+
"ts/no-unnecessary-type-assertion": ERROR,
|
|
2289
|
+
"ts/no-unsafe-argument": ERROR,
|
|
2290
|
+
"ts/no-unsafe-assignment": ERROR,
|
|
2291
|
+
"ts/no-unsafe-call": ERROR,
|
|
2292
|
+
"ts/no-unsafe-member-access": ERROR,
|
|
2293
|
+
"ts/no-unsafe-return": ERROR,
|
|
2286
2294
|
"ts/restrict-plus-operands": ERROR,
|
|
2287
2295
|
"ts/restrict-template-expressions": ERROR,
|
|
2288
|
-
"ts/strict-boolean-expressions":
|
|
2296
|
+
"ts/strict-boolean-expressions": ERROR,
|
|
2297
|
+
"ts/unbound-method": ERROR
|
|
2289
2298
|
};
|
|
2290
2299
|
const [
|
|
2291
2300
|
pluginTs,
|
|
@@ -2355,7 +2364,7 @@ async function typescript(options = {}) {
|
|
|
2355
2364
|
"ts/explicit-member-accessibility": OFF,
|
|
2356
2365
|
"ts/explicit-module-boundary-types": OFF,
|
|
2357
2366
|
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
|
|
2358
|
-
"ts/method-signature-style": [
|
|
2367
|
+
"ts/method-signature-style": [ERROR, "property"],
|
|
2359
2368
|
"ts/naming-convention": OFF,
|
|
2360
2369
|
"ts/no-dupe-class-members": ERROR,
|
|
2361
2370
|
"ts/no-empty-function": OFF,
|