1
0

eslint.config.mjs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. export default [
  2. {
  3. rules: {
  4. "eol-last": "error",
  5. //"no-extra-parens": "error",
  6. "no-trailing-spaces": "error",
  7. "no-extra-semi": "error",
  8. "no-tabs": "error",
  9. "quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
  10. "keyword-spacing": ["error", { "overrides": {
  11. "if": { "after": false },
  12. "for": { "after": false },
  13. "while": { "after": false },
  14. "switch": { "after": false },
  15. "catch": { "after": false },
  16. } }],
  17. "semi": "error",
  18. "no-useless-return": "error",
  19. "eqeqeq": "error",
  20. "no-multiple-empty-lines": ["error", { "max": 2, "maxBOF": 0, "maxEOF": 0 }],
  21. //"no-var": "error",
  22. "radix": "error",
  23. "comma-style": ["error", "last"],
  24. //"comma-dangle": ["error", "always-multiline"],
  25. "no-sequences": "error",
  26. //"one-var": ["error", "never"],
  27. "constructor-super": "error",
  28. "for-direction": "error",
  29. "getter-return": "error",
  30. "no-async-promise-executor": "error",
  31. //"no-case-declarations": "error",
  32. "no-class-assign": "error",
  33. "no-compare-neg-zero": "error",
  34. "no-cond-assign": "error",
  35. "no-const-assign": "error",
  36. "no-constant-binary-expression": "error",
  37. //"no-constant-condition": "error",
  38. //"no-control-regex": "error",
  39. //"no-debugger": "error",
  40. "no-delete-var": "error",
  41. "no-dupe-args": "error",
  42. "no-dupe-class-members": "error",
  43. //"no-dupe-else-if": "error",
  44. "no-dupe-keys": "error",
  45. "no-duplicate-case": "error",
  46. //"no-empty": "error",
  47. "no-empty-character-class": "error",
  48. "no-empty-pattern": "error",
  49. "no-empty-static-block": "error",
  50. "no-ex-assign": "error",
  51. "no-extra-boolean-cast": "error",
  52. "no-fallthrough": "error",
  53. "no-func-assign": "error",
  54. "no-global-assign": "error",
  55. "no-import-assign": "error",
  56. "no-invalid-regexp": "error",
  57. "no-irregular-whitespace": "error",
  58. "no-loss-of-precision": "error",
  59. "no-misleading-character-class": "error",
  60. "no-new-native-nonconstructor": "error",
  61. "no-nonoctal-decimal-escape": "error",
  62. "no-obj-calls": "error",
  63. "no-octal": "error",
  64. "no-prototype-builtins": "error",
  65. //"no-redeclare": "error",
  66. "no-regex-spaces": "error",
  67. "no-self-assign": "error",
  68. "no-setter-return": "error",
  69. "no-shadow-restricted-names": "error",
  70. "no-sparse-arrays": "error",
  71. "no-this-before-super": "error",
  72. //"no-undef": "error",
  73. "no-unexpected-multiline": "error",
  74. //"no-unreachable": "error",
  75. "no-unsafe-finally": "error",
  76. "no-unsafe-negation": "error",
  77. "no-unsafe-optional-chaining": "error",
  78. "no-unused-labels": "error",
  79. "no-unused-private-class-members": "error",
  80. //"no-unused-vars": "error",
  81. "no-useless-backreference": "error",
  82. "no-useless-catch": "error",
  83. //"no-useless-escape": "error",
  84. "no-with": "error",
  85. "require-yield": "error",
  86. "use-isnan": "error",
  87. "valid-typeof": "error"
  88. }
  89. }
  90. ];