.eslintrc.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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": "warn",
  16. "@typescript-eslint/class-name-casing": "off",
  17. "@typescript-eslint/indent": [
  18. "warn",
  19. 4,
  20. {
  21. "ignoredNodes": ["TSTypeParameterInstantiation"]
  22. }
  23. ],
  24. "@typescript-eslint/member-delimiter-style": [
  25. "off",
  26. {
  27. "multiline": {
  28. "delimiter": "none",
  29. "requireLast": true
  30. },
  31. "singleline": {
  32. "delimiter": "semi",
  33. "requireLast": false
  34. }
  35. }
  36. ],
  37. "@typescript-eslint/prefer-namespace-keyword": "warn",
  38. "@typescript-eslint/quotes": [
  39. "warn",
  40. "single",
  41. {
  42. "avoidEscape": true,
  43. "allowTemplateLiterals": true
  44. }
  45. ],
  46. "@typescript-eslint/semi": [
  47. "off",
  48. null
  49. ],
  50. "@typescript-eslint/type-annotation-spacing": "warn",
  51. "arrow-parens": [
  52. "off",
  53. "as-needed"
  54. ],
  55. "comma-dangle": "off",
  56. "eqeqeq": [
  57. "warn",
  58. "smart"
  59. ],
  60. "import/order": "off",
  61. "no-eval": "warn",
  62. "no-new-wrappers": "warn",
  63. "no-trailing-spaces": "warn",
  64. "no-unsafe-finally": "warn",
  65. "no-var": "warn",
  66. "spaced-comment": "warn"
  67. }
  68. }