eslint-config-isaacscript 1.0.57 → 1.0.60

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 (2) hide show
  1. package/base.js +38 -10
  2. package/package.json +2 -2
package/base.js CHANGED
@@ -22,6 +22,10 @@ module.exports = {
22
22
  "plugin:@typescript-eslint/recommended",
23
23
  "plugin:@typescript-eslint/recommended-requiring-type-checking",
24
24
 
25
+ // This provides a version of the "eqeqeq" rule that the "--fix" flag can fix
26
+ // https://github.com/Zamiell/eslint-plugin-eqeqeq-fix
27
+ "plugin:eqeqeq-fix/recommended",
28
+
25
29
  // Find unused "eslint-disable" comments
26
30
  // https://github.com/mysticatea/eslint-plugin-eslint-comments
27
31
  "plugin:eslint-comments/recommended",
@@ -30,15 +34,15 @@ module.exports = {
30
34
  // https://github.com/gajus/eslint-plugin-jsdoc
31
35
  "plugin:jsdoc/recommended",
32
36
 
33
- // This provides a version of the "eqeqeq" rule that the "--fix" flag can fix
34
- // https://github.com/Zamiell/eslint-plugin-eqeqeq-fix
35
- "plugin:eqeqeq-fix/recommended",
36
-
37
37
  // This prevents implicit iteration of Maps and Sets,
38
38
  // which is helpful to prevent bugs when refactoring
39
39
  // https://github.com/Zamiell/eslint-plugin-no-implicit-map-set-loops
40
40
  "plugin:no-implicit-map-set-loops/recommended",
41
41
 
42
+ // This prevents declaring variables without a type
43
+ // https://github.com/Zamiell/eslint-plugin-no-let-any
44
+ "plugin:no-let-any/recommended",
45
+
42
46
  // This provides a version of the "no-template-curly-in-string" that the "--fix" flag can fix
43
47
  // https://github.com/Zamiell/eslint-plugin-no-template-curly-in-string-fix
44
48
  "plugin:no-template-curly-in-string-fix/recommended",
@@ -47,10 +51,6 @@ module.exports = {
47
51
  // https://github.com/Zamiell/eslint-plugin-no-void-return-type
48
52
  "plugin:no-void-return-type/recommended",
49
53
 
50
- // This prevents declaring variables without a type
51
- // https://github.com/Zamiell/eslint-plugin-no-let-any
52
- "plugin:no-let-any/recommended",
53
-
54
54
  // Disable any ESLint rules that conflict with Prettier
55
55
  // (otherwise, we will have unfixable ESLint errors)
56
56
  // https://github.com/prettier/eslint-config-prettier
@@ -62,6 +62,10 @@ module.exports = {
62
62
  // This allows the end-user to more easily distinguish between errors from the TypeScript
63
63
  // compiler (which show up in red) and ESLint rule violations (which show up in yellow)
64
64
  "only-warn",
65
+
66
+ // Activate the "sort-exports" plugin, which allows the "sort-exports" rule to be optionally
67
+ // enabled on a per-project basis
68
+ "sort-exports",
65
69
  ],
66
70
 
67
71
  // We modify the linting rules from the base for some specific things
@@ -134,9 +138,16 @@ module.exports = {
134
138
  // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
135
139
  // Defined at:
136
140
  // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
137
- // We want to ignore function arguments that start with an underscore
141
+ // We want to lint unused arguments (the default is "after-used")
142
+ // We also want to ignore function arguments that start with an underscore
138
143
  // This matches the behavior of the TypeScript compiler flag "--noUnusedLocals"
139
- "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
144
+ "@typescript-eslint/no-unused-vars": [
145
+ "warn",
146
+ {
147
+ args: "all",
148
+ argsIgnorePattern: "^_",
149
+ },
150
+ ],
140
151
 
141
152
  // Documentation:
142
153
  // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md
@@ -238,6 +249,23 @@ module.exports = {
238
249
  },
239
250
  ],
240
251
 
252
+ // Documentation:
253
+ // https://github.com/gajus/eslint-plugin-jsdoc#user-content-eslint-plugin-jsdoc-rules-match-description
254
+ // Not defined in parent configs
255
+ // Needed for catching superfluous leading and trailing newlines as documented here:
256
+ // https://github.com/gajus/eslint-plugin-jsdoc/issues/847
257
+ "jsdoc/match-description": [
258
+ "warn",
259
+ {
260
+ matchDescription: "^\\S[\\s\\S]*\\S$",
261
+ contexts: [
262
+ {
263
+ comment: "JsdocBlock[endLine!=0]:not(:has(JsdocTag))",
264
+ },
265
+ ],
266
+ },
267
+ ],
268
+
241
269
  // Documentation:
242
270
  // https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-jsdoc
243
271
  // Defined at:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "1.0.57",
3
+ "version": "1.0.60",
4
4
  "description": "An ESLint config for IsaacScript projects.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,6 @@
9
9
  "license": "GPL-3.0",
10
10
  "author": "Zamiell",
11
11
  "devDependencies": {
12
- "prettier": "^2.5.1"
12
+ "prettier": "^2.6.0"
13
13
  }
14
14
  }