@coderwyd/eslint-config 4.6.2 → 4.6.3
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/cli.js +1 -1
- package/dist/index.js +34 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ import prompts from "prompts";
|
|
|
10
10
|
import { execSync } from "node:child_process";
|
|
11
11
|
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "4.6.
|
|
13
|
+
var version = "4.6.3";
|
|
14
14
|
var devDependencies = {
|
|
15
15
|
"@antfu/ni": "^25.0.0",
|
|
16
16
|
"@eslint-react/eslint-plugin": "^1.52.9",
|
package/dist/index.js
CHANGED
|
@@ -1236,27 +1236,55 @@ async function typescript(options = {}) {
|
|
|
1236
1236
|
const tsconfigPath = options.tsconfigPath;
|
|
1237
1237
|
const isTypeAware = !!tsconfigPath;
|
|
1238
1238
|
const typeAwareRules = {
|
|
1239
|
-
"
|
|
1239
|
+
"no-array-constructor": "off",
|
|
1240
1240
|
"no-implied-eval": "off",
|
|
1241
|
+
"no-throw-literal": "off",
|
|
1242
|
+
"no-unused-expressions": "off",
|
|
1243
|
+
"no-unused-vars": "off",
|
|
1244
|
+
"prefer-promise-reject-errors": "off",
|
|
1241
1245
|
"require-await": "off",
|
|
1242
1246
|
"ts/await-thenable": "error",
|
|
1243
|
-
"ts/
|
|
1247
|
+
"ts/ban-ts-comment": "error",
|
|
1248
|
+
"ts/no-array-constructor": "error",
|
|
1249
|
+
"ts/no-array-delete": "error",
|
|
1250
|
+
"ts/no-base-to-string": "error",
|
|
1251
|
+
"ts/no-duplicate-enum-values": "error",
|
|
1252
|
+
"ts/no-duplicate-type-constituents": "error",
|
|
1253
|
+
"ts/no-empty-object-type": "error",
|
|
1254
|
+
"ts/no-explicit-any": "error",
|
|
1255
|
+
"ts/no-extra-non-null-assertion": "error",
|
|
1244
1256
|
"ts/no-floating-promises": "error",
|
|
1245
1257
|
"ts/no-for-in-array": "error",
|
|
1246
1258
|
"ts/no-implied-eval": "error",
|
|
1259
|
+
"ts/no-misused-new": "error",
|
|
1247
1260
|
"ts/no-misused-promises": "error",
|
|
1261
|
+
"ts/no-namespace": "error",
|
|
1262
|
+
"ts/no-non-null-asserted-optional-chain": "error",
|
|
1263
|
+
"ts/no-redundant-type-constituents": "error",
|
|
1264
|
+
"ts/no-require-imports": "error",
|
|
1265
|
+
"ts/no-this-alias": "error",
|
|
1248
1266
|
"ts/no-unnecessary-type-assertion": "error",
|
|
1267
|
+
"ts/no-unnecessary-type-constraint": "error",
|
|
1249
1268
|
"ts/no-unsafe-argument": "error",
|
|
1250
1269
|
"ts/no-unsafe-assignment": "error",
|
|
1251
1270
|
"ts/no-unsafe-call": "error",
|
|
1271
|
+
"ts/no-unsafe-declaration-merging": "error",
|
|
1272
|
+
"ts/no-unsafe-enum-comparison": "error",
|
|
1273
|
+
"ts/no-unsafe-function-type": "error",
|
|
1252
1274
|
"ts/no-unsafe-member-access": "error",
|
|
1253
1275
|
"ts/no-unsafe-return": "error",
|
|
1254
|
-
"ts/
|
|
1276
|
+
"ts/no-unsafe-unary-minus": "error",
|
|
1277
|
+
"ts/no-unused-expressions": "error",
|
|
1278
|
+
"ts/no-unused-vars": "error",
|
|
1279
|
+
"ts/no-wrapper-object-types": "error",
|
|
1280
|
+
"ts/only-throw-error": "error",
|
|
1281
|
+
"ts/prefer-as-const": "error",
|
|
1282
|
+
"ts/prefer-namespace-keyword": "error",
|
|
1283
|
+
"ts/prefer-promise-reject-errors": "error",
|
|
1284
|
+
"ts/require-await": "error",
|
|
1255
1285
|
"ts/restrict-plus-operands": "error",
|
|
1256
1286
|
"ts/restrict-template-expressions": "error",
|
|
1257
|
-
"ts/
|
|
1258
|
-
"ts/strict-boolean-expressions": "error",
|
|
1259
|
-
"ts/switch-exhaustiveness-check": "error",
|
|
1287
|
+
"ts/triple-slash-reference": "error",
|
|
1260
1288
|
"ts/unbound-method": "error"
|
|
1261
1289
|
};
|
|
1262
1290
|
const [pluginTs, parserTs] = await Promise.all([interopDefault(import("@typescript-eslint/eslint-plugin")), interopDefault(import("@typescript-eslint/parser"))]);
|
package/package.json
CHANGED