eslint-config-isaacscript 1.0.49 → 1.0.53
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/.vscode/extensions.json +1 -1
- package/base.js +8 -1
- package/mod.js +10 -5
- package/package.json +3 -8
package/.vscode/extensions.json
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
// https://go.microsoft.com/fwlink/?LinkId=827846
|
|
4
4
|
{
|
|
5
5
|
"recommendations": [
|
|
6
|
-
"streetsidesoftware.code-spell-checker", // A spell-checker extension based on cspell
|
|
6
|
+
"streetsidesoftware.code-spell-checker", // A spell-checker extension based on cspell
|
|
7
7
|
]
|
|
8
8
|
}
|
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",
|
|
@@ -205,7 +210,8 @@ module.exports = {
|
|
|
205
210
|
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
|
|
206
211
|
// Defined at:
|
|
207
212
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js
|
|
208
|
-
//
|
|
213
|
+
// The case against default exports is layed out here:
|
|
214
|
+
// https://basarat.gitbook.io/typescript/main-1/defaultisbad
|
|
209
215
|
"import/prefer-default-export": "off",
|
|
210
216
|
|
|
211
217
|
// Documentation:
|
|
@@ -220,6 +226,7 @@ module.exports = {
|
|
|
220
226
|
definedTags: [
|
|
221
227
|
"category", // Used in TypeDoc
|
|
222
228
|
"hidden", // Used in TypeDoc
|
|
229
|
+
"internal", // Used by TypeScript
|
|
223
230
|
"noResolution", // Used in TypeScriptToLua as a compiler annotation
|
|
224
231
|
"noSelf", // Used in TypeScriptToLua as a compiler annotation
|
|
225
232
|
],
|
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.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"description": "An ESLint config for IsaacScript projects.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,14 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"license": "GPL-3.0",
|
|
10
10
|
"author": "Zamiell",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"eslint-config-airbnb-base": "^14.2.1",
|
|
13
|
-
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
14
|
-
"eslint-config-prettier": "^8.3.0"
|
|
15
|
-
},
|
|
16
11
|
"devDependencies": {
|
|
17
|
-
"eslint": "^
|
|
12
|
+
"eslint": "^8.3.0",
|
|
18
13
|
"eslint-plugin-prettier": "^4.0.0",
|
|
19
|
-
"prettier": "^2.
|
|
14
|
+
"prettier": "^2.5.0"
|
|
20
15
|
}
|
|
21
16
|
}
|