.eslintrc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "extends": [
  3. "eslint:recommended",
  4. "plugin:@typescript-eslint/recommended",
  5. "plugin:prettier/recommended"
  6. ],
  7. "parser": "@typescript-eslint/parser",
  8. "parserOptions": {
  9. "project": ["./tsconfig.server.json", "./client/tsconfig.json"]
  10. },
  11. "plugins": ["@typescript-eslint"],
  12. "rules": {
  13. "eqeqeq": ["warn", "always", { "null": "ignore" }],
  14. "no-useless-return": "warn",
  15. "no-var": "warn",
  16. "no-console": "warn",
  17. "max-len": ["warn", { "comments": 80 }],
  18. "no-param-reassign": ["warn", { "props": false }],
  19. "require-atomic-updates": 0,
  20. "@typescript-eslint/interface-name-prefix": "off",
  21. "@typescript-eslint/no-unused-vars": "off", // "warn" for production
  22. "@typescript-eslint/no-explicit-any": "off", // "warn" for production
  23. "@typescript-eslint/no-var-requires": "off",
  24. "@typescript-eslint/camelcase": "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. "es6": true,
  31. "browser": true,
  32. "node": true,
  33. "mocha": true
  34. },
  35. "globals": {
  36. "assert": true
  37. },
  38. "settings": {
  39. "react": {
  40. "version": "detect"
  41. }
  42. }
  43. }