eslint-config-isaacscript 3.5.2 → 3.6.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/base.js +17 -4
- package/package.json +1 -1
package/base.js
CHANGED
|
@@ -64,6 +64,9 @@ module.exports = {
|
|
|
64
64
|
],
|
|
65
65
|
|
|
66
66
|
plugins: [
|
|
67
|
+
/** Activate the "deprecation" plugin, which helps to find deprecated code. */
|
|
68
|
+
"deprecation",
|
|
69
|
+
|
|
67
70
|
/**
|
|
68
71
|
* Activate the "no-autofix" plugin, which allows the fixer for specific rules to be turned off:
|
|
69
72
|
* https://github.com/aladdin-add/eslint-plugin/tree/master/packages/no-autofix
|
|
@@ -101,6 +104,16 @@ module.exports = {
|
|
|
101
104
|
],
|
|
102
105
|
|
|
103
106
|
rules: {
|
|
107
|
+
/**
|
|
108
|
+
* Documentation:
|
|
109
|
+
* https://github.com/gund/eslint-plugin-deprecation
|
|
110
|
+
*
|
|
111
|
+
* Not defined in parent configs.
|
|
112
|
+
*
|
|
113
|
+
* Warn on deprecated code.
|
|
114
|
+
*/
|
|
115
|
+
"deprecation/deprecation": "warn",
|
|
116
|
+
|
|
104
117
|
/**
|
|
105
118
|
* Documentation:
|
|
106
119
|
* https://github.com/mysticatea/eslint-plugin-eslint-comments/blob/master/docs/rules/disable-enable-pair.md
|
|
@@ -175,7 +188,7 @@ module.exports = {
|
|
|
175
188
|
*
|
|
176
189
|
* It is a useful rule and it is turned off in the parent configs with no explanation.
|
|
177
190
|
*/
|
|
178
|
-
"import/no-deprecated": "
|
|
191
|
+
"import/no-deprecated": "warn",
|
|
179
192
|
|
|
180
193
|
/**
|
|
181
194
|
* Documentation:
|
|
@@ -209,7 +222,7 @@ module.exports = {
|
|
|
209
222
|
*
|
|
210
223
|
* We use this to automatically fix import statements to ESM.
|
|
211
224
|
*/
|
|
212
|
-
"n/file-extension-in-import": ["
|
|
225
|
+
"n/file-extension-in-import": ["warn", "always"],
|
|
213
226
|
|
|
214
227
|
/**
|
|
215
228
|
* Documentation:
|
|
@@ -304,7 +317,7 @@ module.exports = {
|
|
|
304
317
|
* We need to configure this rule to be Typescript-aware.
|
|
305
318
|
*/
|
|
306
319
|
"n/shebang": [
|
|
307
|
-
"
|
|
320
|
+
"warn",
|
|
308
321
|
{
|
|
309
322
|
convertPath: {
|
|
310
323
|
"src/**/*.ts": ["^src/(.+?)\\.ts$", "dist/$1.js"],
|
|
@@ -343,7 +356,7 @@ module.exports = {
|
|
|
343
356
|
// TEST
|
|
344
357
|
// https://github.com/typescript-eslint/typescript-eslint/issues/6446
|
|
345
358
|
"no-restricted-syntax": [
|
|
346
|
-
"
|
|
359
|
+
"warn",
|
|
347
360
|
{
|
|
348
361
|
selector:
|
|
349
362
|
'VariableDeclarator[id.typeAnnotation] > :matches(TSTypeAssertion, TSAsExpression) > TSTypeReference.typeAnnotation > Identifier[name="const"]',
|