.eslintrc.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "parser": "@typescript-eslint/parser",
  3. "parserOptions": {
  4. "ecmaVersion": 2018,
  5. "sourceType": "module"
  6. },
  7. "plugins": ["@typescript-eslint"],
  8. "env": {
  9. "browser": true,
  10. "node": true
  11. },
  12. "globals": {},
  13. "rules": {
  14. "no-eval": 2,
  15. "no-use-before-define": [
  16. 2,
  17. {
  18. "functions": false
  19. }
  20. ],
  21. "no-undef": 0,
  22. "no-unused-vars": 1,
  23. "no-caller": 2,
  24. "no-eq-null": 1,
  25. "guard-for-in": 2,
  26. "no-implicit-coercion": [
  27. 2,
  28. {
  29. "boolean": false,
  30. "string": true,
  31. "number": true
  32. }
  33. ],
  34. "no-with": 2,
  35. "no-mixed-spaces-and-tabs": 2,
  36. "no-multiple-empty-lines": 2,
  37. "dot-location": [2, "property"],
  38. "operator-linebreak": [0, "after"],
  39. "keyword-spacing": [2, {}],
  40. "space-unary-ops": [
  41. 2,
  42. {
  43. "words": false,
  44. "nonwords": false
  45. }
  46. ],
  47. "no-spaced-func": 2,
  48. "space-before-function-paren": [
  49. 1,
  50. {
  51. "anonymous": "ignore",
  52. "named": "never"
  53. }
  54. ],
  55. "comma-dangle": [2, "never"],
  56. "no-trailing-spaces": 0,
  57. "max-len": [2, 160],
  58. "comma-style": [2, "last"],
  59. "curly": [2, "all"],
  60. "space-infix-ops": 2,
  61. "spaced-comment": 1,
  62. "space-before-blocks": [2, "always"],
  63. "indent": [
  64. 2,
  65. 4,
  66. {
  67. "SwitchCase": 1
  68. }
  69. ]
  70. }
  71. }