eslint-config-isaacscript 3.5.2 → 3.6.1

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.
Files changed (3) hide show
  1. package/base-eslint.js +1 -1
  2. package/base.js +21 -19
  3. package/package.json +1 -1
package/base-eslint.js CHANGED
@@ -17,7 +17,7 @@ module.exports = {
17
17
  },
18
18
  ],
19
19
 
20
- // asdf
20
+ // TODO
21
21
 
22
22
  /**
23
23
  * Documentation:
package/base.js CHANGED
@@ -50,20 +50,23 @@ module.exports = {
50
50
  */
51
51
  "plugin:n/recommended",
52
52
 
53
- /** Rule modifications are split out into different files for better organization. */
54
- "./base-eslint",
55
- "./base-typescript-eslint",
56
- "./base-jsdoc",
57
-
58
53
  /**
59
54
  * Disable any ESLint rules that conflict with Prettier:
60
55
  * https://github.com/prettier/eslint-config-prettier
61
56
  * (Otherwise, we will have unfixable ESLint errors.)
62
57
  */
63
58
  "prettier",
59
+
60
+ /** Rule modifications are split out into different files for better organization. */
61
+ "./base-eslint",
62
+ "./base-typescript-eslint",
63
+ "./base-jsdoc",
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
@@ -166,17 +179,6 @@ module.exports = {
166
179
  */
167
180
  "import/no-default-export": "warn",
168
181
 
169
- /**
170
- * Documentation:
171
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md
172
- *
173
- * Defined at:
174
- * https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js
175
- *
176
- * It is a useful rule and it is turned off in the parent configs with no explanation.
177
- */
178
- "import/no-deprecated": "error",
179
-
180
182
  /**
181
183
  * Documentation:
182
184
  * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unresolved.md
@@ -209,7 +211,7 @@ module.exports = {
209
211
  *
210
212
  * We use this to automatically fix import statements to ESM.
211
213
  */
212
- "n/file-extension-in-import": ["error", "always"],
214
+ "n/file-extension-in-import": ["warn", "always"],
213
215
 
214
216
  /**
215
217
  * Documentation:
@@ -304,7 +306,7 @@ module.exports = {
304
306
  * We need to configure this rule to be Typescript-aware.
305
307
  */
306
308
  "n/shebang": [
307
- "error",
309
+ "warn",
308
310
  {
309
311
  convertPath: {
310
312
  "src/**/*.ts": ["^src/(.+?)\\.ts$", "dist/$1.js"],
@@ -343,7 +345,7 @@ module.exports = {
343
345
  // TEST
344
346
  // https://github.com/typescript-eslint/typescript-eslint/issues/6446
345
347
  "no-restricted-syntax": [
346
- "error",
348
+ "warn",
347
349
  {
348
350
  selector:
349
351
  'VariableDeclarator[id.typeAnnotation] > :matches(TSTypeAssertion, TSAsExpression) > TSTypeReference.typeAnnotation > Identifier[name="const"]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "3.5.2",
3
+ "version": "3.6.1",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "keywords": [
6
6
  "eslint",