eslint-config-isaacscript 1.0.64 → 1.0.67
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/LICENSE +9 -0
- package/base.js +3 -20
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 IsaacScript
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/base.js
CHANGED
|
@@ -25,9 +25,8 @@ module.exports = {
|
|
|
25
25
|
// This provides rules for max comment length that the "--fix" flag can fix
|
|
26
26
|
"plugin:comment-length-2/recommended",
|
|
27
27
|
|
|
28
|
-
// This provides
|
|
29
|
-
|
|
30
|
-
"plugin:eqeqeq-fix/recommended",
|
|
28
|
+
// This provides extra miscellaneous rules to keep code safe
|
|
29
|
+
"plugin:isaacscript/recommended",
|
|
31
30
|
|
|
32
31
|
// Find unused "eslint-disable" comments
|
|
33
32
|
// https://github.com/mysticatea/eslint-plugin-eslint-comments
|
|
@@ -37,27 +36,11 @@ module.exports = {
|
|
|
37
36
|
// https://github.com/gajus/eslint-plugin-jsdoc
|
|
38
37
|
"plugin:jsdoc/recommended",
|
|
39
38
|
|
|
40
|
-
// This prevents declaring arrays without a type
|
|
41
|
-
// https://github.com/Zamiell/eslint-plugin-no-array-any
|
|
42
|
-
"plugin:no-array-any/recommended",
|
|
43
|
-
|
|
44
39
|
// This prevents implicit iteration of Maps and Sets,
|
|
45
40
|
// which is helpful to prevent bugs when refactoring
|
|
46
41
|
// https://github.com/Zamiell/eslint-plugin-no-implicit-map-set-loops
|
|
47
42
|
"plugin:no-implicit-map-set-loops/recommended",
|
|
48
43
|
|
|
49
|
-
// This prevents declaring variables without a type
|
|
50
|
-
// https://github.com/Zamiell/eslint-plugin-no-let-any
|
|
51
|
-
"plugin:no-let-any/recommended",
|
|
52
|
-
|
|
53
|
-
// This provides a version of the "no-template-curly-in-string" that the "--fix" flag can fix
|
|
54
|
-
// https://github.com/Zamiell/eslint-plugin-no-template-curly-in-string-fix
|
|
55
|
-
"plugin:no-template-curly-in-string-fix/recommended",
|
|
56
|
-
|
|
57
|
-
// This prevents void return types on unexported functions
|
|
58
|
-
// https://github.com/Zamiell/eslint-plugin-no-void-return-type
|
|
59
|
-
"plugin:no-void-return-type/recommended",
|
|
60
|
-
|
|
61
44
|
// Disable any ESLint rules that conflict with Prettier
|
|
62
45
|
// (otherwise, we will have unfixable ESLint errors)
|
|
63
46
|
// https://github.com/prettier/eslint-config-prettier
|
|
@@ -81,7 +64,7 @@ module.exports = {
|
|
|
81
64
|
// Documentation:
|
|
82
65
|
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/array-type.md
|
|
83
66
|
// Not defined in the parent configs
|
|
84
|
-
// Prefer the "[]
|
|
67
|
+
// Prefer the "string[]" syntax over "Array<string>"
|
|
85
68
|
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
|
|
86
69
|
|
|
87
70
|
// Documentation:
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-isaacscript",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
4
4
|
"description": "An ESLint config for IsaacScript projects.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/IsaacScript/eslint-config-isaacscript.git"
|
|
8
8
|
},
|
|
9
|
-
"license": "
|
|
9
|
+
"license": "MIT",
|
|
10
10
|
"author": "Zamiell",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"prettier": "^2.6.2"
|