eslint-config-isaacscript 1.0.48 → 1.0.52
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/.cspell.json +1 -0
- package/.vscode/extensions.json +1 -1
- package/base.js +11 -1
- package/mod.js +9 -5
- package/package.json +3 -8
package/.cspell.json
CHANGED
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,10 +34,19 @@ 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",
|
|
40
45
|
|
|
46
|
+
// This prevents void return types on unexported functions
|
|
47
|
+
// https://github.com/Zamiell/eslint-plugin-no-void-return-type
|
|
48
|
+
"plugin:no-void-return-type/recommended",
|
|
49
|
+
|
|
41
50
|
// We use Prettier to automatically format TypeScript files
|
|
42
51
|
// We want to run Prettier as an ESLint rule so that we can detect non-formatted files in CI
|
|
43
52
|
// https://github.com/prettier/eslint-plugin-prettier
|
|
@@ -201,7 +210,8 @@ module.exports = {
|
|
|
201
210
|
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
|
|
202
211
|
// Defined at:
|
|
203
212
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js
|
|
204
|
-
//
|
|
213
|
+
// The case against default exports is layed out here:
|
|
214
|
+
// https://basarat.gitbook.io/typescript/main-1/defaultisbad
|
|
205
215
|
"import/prefer-default-export": "off",
|
|
206
216
|
|
|
207
217
|
// Documentation:
|
package/mod.js
CHANGED
|
@@ -5,16 +5,20 @@ 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
|
+
"@typescript-eslint/no-loop-func": "off",
|
|
21
|
+
|
|
18
22
|
// Documentation:
|
|
19
23
|
// https://github.com/eslint/eslint/blob/master/docs/rules/no-bitwise.md
|
|
20
24
|
// 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.52",
|
|
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
|
}
|