.eslintrc.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "env": {
  3. "browser": true,
  4. "node": true
  5. },
  6. "parser": "@typescript-eslint/parser",
  7. "parserOptions": {
  8. "project": "tsconfig.json",
  9. "sourceType": "module"
  10. },
  11. "plugins": [
  12. "@typescript-eslint"
  13. ],
  14. "rules": {
  15. "@typescript-eslint/ban-types": "off",
  16. "@typescript-eslint/class-name-casing": "off",
  17. "@typescript-eslint/indent": [
  18. "warn",
  19. 4
  20. ],
  21. "@typescript-eslint/member-delimiter-style": [
  22. "off",
  23. {
  24. "multiline": {
  25. "delimiter": "none",
  26. "requireLast": true
  27. },
  28. "singleline": {
  29. "delimiter": "semi",
  30. "requireLast": false
  31. }
  32. }
  33. ],
  34. "@typescript-eslint/prefer-namespace-keyword": "warn",
  35. "@typescript-eslint/quotes": [
  36. "warn",
  37. "single",
  38. {
  39. "avoidEscape": true,
  40. "allowTemplateLiterals": true
  41. }
  42. ],
  43. "@typescript-eslint/semi": [
  44. "off",
  45. null
  46. ],
  47. "@typescript-eslint/type-annotation-spacing": "warn",
  48. "arrow-parens": [
  49. "off",
  50. "as-needed"
  51. ],
  52. "comma-dangle": "off",
  53. "eqeqeq": [
  54. "warn",
  55. "smart"
  56. ],
  57. "import/order": "off",
  58. "no-eval": "warn",
  59. "no-new-wrappers": "warn",
  60. "no-trailing-spaces": "warn",
  61. "no-unsafe-finally": "warn",
  62. "no-var": "warn",
  63. "spaced-comment": "warn"
  64. }
  65. }