.eslintrc.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "parser": "@typescript-eslint/parser",
  3. "parserOptions": {
  4. "project": "tsconfig.json",
  5. "sourceType": "module"
  6. },
  7. "plugins": [
  8. "@typescript-eslint/eslint-plugin"
  9. ],
  10. "extends": [
  11. "plugin:@typescript-eslint/recommended"
  12. ],
  13. "root": false,
  14. "env": {
  15. "node": true,
  16. "jest": true
  17. },
  18. "ignorePatterns": [
  19. ".eslintrc.js"
  20. ],
  21. "rules": {
  22. "@typescript-eslint/interface-name-prefix": "off",
  23. "@typescript-eslint/explicit-function-return-type": "off",
  24. "@typescript-eslint/explicit-module-boundary-types": "off",
  25. "@typescript-eslint/no-explicit-any": "off",
  26. "object-curly-newline": [
  27. "error",
  28. "always"
  29. ],
  30. "indent": "off",
  31. "@typescript-eslint/indent": [
  32. "error",
  33. 4,
  34. {
  35. "ignoredNodes": [
  36. "PropertyDefinition",
  37. "Decorator"
  38. ],
  39. "SwitchCase": 1
  40. }
  41. ],
  42. "@typescript-eslint/no-non-null-assertion": "off",
  43. "@typescript-eslint/no-unused-vars": "off",
  44. "semi": "error",
  45. "quotes": [
  46. "error",
  47. "double"
  48. ],
  49. "prefer-const": "off",
  50. "no-extra-semi": "off"
  51. }
  52. }