eslint-config-isaacscript 1.0.50 → 1.0.54

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.
@@ -19,7 +19,7 @@
19
19
  // ----------
20
20
 
21
21
  // Automatically run the formatter when a JavaScript file is saved
22
- "[javascript]": {
22
+ "[javascript]": {
23
23
  "editor.codeActionsOnSave": [
24
24
  "source.fixAll.eslint",
25
25
  ],
package/base.js CHANGED
@@ -34,6 +34,11 @@ module.exports = {
34
34
  // https://github.com/Zamiell/eslint-plugin-eqeqeq-fix
35
35
  "plugin:eqeqeq-fix/recommended",
36
36
 
37
+ // This prevents implicit iteration of Maps and Sets,
38
+ // which is helpful to prevent bugs when refactoring
39
+ // https://github.com/Zamiell/eslint-plugin-no-implicit-map-set-loops
40
+ "plugin:no-implicit-map-set-loops/recommended",
41
+
37
42
  // This provides a version of the "no-template-curly-in-string" that the "--fix" flag can fix
38
43
  // https://github.com/Zamiell/eslint-plugin-no-template-curly-in-string-fix
39
44
  "plugin:no-template-curly-in-string-fix/recommended",
@@ -42,12 +47,6 @@ module.exports = {
42
47
  // https://github.com/Zamiell/eslint-plugin-no-void-return-type
43
48
  "plugin:no-void-return-type/recommended",
44
49
 
45
- // We use Prettier to automatically format TypeScript files
46
- // We want to run Prettier as an ESLint rule so that we can detect non-formatted files in CI
47
- // https://github.com/prettier/eslint-plugin-prettier
48
- // https://silvenon.com/blog/integrating-and-enforcing-prettier-and-eslint
49
- "plugin:prettier/recommended",
50
-
51
50
  // Disable any ESLint rules that conflict with Prettier
52
51
  // (otherwise, we will have unfixable ESLint errors)
53
52
  // https://github.com/prettier/eslint-config-prettier
@@ -205,7 +204,8 @@ module.exports = {
205
204
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
206
205
  // Defined at:
207
206
  // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js
208
- // It is common to only export one thing with the intention of adding more exports later
207
+ // The case against default exports is layed out here:
208
+ // https://basarat.gitbook.io/typescript/main-1/defaultisbad
209
209
  "import/prefer-default-export": "off",
210
210
 
211
211
  // Documentation:
@@ -220,6 +220,7 @@ module.exports = {
220
220
  definedTags: [
221
221
  "category", // Used in TypeDoc
222
222
  "hidden", // Used in TypeDoc
223
+ "internal", // Used by TypeScript
223
224
  "noResolution", // Used in TypeScriptToLua as a compiler annotation
224
225
  "noSelf", // Used in TypeScriptToLua as a compiler annotation
225
226
  ],
package/mod.js CHANGED
@@ -5,16 +5,21 @@ module.exports = {
5
5
  // The mod config extends the base configuration:
6
6
  // https://github.com/IsaacScript/eslint-config-isaacscript/blob/main/base.js
7
7
  "./base",
8
-
9
- // This prevents implicit iteration of Maps and Sets,
10
- // since it does not work robustly with the TypeScriptToLua transpiler
11
- // https://github.com/Zamiell/eslint-plugin-no-implicit-map-set-loops
12
- "plugin:no-implicit-map-set-loops/recommended",
13
8
  ],
14
9
 
15
10
  // We modify the linting rules from the base for some specific things
16
11
  // (listed in alphabetical order)
17
12
  rules: {
13
+ // Documentation:
14
+ // https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-loop-func.md
15
+ // https://eslint.org/docs/rules/no-loop-func
16
+ // Defined at:
17
+ // https://github.com/iamturns/eslint-config-airbnb-typescript/blob/master/lib/shared.js
18
+ // This rule throws false positives with API functions
19
+ // It can be worked around by supplying lists of globals to ESLint, but this is ugly
20
+ // See: https://github.com/typescript-eslint/typescript-eslint/issues/2780
21
+ "@typescript-eslint/no-loop-func": "off",
22
+
18
23
  // Documentation:
19
24
  // https://github.com/eslint/eslint/blob/master/docs/rules/no-bitwise.md
20
25
  // Defined at:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "1.0.50",
3
+ "version": "1.0.54",
4
4
  "description": "An ESLint config for IsaacScript projects.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,8 +9,6 @@
9
9
  "license": "GPL-3.0",
10
10
  "author": "Zamiell",
11
11
  "devDependencies": {
12
- "eslint": "^7.32.0",
13
- "eslint-plugin-prettier": "^4.0.0",
14
- "prettier": "^2.4.1"
12
+ "prettier": "^2.5.1"
15
13
  }
16
14
  }