.eslintrc.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. "jest",
  16. "prettier"
  17. ],
  18. "extends": [
  19. "prettier",
  20. "plugin:@typescript-eslint/recommended",
  21. // Uncomment the following lines to enable the recommended rules for type checking.
  22. // "plugin:@typescript-eslint/recommended-requiring-type-checking",
  23. "plugin:jest/recommended"
  24. ],
  25. "rules": {
  26. // The following rule is enabled only to supplement the inline suppression
  27. // examples, and because it is not a recommended rule, you should either
  28. // disable it, or understand what it enforces.
  29. // https://typescript-eslint.io/rules/explicit-function-return-type/
  30. // see prettier setting in ./.prettierrc
  31. "prettier/prettier": [
  32. "error",
  33. {},
  34. {
  35. "usePrettierrc": true
  36. }
  37. ],
  38. "@typescript-eslint/no-inferrable-types": 0,
  39. "@typescript-eslint/no-unused-vars": 2,
  40. "@typescript-eslint/no-var-requires": 0,
  41. "@typescript-eslint/no-explicit-any": 0,
  42. // disable error for unused vars
  43. "no-unused-vars": 0
  44. }
  45. }