.eslintrc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "extends": [
  3. "eslint:recommended",
  4. "plugin:@typescript-eslint/eslint-recommended",
  5. "plugin:@typescript-eslint/recommended",
  6. "prettier",
  7. "prettier/@typescript-eslint"
  8. ],
  9. "parser": "@typescript-eslint/parser",
  10. "parserOptions": {
  11. "project": "./tsconfig.server.json",
  12. },
  13. "plugins": ["@typescript-eslint"],
  14. "rules": {
  15. "eqeqeq": ["warn", "always", { "null": "ignore" }],
  16. "no-useless-return": "warn",
  17. "no-var": "warn",
  18. "max-len": ["warn", { "comments": 80 }],
  19. "no-param-reassign": ["warn", { "props": false }],
  20. "require-atomic-updates": 0,
  21. "@typescript-eslint/interface-name-prefix": "off",
  22. "@typescript-eslint/no-unused-vars": "off", // "warn" for production
  23. "@typescript-eslint/no-explicit-any": "off", // "warn" for production
  24. "@typescript-eslint/no-var-requires": "off",
  25. "@typescript-eslint/no-object-literal-type-assertion": "off",
  26. "@typescript-eslint/no-parameter-properties": "off",
  27. "@typescript-eslint/explicit-function-return-type": "off"
  28. },
  29. "env": {
  30. "browser": true,
  31. "node": true,
  32. "mocha": true
  33. },
  34. "globals": {
  35. "assert": true
  36. },
  37. "settings": {
  38. "react": {
  39. "version": "detect"
  40. }
  41. },
  42. }