.eslintrc.json 903 B

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