.eslintrc.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "root": true,
  3. "parser": "@typescript-eslint/parser",
  4. "plugins": [
  5. "@typescript-eslint"
  6. ],
  7. "extends": [
  8. "eslint:recommended",
  9. "plugin:@typescript-eslint/eslint-recommended",
  10. "plugin:@typescript-eslint/recommended"
  11. ],
  12. "rules": {
  13. "max-len": [
  14. "error",
  15. {
  16. "code": 120
  17. }
  18. ],
  19. "indent": [
  20. "error",
  21. 2,
  22. {
  23. "SwitchCase": 1,
  24. "flatTernaryExpressions": false,
  25. "ignoreComments": false
  26. }
  27. ],
  28. "@typescript-eslint/naming-convention": "warn",
  29. "@typescript-eslint/semi": ["error", "never"],
  30. "@typescript-eslint/member-delimiter-style": ["error", {
  31. "multiline": {
  32. "delimiter": "none", // 'none' or 'semi' or 'comma'
  33. "requireLast": true
  34. },
  35. "singleline": {
  36. "delimiter": "semi", // 'semi' or 'comma'
  37. "requireLast": false
  38. }
  39. }],
  40. "comma-spacing": ["error", { "before": false, "after": true }],
  41. "curly": "warn",
  42. "eqeqeq": "warn",
  43. "no-throw-literal": "warn",
  44. "quotes": ["error", "single"],
  45. "semi": "off"
  46. }
  47. }