eslint-config-isaacscript 4.16.0 → 4.18.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/configs/base-import.js
CHANGED
|
@@ -63,7 +63,7 @@ const HELPFUL_WARNINGS = {
|
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Disabled because this is [already handled by the TypeScript
|
|
66
|
-
* compiler](https://
|
|
66
|
+
* compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
|
|
67
67
|
*/
|
|
68
68
|
"import/no-named-as-default-member": "off",
|
|
69
69
|
|
|
@@ -89,15 +89,24 @@ const MODULE_SYSTEMS = {
|
|
|
89
89
|
|
|
90
90
|
/** @type {import("eslint").Linter.RulesRecord} */
|
|
91
91
|
const STATIC_ANALYSIS = {
|
|
92
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Disabled because this is [already handled by the TypeScript
|
|
94
|
+
* compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
|
|
95
|
+
*/
|
|
96
|
+
"import/default": "off",
|
|
93
97
|
|
|
94
98
|
/**
|
|
95
99
|
* Disabled because this is [already handled by the TypeScript
|
|
96
|
-
* compiler](https://
|
|
100
|
+
* compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
|
|
97
101
|
*/
|
|
98
102
|
"import/named": "off",
|
|
99
103
|
|
|
100
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Disabled because this is [already handled by the TypeScript
|
|
106
|
+
* compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
|
|
107
|
+
*/
|
|
108
|
+
"import/namespace": "off",
|
|
109
|
+
|
|
101
110
|
"import/no-absolute-path": "error",
|
|
102
111
|
"import/no-cycle": "error",
|
|
103
112
|
"import/no-dynamic-require": "error",
|
|
@@ -104,7 +104,20 @@ const SUPPORTED_RULES = {
|
|
|
104
104
|
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
105
105
|
"@typescript-eslint/no-duplicate-type-constituents": "error",
|
|
106
106
|
"@typescript-eslint/no-dynamic-delete": "error",
|
|
107
|
-
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The `allowSingleExtends` option is enabled to allow for the common pattern of using using
|
|
110
|
+
* interfaces to provide an opaque type. (This can be useful with type-builders such as Zod, since
|
|
111
|
+
* `z.infer` uses `Expand`, which is sometimes not desired since it can lead to verbose/confusing
|
|
112
|
+
* mouseover tooltips and TypeScript errors.)
|
|
113
|
+
*/
|
|
114
|
+
"@typescript-eslint/no-empty-interface": [
|
|
115
|
+
"error",
|
|
116
|
+
{
|
|
117
|
+
allowSingleExtends: true,
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
|
|
108
121
|
"@typescript-eslint/no-explicit-any": "error",
|
|
109
122
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
110
123
|
"@typescript-eslint/no-extraneous-class": "error",
|