eslint-recommended.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * @fileoverview Configuration applied when a user configuration extends from
  3. * eslint:recommended.
  4. * @author Nicholas C. Zakas
  5. */
  6. "use strict";
  7. /* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */
  8. /** @type {import("../lib/shared/types").ConfigData} */
  9. module.exports = {
  10. rules: {
  11. "constructor-super": "error",
  12. "for-direction": "error",
  13. "getter-return": "error",
  14. "no-async-promise-executor": "error",
  15. "no-case-declarations": "error",
  16. "no-class-assign": "error",
  17. "no-compare-neg-zero": "error",
  18. "no-cond-assign": "error",
  19. "no-const-assign": "error",
  20. "no-constant-condition": "error",
  21. "no-control-regex": "error",
  22. "no-debugger": "error",
  23. "no-delete-var": "error",
  24. "no-dupe-args": "error",
  25. "no-dupe-class-members": "error",
  26. "no-dupe-else-if": "error",
  27. "no-dupe-keys": "error",
  28. "no-duplicate-case": "error",
  29. "no-empty": "error",
  30. "no-empty-character-class": "error",
  31. "no-empty-pattern": "error",
  32. "no-ex-assign": "error",
  33. "no-extra-boolean-cast": "error",
  34. "no-extra-semi": "error",
  35. "no-fallthrough": "error",
  36. "no-func-assign": "error",
  37. "no-global-assign": "error",
  38. "no-import-assign": "error",
  39. "no-inner-declarations": "error",
  40. "no-invalid-regexp": "error",
  41. "no-irregular-whitespace": "error",
  42. "no-loss-of-precision": "error",
  43. "no-misleading-character-class": "error",
  44. "no-mixed-spaces-and-tabs": "error",
  45. "no-new-symbol": "error",
  46. "no-nonoctal-decimal-escape": "error",
  47. "no-obj-calls": "error",
  48. "no-octal": "error",
  49. "no-prototype-builtins": "error",
  50. "no-redeclare": "error",
  51. "no-regex-spaces": "error",
  52. "no-self-assign": "error",
  53. "no-setter-return": "error",
  54. "no-shadow-restricted-names": "error",
  55. "no-sparse-arrays": "error",
  56. "no-this-before-super": "error",
  57. "no-undef": "error",
  58. "no-unexpected-multiline": "error",
  59. "no-unreachable": "error",
  60. "no-unsafe-finally": "error",
  61. "no-unsafe-negation": "error",
  62. "no-unsafe-optional-chaining": "error",
  63. "no-unused-labels": "error",
  64. "no-unused-vars": "error",
  65. "no-useless-backreference": "error",
  66. "no-useless-catch": "error",
  67. "no-useless-escape": "error",
  68. "no-with": "error",
  69. "require-yield": "error",
  70. "use-isnan": "error",
  71. "valid-typeof": "error"
  72. }
  73. };