.eslintrc.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "env": {
  3. "browser": false,
  4. "es6": true,
  5. "node": true
  6. },
  7. "parser": "@typescript-eslint/parser",
  8. "parserOptions": {
  9. "project": "tsconfig.json",
  10. "sourceType": "module",
  11. "ecmaVersion": 2020
  12. },
  13. "plugins": [
  14. "@typescript-eslint",
  15. "prettier"
  16. ],
  17. "extends": [
  18. "prettier",
  19. "plugin:@typescript-eslint/recommended"
  20. // Uncomment the following lines to enable the recommended rules for type checking.
  21. // "plugin:@typescript-eslint/recommended-requiring-type-checking",
  22. ],
  23. "rules": {
  24. // The following rule is enabled only to supplement the inline suppression
  25. // examples, and because it is not a recommended rule, you should either
  26. // disable it, or understand what it enforces.
  27. // https://typescript-eslint.io/rules/explicit-function-return-type/
  28. // see prettier setting in ./.prettierrc
  29. "prettier/prettier": [
  30. "error",
  31. {},
  32. {
  33. "usePrettierrc": true
  34. }
  35. ],
  36. "@typescript-eslint/no-inferrable-types": 0,
  37. "@typescript-eslint/no-unused-vars": 2,
  38. "@typescript-eslint/no-var-requires": 0,
  39. "@typescript-eslint/no-explicit-any": 0,
  40. // disable error for unused vars
  41. "no-unused-vars": 0
  42. }
  43. }