.eslintrc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "extends": ["eslint:recommended", "plugin:prettier/recommended"],
  3. "plugins": ["prettier"],
  4. "parserOptions": {
  5. "ecmaVersion": 2018,
  6. "sourceType": "module"
  7. },
  8. "env": {
  9. "es6": true,
  10. "browser": true,
  11. "node": true,
  12. },
  13. "rules": {
  14. "block-scoped-var": 1,
  15. "curly": 1,
  16. "eqeqeq": 1,
  17. "no-global-assign": 1,
  18. "no-implicit-globals": 1,
  19. "no-labels": 1,
  20. "no-multi-str": 1,
  21. "comma-spacing": 1,
  22. "comma-style": 1,
  23. "func-call-spacing": 1,
  24. "keyword-spacing": 1,
  25. "linebreak-style": 1,
  26. "no-multiple-empty-lines": 1,
  27. "space-infix-ops": 1,
  28. "arrow-spacing": 1,
  29. "no-var": 1,
  30. "prefer-const": 1,
  31. "no-unsafe-negation": 1,
  32. "array-callback-return": 1,
  33. "dot-notation": 1,
  34. "no-eval": 1,
  35. "no-extend-native": 1,
  36. "no-extra-label": 1,
  37. "semi": 1,
  38. "space-before-blocks": 1,
  39. "space-in-parens": 1,
  40. "space-unary-ops": 1,
  41. "spaced-comment": 1,
  42. "arrow-body-style": 1,
  43. "arrow-parens": 1,
  44. "no-restricted-imports": 1,
  45. "no-duplicate-imports": 1,
  46. "no-useless-computed-key": 1,
  47. "no-useless-rename": 1,
  48. "rest-spread-spacing": 1,
  49. "no-trailing-spaces": 1,
  50. "no-control-regex": 0,
  51. "prettier/prettier": 0,
  52. "no-await-in-loop": 1,
  53. "require-atomic-updates": 0,
  54. "no-prototype-builtins": 0
  55. }
  56. }