.eslintrc.json 880 B

1234567891011121314151617181920212223242526272829303132333435363738
  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": ["error", "always"]
  27. },
  28. "overrides": [
  29. {
  30. "files": ["*.js", "*.jsx"],
  31. "rules": {
  32. "@typescript-eslint/explicit-member-accessibility": 0,
  33. "@typescript-eslint/explicit-function-return-type": 0
  34. }
  35. }
  36. ]
  37. }