.eslintrc 984 B

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