@chris.araneo/eslint-config 0.0.49 → 0.0.50
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 +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2491,6 +2491,7 @@ var createConfigs = (sources = [], isTests = false, tsconfigRootDir) => {
|
|
|
2491
2491
|
accessibility: "no-public"
|
|
2492
2492
|
}
|
|
2493
2493
|
],
|
|
2494
|
+
"@typescript-eslint/require-await": "off",
|
|
2494
2495
|
"@typescript-eslint/init-declarations": "off",
|
|
2495
2496
|
"@typescript-eslint/member-ordering": [
|
|
2496
2497
|
"error",
|
|
@@ -2529,10 +2530,19 @@ var createConfigs = (sources = [], isTests = false, tsconfigRootDir) => {
|
|
|
2529
2530
|
format: ["PascalCase"]
|
|
2530
2531
|
}
|
|
2531
2532
|
],
|
|
2533
|
+
"no-magic-numbers": "off",
|
|
2532
2534
|
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
2533
2535
|
"@typescript-eslint/no-explicit-any": errorWhenNotTests,
|
|
2534
2536
|
"@typescript-eslint/no-extraneous-class": "off",
|
|
2535
|
-
"@typescript-eslint/no-magic-numbers":
|
|
2537
|
+
"@typescript-eslint/no-magic-numbers": [
|
|
2538
|
+
errorWhenNotTests,
|
|
2539
|
+
{
|
|
2540
|
+
ignoreEnums: true,
|
|
2541
|
+
ignoreNumericLiteralTypes: true,
|
|
2542
|
+
ignoreReadonlyClassProperties: true,
|
|
2543
|
+
ignoreTypeIndexes: true
|
|
2544
|
+
}
|
|
2545
|
+
],
|
|
2536
2546
|
"@typescript-eslint/no-non-null-assertion": errorWhenNotTests,
|
|
2537
2547
|
"@typescript-eslint/no-unsafe-assignment": errorWhenNotTests,
|
|
2538
2548
|
"@typescript-eslint/no-unsafe-call": errorWhenNotTests,
|
|
@@ -2543,7 +2553,7 @@ var createConfigs = (sources = [], isTests = false, tsconfigRootDir) => {
|
|
|
2543
2553
|
"@typescript-eslint/prefer-destructuring": errorWhenNotTests,
|
|
2544
2554
|
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
2545
2555
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
2546
|
-
"@typescript-eslint/no-unsafe-type-assertion":
|
|
2556
|
+
"@typescript-eslint/no-unsafe-type-assertion": errorWhenNotTests,
|
|
2547
2557
|
"id-length": "off",
|
|
2548
2558
|
"max-lines-per-function": errorWhenNotTests,
|
|
2549
2559
|
"new-cap": "off",
|