.eslintrc.json 862 B

12345678910111213141516171819202122232425262728293031323334353637
  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": [
  21. "error",
  22. { "argsIgnorePattern": "^_" }
  23. ],
  24. "@typescript-eslint/camelcase": "off",
  25. "space-before-function-paren": ["error", "always"]
  26. },
  27. "overrides": [
  28. {
  29. "files": ["*.js", "*.jsx"],
  30. "rules": {
  31. "@typescript-eslint/explicit-member-accessibility": 0,
  32. "@typescript-eslint/explicit-function-return-type": 0
  33. }
  34. }
  35. ]
  36. }