.eslintrc.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "root": true,
  3. "env": {
  4. "es2021": true,
  5. "node": true,
  6. "browser": false
  7. },
  8. "extends": [
  9. "eslint:recommended",
  10. /** @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#recommended-configs */
  11. "plugin:@typescript-eslint/recommended"
  12. ],
  13. "parser": "@typescript-eslint/parser",
  14. "parserOptions": {
  15. "ecmaVersion": 12,
  16. "sourceType": "module"
  17. },
  18. "plugins": [
  19. "@typescript-eslint"
  20. ],
  21. "ignorePatterns": [
  22. "node_modules/**",
  23. "**/dist/**"
  24. ],
  25. "rules": {
  26. "@typescript-eslint/no-unused-vars": "error",
  27. "@typescript-eslint/no-var-requires": "off",
  28. "@typescript-eslint/consistent-type-imports": "error",
  29. /**
  30. * Having a semicolon helps the optimizer interpret your code correctly.
  31. * This avoids rare errors in optimized code.
  32. * @see https://twitter.com/alex_kozack/status/1364210394328408066
  33. */
  34. "semi": [
  35. "error",
  36. "always"
  37. ],
  38. /**
  39. * This will make the history of changes in the hit a little cleaner
  40. */
  41. "comma-dangle": [
  42. "warn",
  43. "always-multiline"
  44. ],
  45. /**
  46. * Just for beauty
  47. */
  48. "quotes": [
  49. "warn", "single"
  50. ]
  51. }
  52. }