eslint 8.18.0 → 8.21.0

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 (299) hide show
  1. package/README.md +3 -9
  2. package/lib/config/default-config.js +16 -7
  3. package/lib/config/flat-config-array.js +41 -2
  4. package/lib/config/flat-config-helpers.js +9 -1
  5. package/lib/eslint/eslint-helpers.js +621 -0
  6. package/lib/eslint/flat-eslint.js +1164 -0
  7. package/lib/eslint/index.js +3 -1
  8. package/lib/linter/linter.js +72 -4
  9. package/lib/rule-tester/flat-rule-tester.js +41 -38
  10. package/lib/rule-tester/rule-tester.js +42 -0
  11. package/lib/rules/accessor-pairs.js +1 -1
  12. package/lib/rules/array-bracket-newline.js +1 -1
  13. package/lib/rules/array-bracket-spacing.js +1 -1
  14. package/lib/rules/array-callback-return.js +1 -1
  15. package/lib/rules/array-element-newline.js +1 -1
  16. package/lib/rules/arrow-body-style.js +1 -1
  17. package/lib/rules/arrow-parens.js +1 -1
  18. package/lib/rules/arrow-spacing.js +1 -1
  19. package/lib/rules/block-scoped-var.js +1 -1
  20. package/lib/rules/block-spacing.js +1 -1
  21. package/lib/rules/brace-style.js +1 -1
  22. package/lib/rules/callback-return.js +1 -1
  23. package/lib/rules/camelcase.js +1 -1
  24. package/lib/rules/capitalized-comments.js +1 -1
  25. package/lib/rules/class-methods-use-this.js +1 -1
  26. package/lib/rules/comma-dangle.js +1 -1
  27. package/lib/rules/comma-spacing.js +36 -42
  28. package/lib/rules/comma-style.js +1 -1
  29. package/lib/rules/complexity.js +1 -1
  30. package/lib/rules/computed-property-spacing.js +1 -1
  31. package/lib/rules/consistent-return.js +1 -1
  32. package/lib/rules/consistent-this.js +1 -1
  33. package/lib/rules/constructor-super.js +1 -1
  34. package/lib/rules/curly.js +1 -1
  35. package/lib/rules/default-case-last.js +1 -1
  36. package/lib/rules/default-case.js +1 -1
  37. package/lib/rules/default-param-last.js +1 -1
  38. package/lib/rules/dot-location.js +1 -1
  39. package/lib/rules/dot-notation.js +1 -1
  40. package/lib/rules/eol-last.js +1 -1
  41. package/lib/rules/eqeqeq.js +1 -1
  42. package/lib/rules/for-direction.js +1 -1
  43. package/lib/rules/func-call-spacing.js +1 -1
  44. package/lib/rules/func-name-matching.js +1 -1
  45. package/lib/rules/func-names.js +1 -1
  46. package/lib/rules/func-style.js +1 -1
  47. package/lib/rules/function-call-argument-newline.js +1 -1
  48. package/lib/rules/function-paren-newline.js +1 -1
  49. package/lib/rules/generator-star-spacing.js +1 -1
  50. package/lib/rules/getter-return.js +1 -1
  51. package/lib/rules/global-require.js +1 -1
  52. package/lib/rules/grouped-accessor-pairs.js +1 -1
  53. package/lib/rules/guard-for-in.js +1 -1
  54. package/lib/rules/handle-callback-err.js +1 -1
  55. package/lib/rules/id-blacklist.js +1 -1
  56. package/lib/rules/id-denylist.js +1 -1
  57. package/lib/rules/id-length.js +1 -1
  58. package/lib/rules/id-match.js +1 -1
  59. package/lib/rules/implicit-arrow-linebreak.js +1 -1
  60. package/lib/rules/indent-legacy.js +1 -1
  61. package/lib/rules/indent.js +3 -3
  62. package/lib/rules/init-declarations.js +1 -1
  63. package/lib/rules/jsx-quotes.js +1 -1
  64. package/lib/rules/key-spacing.js +5 -2
  65. package/lib/rules/keyword-spacing.js +1 -1
  66. package/lib/rules/line-comment-position.js +1 -1
  67. package/lib/rules/linebreak-style.js +1 -1
  68. package/lib/rules/lines-around-comment.js +12 -5
  69. package/lib/rules/lines-around-directive.js +1 -1
  70. package/lib/rules/lines-between-class-members.js +1 -1
  71. package/lib/rules/max-classes-per-file.js +1 -1
  72. package/lib/rules/max-depth.js +1 -1
  73. package/lib/rules/max-len.js +1 -1
  74. package/lib/rules/max-lines-per-function.js +1 -1
  75. package/lib/rules/max-lines.js +1 -1
  76. package/lib/rules/max-nested-callbacks.js +1 -1
  77. package/lib/rules/max-params.js +1 -1
  78. package/lib/rules/max-statements-per-line.js +1 -1
  79. package/lib/rules/max-statements.js +1 -1
  80. package/lib/rules/multiline-comment-style.js +1 -1
  81. package/lib/rules/multiline-ternary.js +1 -1
  82. package/lib/rules/new-cap.js +1 -1
  83. package/lib/rules/new-parens.js +1 -1
  84. package/lib/rules/newline-after-var.js +1 -1
  85. package/lib/rules/newline-before-return.js +1 -1
  86. package/lib/rules/newline-per-chained-call.js +1 -1
  87. package/lib/rules/no-alert.js +1 -1
  88. package/lib/rules/no-array-constructor.js +1 -1
  89. package/lib/rules/no-async-promise-executor.js +1 -1
  90. package/lib/rules/no-await-in-loop.js +1 -1
  91. package/lib/rules/no-bitwise.js +1 -1
  92. package/lib/rules/no-buffer-constructor.js +1 -1
  93. package/lib/rules/no-caller.js +1 -1
  94. package/lib/rules/no-case-declarations.js +1 -1
  95. package/lib/rules/no-catch-shadow.js +1 -1
  96. package/lib/rules/no-class-assign.js +1 -1
  97. package/lib/rules/no-compare-neg-zero.js +1 -1
  98. package/lib/rules/no-cond-assign.js +1 -1
  99. package/lib/rules/no-confusing-arrow.js +1 -1
  100. package/lib/rules/no-console.js +1 -1
  101. package/lib/rules/no-const-assign.js +1 -1
  102. package/lib/rules/no-constant-binary-expression.js +1 -1
  103. package/lib/rules/no-constant-condition.js +1 -1
  104. package/lib/rules/no-constructor-return.js +1 -1
  105. package/lib/rules/no-continue.js +1 -1
  106. package/lib/rules/no-control-regex.js +1 -1
  107. package/lib/rules/no-debugger.js +1 -1
  108. package/lib/rules/no-delete-var.js +1 -1
  109. package/lib/rules/no-div-regex.js +1 -1
  110. package/lib/rules/no-dupe-args.js +1 -1
  111. package/lib/rules/no-dupe-class-members.js +1 -1
  112. package/lib/rules/no-dupe-else-if.js +1 -1
  113. package/lib/rules/no-dupe-keys.js +1 -1
  114. package/lib/rules/no-duplicate-case.js +1 -1
  115. package/lib/rules/no-duplicate-imports.js +1 -1
  116. package/lib/rules/no-else-return.js +1 -1
  117. package/lib/rules/no-empty-character-class.js +1 -1
  118. package/lib/rules/no-empty-function.js +1 -1
  119. package/lib/rules/no-empty-pattern.js +1 -1
  120. package/lib/rules/no-empty.js +1 -1
  121. package/lib/rules/no-eq-null.js +1 -1
  122. package/lib/rules/no-eval.js +1 -1
  123. package/lib/rules/no-ex-assign.js +1 -1
  124. package/lib/rules/no-extend-native.js +1 -1
  125. package/lib/rules/no-extra-bind.js +1 -1
  126. package/lib/rules/no-extra-boolean-cast.js +1 -1
  127. package/lib/rules/no-extra-label.js +1 -1
  128. package/lib/rules/no-extra-parens.js +1 -1
  129. package/lib/rules/no-extra-semi.js +1 -1
  130. package/lib/rules/no-fallthrough.js +1 -1
  131. package/lib/rules/no-floating-decimal.js +1 -1
  132. package/lib/rules/no-func-assign.js +1 -1
  133. package/lib/rules/no-global-assign.js +1 -1
  134. package/lib/rules/no-implicit-coercion.js +1 -1
  135. package/lib/rules/no-implicit-globals.js +1 -1
  136. package/lib/rules/no-implied-eval.js +1 -1
  137. package/lib/rules/no-import-assign.js +1 -1
  138. package/lib/rules/no-inline-comments.js +1 -1
  139. package/lib/rules/no-inner-declarations.js +1 -1
  140. package/lib/rules/no-invalid-regexp.js +1 -1
  141. package/lib/rules/no-invalid-this.js +1 -1
  142. package/lib/rules/no-irregular-whitespace.js +1 -1
  143. package/lib/rules/no-iterator.js +1 -1
  144. package/lib/rules/no-label-var.js +1 -1
  145. package/lib/rules/no-labels.js +1 -1
  146. package/lib/rules/no-lone-blocks.js +1 -1
  147. package/lib/rules/no-lonely-if.js +1 -1
  148. package/lib/rules/no-loop-func.js +1 -1
  149. package/lib/rules/no-loss-of-precision.js +1 -1
  150. package/lib/rules/no-magic-numbers.js +1 -1
  151. package/lib/rules/no-misleading-character-class.js +1 -1
  152. package/lib/rules/no-mixed-operators.js +1 -1
  153. package/lib/rules/no-mixed-requires.js +1 -1
  154. package/lib/rules/no-mixed-spaces-and-tabs.js +1 -1
  155. package/lib/rules/no-multi-assign.js +1 -1
  156. package/lib/rules/no-multi-spaces.js +1 -1
  157. package/lib/rules/no-multi-str.js +1 -1
  158. package/lib/rules/no-multiple-empty-lines.js +1 -1
  159. package/lib/rules/no-native-reassign.js +1 -1
  160. package/lib/rules/no-negated-condition.js +1 -1
  161. package/lib/rules/no-negated-in-lhs.js +1 -1
  162. package/lib/rules/no-nested-ternary.js +1 -1
  163. package/lib/rules/no-new-func.js +1 -1
  164. package/lib/rules/no-new-object.js +1 -1
  165. package/lib/rules/no-new-require.js +1 -1
  166. package/lib/rules/no-new-symbol.js +1 -1
  167. package/lib/rules/no-new-wrappers.js +1 -1
  168. package/lib/rules/no-new.js +1 -1
  169. package/lib/rules/no-nonoctal-decimal-escape.js +1 -1
  170. package/lib/rules/no-obj-calls.js +1 -1
  171. package/lib/rules/no-octal-escape.js +1 -1
  172. package/lib/rules/no-octal.js +1 -1
  173. package/lib/rules/no-param-reassign.js +1 -1
  174. package/lib/rules/no-path-concat.js +1 -1
  175. package/lib/rules/no-plusplus.js +1 -1
  176. package/lib/rules/no-process-env.js +1 -1
  177. package/lib/rules/no-process-exit.js +1 -1
  178. package/lib/rules/no-promise-executor-return.js +1 -1
  179. package/lib/rules/no-proto.js +1 -1
  180. package/lib/rules/no-prototype-builtins.js +1 -1
  181. package/lib/rules/no-redeclare.js +1 -1
  182. package/lib/rules/no-regex-spaces.js +1 -1
  183. package/lib/rules/no-restricted-exports.js +1 -1
  184. package/lib/rules/no-restricted-globals.js +1 -1
  185. package/lib/rules/no-restricted-imports.js +77 -12
  186. package/lib/rules/no-restricted-modules.js +1 -1
  187. package/lib/rules/no-restricted-properties.js +1 -1
  188. package/lib/rules/no-restricted-syntax.js +1 -1
  189. package/lib/rules/no-return-assign.js +1 -1
  190. package/lib/rules/no-return-await.js +1 -1
  191. package/lib/rules/no-script-url.js +1 -1
  192. package/lib/rules/no-self-assign.js +1 -1
  193. package/lib/rules/no-self-compare.js +1 -1
  194. package/lib/rules/no-sequences.js +1 -1
  195. package/lib/rules/no-setter-return.js +1 -1
  196. package/lib/rules/no-shadow-restricted-names.js +1 -1
  197. package/lib/rules/no-shadow.js +1 -1
  198. package/lib/rules/no-spaced-func.js +1 -1
  199. package/lib/rules/no-sparse-arrays.js +1 -1
  200. package/lib/rules/no-sync.js +1 -1
  201. package/lib/rules/no-tabs.js +1 -1
  202. package/lib/rules/no-template-curly-in-string.js +1 -1
  203. package/lib/rules/no-ternary.js +1 -1
  204. package/lib/rules/no-this-before-super.js +1 -1
  205. package/lib/rules/no-throw-literal.js +1 -1
  206. package/lib/rules/no-trailing-spaces.js +1 -1
  207. package/lib/rules/no-undef-init.js +1 -1
  208. package/lib/rules/no-undef.js +1 -1
  209. package/lib/rules/no-undefined.js +1 -1
  210. package/lib/rules/no-underscore-dangle.js +1 -1
  211. package/lib/rules/no-unexpected-multiline.js +1 -1
  212. package/lib/rules/no-unmodified-loop-condition.js +1 -1
  213. package/lib/rules/no-unneeded-ternary.js +1 -1
  214. package/lib/rules/no-unreachable-loop.js +1 -1
  215. package/lib/rules/no-unreachable.js +1 -1
  216. package/lib/rules/no-unsafe-finally.js +1 -1
  217. package/lib/rules/no-unsafe-negation.js +1 -1
  218. package/lib/rules/no-unsafe-optional-chaining.js +1 -1
  219. package/lib/rules/no-unused-expressions.js +1 -1
  220. package/lib/rules/no-unused-labels.js +1 -1
  221. package/lib/rules/no-unused-private-class-members.js +1 -1
  222. package/lib/rules/no-unused-vars.js +1 -1
  223. package/lib/rules/no-use-before-define.js +1 -1
  224. package/lib/rules/no-useless-backreference.js +1 -1
  225. package/lib/rules/no-useless-call.js +1 -1
  226. package/lib/rules/no-useless-catch.js +1 -1
  227. package/lib/rules/no-useless-computed-key.js +1 -1
  228. package/lib/rules/no-useless-concat.js +1 -1
  229. package/lib/rules/no-useless-constructor.js +1 -1
  230. package/lib/rules/no-useless-escape.js +1 -1
  231. package/lib/rules/no-useless-rename.js +1 -1
  232. package/lib/rules/no-useless-return.js +1 -1
  233. package/lib/rules/no-var.js +1 -1
  234. package/lib/rules/no-void.js +1 -1
  235. package/lib/rules/no-warning-comments.js +27 -41
  236. package/lib/rules/no-whitespace-before-property.js +1 -1
  237. package/lib/rules/no-with.js +1 -1
  238. package/lib/rules/nonblock-statement-body-position.js +1 -1
  239. package/lib/rules/object-curly-newline.js +1 -1
  240. package/lib/rules/object-curly-spacing.js +1 -1
  241. package/lib/rules/object-property-newline.js +1 -1
  242. package/lib/rules/object-shorthand.js +1 -1
  243. package/lib/rules/one-var-declaration-per-line.js +1 -1
  244. package/lib/rules/one-var.js +1 -1
  245. package/lib/rules/operator-assignment.js +1 -1
  246. package/lib/rules/operator-linebreak.js +1 -1
  247. package/lib/rules/padded-blocks.js +1 -1
  248. package/lib/rules/padding-line-between-statements.js +1 -1
  249. package/lib/rules/prefer-arrow-callback.js +1 -1
  250. package/lib/rules/prefer-const.js +1 -1
  251. package/lib/rules/prefer-destructuring.js +1 -1
  252. package/lib/rules/prefer-exponentiation-operator.js +1 -1
  253. package/lib/rules/prefer-named-capture-group.js +1 -1
  254. package/lib/rules/prefer-numeric-literals.js +1 -1
  255. package/lib/rules/prefer-object-has-own.js +1 -1
  256. package/lib/rules/prefer-object-spread.js +1 -1
  257. package/lib/rules/prefer-promise-reject-errors.js +1 -1
  258. package/lib/rules/prefer-reflect.js +1 -1
  259. package/lib/rules/prefer-regex-literals.js +1 -1
  260. package/lib/rules/prefer-rest-params.js +1 -1
  261. package/lib/rules/prefer-spread.js +1 -1
  262. package/lib/rules/prefer-template.js +1 -1
  263. package/lib/rules/quote-props.js +1 -1
  264. package/lib/rules/quotes.js +1 -1
  265. package/lib/rules/radix.js +1 -1
  266. package/lib/rules/require-atomic-updates.js +1 -1
  267. package/lib/rules/require-await.js +1 -1
  268. package/lib/rules/require-jsdoc.js +1 -1
  269. package/lib/rules/require-unicode-regexp.js +1 -1
  270. package/lib/rules/require-yield.js +1 -1
  271. package/lib/rules/rest-spread-spacing.js +1 -1
  272. package/lib/rules/semi-spacing.js +1 -1
  273. package/lib/rules/semi-style.js +1 -1
  274. package/lib/rules/semi.js +1 -1
  275. package/lib/rules/sort-imports.js +1 -1
  276. package/lib/rules/sort-keys.js +44 -1
  277. package/lib/rules/sort-vars.js +1 -1
  278. package/lib/rules/space-before-blocks.js +1 -1
  279. package/lib/rules/space-before-function-paren.js +1 -1
  280. package/lib/rules/space-in-parens.js +1 -1
  281. package/lib/rules/space-infix-ops.js +1 -1
  282. package/lib/rules/space-unary-ops.js +1 -1
  283. package/lib/rules/spaced-comment.js +1 -1
  284. package/lib/rules/strict.js +1 -1
  285. package/lib/rules/switch-colon-spacing.js +1 -1
  286. package/lib/rules/symbol-description.js +1 -1
  287. package/lib/rules/template-curly-spacing.js +1 -1
  288. package/lib/rules/template-tag-spacing.js +1 -1
  289. package/lib/rules/unicode-bom.js +1 -1
  290. package/lib/rules/use-isnan.js +1 -1
  291. package/lib/rules/valid-jsdoc.js +1 -1
  292. package/lib/rules/valid-typeof.js +1 -1
  293. package/lib/rules/vars-on-top.js +1 -1
  294. package/lib/rules/wrap-iife.js +1 -1
  295. package/lib/rules/wrap-regex.js +1 -1
  296. package/lib/rules/yield-star-spacing.js +1 -1
  297. package/lib/rules/yoda.js +1 -1
  298. package/lib/unsupported-api.js +4 -0
  299. package/package.json +13 -10
@@ -19,7 +19,7 @@ module.exports = {
19
19
  type: "problem",
20
20
 
21
21
  docs: {
22
- description: "disallow use of the `Buffer()` constructor",
22
+ description: "Disallow use of the `Buffer()` constructor",
23
23
  recommended: false,
24
24
  url: "https://eslint.org/docs/rules/no-buffer-constructor"
25
25
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "suggestion",
16
16
 
17
17
  docs: {
18
- description: "disallow the use of `arguments.caller` or `arguments.callee`",
18
+ description: "Disallow the use of `arguments.caller` or `arguments.callee`",
19
19
  recommended: false,
20
20
  url: "https://eslint.org/docs/rules/no-caller"
21
21
  },
@@ -14,7 +14,7 @@ module.exports = {
14
14
  type: "suggestion",
15
15
 
16
16
  docs: {
17
- description: "disallow lexical declarations in case clauses",
17
+ description: "Disallow lexical declarations in case clauses",
18
18
  recommended: true,
19
19
  url: "https://eslint.org/docs/rules/no-case-declarations"
20
20
  },
@@ -22,7 +22,7 @@ module.exports = {
22
22
  type: "suggestion",
23
23
 
24
24
  docs: {
25
- description: "disallow `catch` clause parameters from shadowing variables in the outer scope",
25
+ description: "Disallow `catch` clause parameters from shadowing variables in the outer scope",
26
26
  recommended: false,
27
27
  url: "https://eslint.org/docs/rules/no-catch-shadow"
28
28
  },
@@ -17,7 +17,7 @@ module.exports = {
17
17
  type: "problem",
18
18
 
19
19
  docs: {
20
- description: "disallow reassigning class members",
20
+ description: "Disallow reassigning class members",
21
21
  recommended: true,
22
22
  url: "https://eslint.org/docs/rules/no-class-assign"
23
23
  },
@@ -14,7 +14,7 @@ module.exports = {
14
14
  type: "problem",
15
15
 
16
16
  docs: {
17
- description: "disallow comparing against -0",
17
+ description: "Disallow comparing against -0",
18
18
  recommended: true,
19
19
  url: "https://eslint.org/docs/rules/no-compare-neg-zero"
20
20
  },
@@ -34,7 +34,7 @@ module.exports = {
34
34
  type: "problem",
35
35
 
36
36
  docs: {
37
- description: "disallow assignment operators in conditional expressions",
37
+ description: "Disallow assignment operators in conditional expressions",
38
38
  recommended: true,
39
39
  url: "https://eslint.org/docs/rules/no-cond-assign"
40
40
  },
@@ -31,7 +31,7 @@ module.exports = {
31
31
  type: "suggestion",
32
32
 
33
33
  docs: {
34
- description: "disallow arrow functions where they could be confused with comparisons",
34
+ description: "Disallow arrow functions where they could be confused with comparisons",
35
35
  recommended: false,
36
36
  url: "https://eslint.org/docs/rules/no-confusing-arrow"
37
37
  },
@@ -21,7 +21,7 @@ module.exports = {
21
21
  type: "suggestion",
22
22
 
23
23
  docs: {
24
- description: "disallow the use of `console`",
24
+ description: "Disallow the use of `console`",
25
25
  recommended: false,
26
26
  url: "https://eslint.org/docs/rules/no-console"
27
27
  },
@@ -17,7 +17,7 @@ module.exports = {
17
17
  type: "problem",
18
18
 
19
19
  docs: {
20
- description: "disallow reassigning `const` variables",
20
+ description: "Disallow reassigning `const` variables",
21
21
  recommended: true,
22
22
  url: "https://eslint.org/docs/rules/no-const-assign"
23
23
  },
@@ -432,7 +432,7 @@ module.exports = {
432
432
  meta: {
433
433
  type: "problem",
434
434
  docs: {
435
- description: "disallow expressions where the operation doesn't affect the value",
435
+ description: "Disallow expressions where the operation doesn't affect the value",
436
436
  recommended: false,
437
437
  url: "https://eslint.org/docs/rules/no-constant-binary-expression"
438
438
  },
@@ -21,7 +21,7 @@ module.exports = {
21
21
  type: "problem",
22
22
 
23
23
  docs: {
24
- description: "disallow constant expressions in conditions",
24
+ description: "Disallow constant expressions in conditions",
25
25
  recommended: true,
26
26
  url: "https://eslint.org/docs/rules/no-constant-condition"
27
27
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "problem",
16
16
 
17
17
  docs: {
18
- description: "disallow returning value from constructor",
18
+ description: "Disallow returning value from constructor",
19
19
  recommended: false,
20
20
  url: "https://eslint.org/docs/rules/no-constructor-return"
21
21
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "suggestion",
16
16
 
17
17
  docs: {
18
- description: "disallow `continue` statements",
18
+ description: "Disallow `continue` statements",
19
19
  recommended: false,
20
20
  url: "https://eslint.org/docs/rules/no-continue"
21
21
  },
@@ -54,7 +54,7 @@ module.exports = {
54
54
  type: "problem",
55
55
 
56
56
  docs: {
57
- description: "disallow control characters in regular expressions",
57
+ description: "Disallow control characters in regular expressions",
58
58
  recommended: true,
59
59
  url: "https://eslint.org/docs/rules/no-control-regex"
60
60
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "problem",
16
16
 
17
17
  docs: {
18
- description: "disallow the use of `debugger`",
18
+ description: "Disallow the use of `debugger`",
19
19
  recommended: true,
20
20
  url: "https://eslint.org/docs/rules/no-debugger"
21
21
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "suggestion",
16
16
 
17
17
  docs: {
18
- description: "disallow deleting variables",
18
+ description: "Disallow deleting variables",
19
19
  recommended: true,
20
20
  url: "https://eslint.org/docs/rules/no-delete-var"
21
21
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "suggestion",
16
16
 
17
17
  docs: {
18
- description: "disallow division operators explicitly at the beginning of regular expressions",
18
+ description: "Disallow division operators explicitly at the beginning of regular expressions",
19
19
  recommended: false,
20
20
  url: "https://eslint.org/docs/rules/no-div-regex"
21
21
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "problem",
16
16
 
17
17
  docs: {
18
- description: "disallow duplicate arguments in `function` definitions",
18
+ description: "Disallow duplicate arguments in `function` definitions",
19
19
  recommended: true,
20
20
  url: "https://eslint.org/docs/rules/no-dupe-args"
21
21
  },
@@ -17,7 +17,7 @@ module.exports = {
17
17
  type: "problem",
18
18
 
19
19
  docs: {
20
- description: "disallow duplicate class members",
20
+ description: "Disallow duplicate class members",
21
21
  recommended: true,
22
22
  url: "https://eslint.org/docs/rules/no-dupe-class-members"
23
23
  },
@@ -52,7 +52,7 @@ module.exports = {
52
52
  type: "problem",
53
53
 
54
54
  docs: {
55
- description: "disallow duplicate conditions in if-else-if chains",
55
+ description: "Disallow duplicate conditions in if-else-if chains",
56
56
  recommended: true,
57
57
  url: "https://eslint.org/docs/rules/no-dupe-else-if"
58
58
  },
@@ -88,7 +88,7 @@ module.exports = {
88
88
  type: "problem",
89
89
 
90
90
  docs: {
91
- description: "disallow duplicate keys in object literals",
91
+ description: "Disallow duplicate keys in object literals",
92
92
  recommended: true,
93
93
  url: "https://eslint.org/docs/rules/no-dupe-keys"
94
94
  },
@@ -22,7 +22,7 @@ module.exports = {
22
22
  type: "problem",
23
23
 
24
24
  docs: {
25
- description: "disallow duplicate case labels",
25
+ description: "Disallow duplicate case labels",
26
26
  recommended: true,
27
27
  url: "https://eslint.org/docs/rules/no-duplicate-case"
28
28
  },
@@ -233,7 +233,7 @@ module.exports = {
233
233
  type: "problem",
234
234
 
235
235
  docs: {
236
- description: "disallow duplicate module imports",
236
+ description: "Disallow duplicate module imports",
237
237
  recommended: false,
238
238
  url: "https://eslint.org/docs/rules/no-duplicate-imports"
239
239
  },
@@ -22,7 +22,7 @@ module.exports = {
22
22
  type: "suggestion",
23
23
 
24
24
  docs: {
25
- description: "disallow `else` blocks after `return` statements in `if` statements",
25
+ description: "Disallow `else` blocks after `return` statements in `if` statements",
26
26
  recommended: false,
27
27
  url: "https://eslint.org/docs/rules/no-else-return"
28
28
  },
@@ -30,7 +30,7 @@ module.exports = {
30
30
  type: "problem",
31
31
 
32
32
  docs: {
33
- description: "disallow empty character classes in regular expressions",
33
+ description: "Disallow empty character classes in regular expressions",
34
34
  recommended: true,
35
35
  url: "https://eslint.org/docs/rules/no-empty-character-class"
36
36
  },
@@ -95,7 +95,7 @@ module.exports = {
95
95
  type: "suggestion",
96
96
 
97
97
  docs: {
98
- description: "disallow empty functions",
98
+ description: "Disallow empty functions",
99
99
  recommended: false,
100
100
  url: "https://eslint.org/docs/rules/no-empty-function"
101
101
  },
@@ -14,7 +14,7 @@ module.exports = {
14
14
  type: "problem",
15
15
 
16
16
  docs: {
17
- description: "disallow empty destructuring patterns",
17
+ description: "Disallow empty destructuring patterns",
18
18
  recommended: true,
19
19
  url: "https://eslint.org/docs/rules/no-empty-pattern"
20
20
  },
@@ -20,7 +20,7 @@ module.exports = {
20
20
  type: "suggestion",
21
21
 
22
22
  docs: {
23
- description: "disallow empty block statements",
23
+ description: "Disallow empty block statements",
24
24
  recommended: true,
25
25
  url: "https://eslint.org/docs/rules/no-empty"
26
26
  },
@@ -16,7 +16,7 @@ module.exports = {
16
16
  type: "suggestion",
17
17
 
18
18
  docs: {
19
- description: "disallow `null` comparisons without type-checking operators",
19
+ description: "Disallow `null` comparisons without type-checking operators",
20
20
  recommended: false,
21
21
  url: "https://eslint.org/docs/rules/no-eq-null"
22
22
  },
@@ -43,7 +43,7 @@ module.exports = {
43
43
  type: "suggestion",
44
44
 
45
45
  docs: {
46
- description: "disallow the use of `eval()`",
46
+ description: "Disallow the use of `eval()`",
47
47
  recommended: false,
48
48
  url: "https://eslint.org/docs/rules/no-eval"
49
49
  },
@@ -17,7 +17,7 @@ module.exports = {
17
17
  type: "problem",
18
18
 
19
19
  docs: {
20
- description: "disallow reassigning exceptions in `catch` clauses",
20
+ description: "Disallow reassigning exceptions in `catch` clauses",
21
21
  recommended: true,
22
22
  url: "https://eslint.org/docs/rules/no-ex-assign"
23
23
  },
@@ -22,7 +22,7 @@ module.exports = {
22
22
  type: "suggestion",
23
23
 
24
24
  docs: {
25
- description: "disallow extending native types",
25
+ description: "Disallow extending native types",
26
26
  recommended: false,
27
27
  url: "https://eslint.org/docs/rules/no-extend-native"
28
28
  },
@@ -26,7 +26,7 @@ module.exports = {
26
26
  type: "suggestion",
27
27
 
28
28
  docs: {
29
- description: "disallow unnecessary calls to `.bind()`",
29
+ description: "Disallow unnecessary calls to `.bind()`",
30
30
  recommended: false,
31
31
  url: "https://eslint.org/docs/rules/no-extra-bind"
32
32
  },
@@ -24,7 +24,7 @@ module.exports = {
24
24
  type: "suggestion",
25
25
 
26
26
  docs: {
27
- description: "disallow unnecessary boolean casts",
27
+ description: "Disallow unnecessary boolean casts",
28
28
  recommended: true,
29
29
  url: "https://eslint.org/docs/rules/no-extra-boolean-cast"
30
30
  },
@@ -21,7 +21,7 @@ module.exports = {
21
21
  type: "suggestion",
22
22
 
23
23
  docs: {
24
- description: "disallow unnecessary labels",
24
+ description: "Disallow unnecessary labels",
25
25
  recommended: false,
26
26
  url: "https://eslint.org/docs/rules/no-extra-label"
27
27
  },
@@ -17,7 +17,7 @@ module.exports = {
17
17
  type: "layout",
18
18
 
19
19
  docs: {
20
- description: "disallow unnecessary parentheses",
20
+ description: "Disallow unnecessary parentheses",
21
21
  recommended: false,
22
22
  url: "https://eslint.org/docs/rules/no-extra-parens"
23
23
  },
@@ -22,7 +22,7 @@ module.exports = {
22
22
  type: "suggestion",
23
23
 
24
24
  docs: {
25
- description: "disallow unnecessary semicolons",
25
+ description: "Disallow unnecessary semicolons",
26
26
  recommended: true,
27
27
  url: "https://eslint.org/docs/rules/no-extra-semi"
28
28
  },
@@ -64,7 +64,7 @@ module.exports = {
64
64
  type: "problem",
65
65
 
66
66
  docs: {
67
- description: "disallow fallthrough of `case` statements",
67
+ description: "Disallow fallthrough of `case` statements",
68
68
  recommended: true,
69
69
  url: "https://eslint.org/docs/rules/no-fallthrough"
70
70
  },
@@ -21,7 +21,7 @@ module.exports = {
21
21
  type: "suggestion",
22
22
 
23
23
  docs: {
24
- description: "disallow leading or trailing decimal points in numeric literals",
24
+ description: "Disallow leading or trailing decimal points in numeric literals",
25
25
  recommended: false,
26
26
  url: "https://eslint.org/docs/rules/no-floating-decimal"
27
27
  },
@@ -17,7 +17,7 @@ module.exports = {
17
17
  type: "problem",
18
18
 
19
19
  docs: {
20
- description: "disallow reassigning `function` declarations",
20
+ description: "Disallow reassigning `function` declarations",
21
21
  recommended: true,
22
22
  url: "https://eslint.org/docs/rules/no-func-assign"
23
23
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "suggestion",
16
16
 
17
17
  docs: {
18
- description: "disallow assignments to native objects or read-only global variables",
18
+ description: "Disallow assignments to native objects or read-only global variables",
19
19
  recommended: true,
20
20
  url: "https://eslint.org/docs/rules/no-global-assign"
21
21
  },
@@ -173,7 +173,7 @@ module.exports = {
173
173
  type: "suggestion",
174
174
 
175
175
  docs: {
176
- description: "disallow shorthand type conversions",
176
+ description: "Disallow shorthand type conversions",
177
177
  recommended: false,
178
178
  url: "https://eslint.org/docs/rules/no-implicit-coercion"
179
179
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "suggestion",
16
16
 
17
17
  docs: {
18
- description: "disallow declarations in the global scope",
18
+ description: "Disallow declarations in the global scope",
19
19
  recommended: false,
20
20
  url: "https://eslint.org/docs/rules/no-implicit-globals"
21
21
  },
@@ -22,7 +22,7 @@ module.exports = {
22
22
  type: "suggestion",
23
23
 
24
24
  docs: {
25
- description: "disallow the use of `eval()`-like methods",
25
+ description: "Disallow the use of `eval()`-like methods",
26
26
  recommended: false,
27
27
  url: "https://eslint.org/docs/rules/no-implied-eval"
28
28
  },
@@ -180,7 +180,7 @@ module.exports = {
180
180
  type: "problem",
181
181
 
182
182
  docs: {
183
- description: "disallow assigning to imported bindings",
183
+ description: "Disallow assigning to imported bindings",
184
184
  recommended: true,
185
185
  url: "https://eslint.org/docs/rules/no-import-assign"
186
186
  },
@@ -16,7 +16,7 @@ module.exports = {
16
16
  type: "suggestion",
17
17
 
18
18
  docs: {
19
- description: "disallow inline comments after code",
19
+ description: "Disallow inline comments after code",
20
20
  recommended: false,
21
21
  url: "https://eslint.org/docs/rules/no-inline-comments"
22
22
  },
@@ -48,7 +48,7 @@ module.exports = {
48
48
  type: "problem",
49
49
 
50
50
  docs: {
51
- description: "disallow variable or `function` declarations in nested blocks",
51
+ description: "Disallow variable or `function` declarations in nested blocks",
52
52
  recommended: true,
53
53
  url: "https://eslint.org/docs/rules/no-inner-declarations"
54
54
  },
@@ -23,7 +23,7 @@ module.exports = {
23
23
  type: "problem",
24
24
 
25
25
  docs: {
26
- description: "disallow invalid regular expression strings in `RegExp` constructors",
26
+ description: "Disallow invalid regular expression strings in `RegExp` constructors",
27
27
  recommended: true,
28
28
  url: "https://eslint.org/docs/rules/no-invalid-regexp"
29
29
  },
@@ -36,7 +36,7 @@ module.exports = {
36
36
  type: "suggestion",
37
37
 
38
38
  docs: {
39
- description: "disallow use of `this` in contexts where the value of `this` is `undefined`",
39
+ description: "Disallow use of `this` in contexts where the value of `this` is `undefined`",
40
40
  recommended: false,
41
41
  url: "https://eslint.org/docs/rules/no-invalid-this"
42
42
  },
@@ -31,7 +31,7 @@ module.exports = {
31
31
  type: "problem",
32
32
 
33
33
  docs: {
34
- description: "disallow irregular whitespace",
34
+ description: "Disallow irregular whitespace",
35
35
  recommended: true,
36
36
  url: "https://eslint.org/docs/rules/no-irregular-whitespace"
37
37
  },
@@ -21,7 +21,7 @@ module.exports = {
21
21
  type: "suggestion",
22
22
 
23
23
  docs: {
24
- description: "disallow the use of the `__iterator__` property",
24
+ description: "Disallow the use of the `__iterator__` property",
25
25
  recommended: false,
26
26
  url: "https://eslint.org/docs/rules/no-iterator"
27
27
  },
@@ -21,7 +21,7 @@ module.exports = {
21
21
  type: "suggestion",
22
22
 
23
23
  docs: {
24
- description: "disallow labels that share a name with a variable",
24
+ description: "Disallow labels that share a name with a variable",
25
25
  recommended: false,
26
26
  url: "https://eslint.org/docs/rules/no-label-var"
27
27
  },
@@ -20,7 +20,7 @@ module.exports = {
20
20
  type: "suggestion",
21
21
 
22
22
  docs: {
23
- description: "disallow labeled statements",
23
+ description: "Disallow labeled statements",
24
24
  recommended: false,
25
25
  url: "https://eslint.org/docs/rules/no-labels"
26
26
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "suggestion",
16
16
 
17
17
  docs: {
18
- description: "disallow unnecessary nested blocks",
18
+ description: "Disallow unnecessary nested blocks",
19
19
  recommended: false,
20
20
  url: "https://eslint.org/docs/rules/no-lone-blocks"
21
21
  },
@@ -14,7 +14,7 @@ module.exports = {
14
14
  type: "suggestion",
15
15
 
16
16
  docs: {
17
- description: "disallow `if` statements as the only statement in `else` blocks",
17
+ description: "Disallow `if` statements as the only statement in `else` blocks",
18
18
  recommended: false,
19
19
  url: "https://eslint.org/docs/rules/no-lonely-if"
20
20
  },
@@ -154,7 +154,7 @@ module.exports = {
154
154
  type: "suggestion",
155
155
 
156
156
  docs: {
157
- description: "disallow function declarations that contain unsafe references inside loop statements",
157
+ description: "Disallow function declarations that contain unsafe references inside loop statements",
158
158
  recommended: false,
159
159
  url: "https://eslint.org/docs/rules/no-loop-func"
160
160
  },
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: "problem",
16
16
 
17
17
  docs: {
18
- description: "disallow literal numbers that lose precision",
18
+ description: "Disallow literal numbers that lose precision",
19
19
  recommended: true,
20
20
  url: "https://eslint.org/docs/rules/no-loss-of-precision"
21
21
  },
@@ -32,7 +32,7 @@ module.exports = {
32
32
  type: "suggestion",
33
33
 
34
34
  docs: {
35
- description: "disallow magic numbers",
35
+ description: "Disallow magic numbers",
36
36
  recommended: false,
37
37
  url: "https://eslint.org/docs/rules/no-magic-numbers"
38
38
  },
@@ -107,7 +107,7 @@ module.exports = {
107
107
  type: "problem",
108
108
 
109
109
  docs: {
110
- description: "disallow characters which are made with multiple code points in character class syntax",
110
+ description: "Disallow characters which are made with multiple code points in character class syntax",
111
111
  recommended: true,
112
112
  url: "https://eslint.org/docs/rules/no-misleading-character-class"
113
113
  },
@@ -88,7 +88,7 @@ module.exports = {
88
88
  type: "suggestion",
89
89
 
90
90
  docs: {
91
- description: "disallow mixed binary operators",
91
+ description: "Disallow mixed binary operators",
92
92
  recommended: false,
93
93
  url: "https://eslint.org/docs/rules/no-mixed-operators"
94
94
  },