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