.eslintrc.json 941 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "env": {
  3. "browser": true,
  4. "es6": true,
  5. "node": true
  6. },
  7. "parser": "@typescript-eslint/parser",
  8. "plugins": ["@typescript-eslint"],
  9. "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
  10. "globals": {
  11. "Atomics": "readonly",
  12. "SharedArrayBuffer": "readonly"
  13. },
  14. "parserOptions": {
  15. "ecmaVersion": 2018,
  16. "sourceType": "module"
  17. },
  18. "rules": {
  19. "camelcase": "off",
  20. "no-unused-vars": "off",
  21. "@typescript-eslint/no-unused-vars": [
  22. "error",
  23. { "argsIgnorePattern": "^_" }
  24. ],
  25. "@typescript-eslint/camelcase": "off",
  26. "space-before-function-paren": "off",
  27. "@typescript-eslint/space-before-function-paren": ["error", "always"]
  28. },
  29. "overrides": [
  30. {
  31. "files": ["*.js", "*.jsx"],
  32. "rules": {
  33. "@typescript-eslint/explicit-member-accessibility": 0,
  34. "@typescript-eslint/explicit-function-return-type": 0
  35. }
  36. }
  37. ]
  38. }