.eslintrc.json 746 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "extends": "standard",
  3. "parser": "@typescript-eslint/parser",
  4. "plugins": ["@typescript-eslint"],
  5. "env": {
  6. "browser": true
  7. },
  8. "rules": {
  9. "semi": ["error", "always"],
  10. "no-var": "error",
  11. "no-unused-vars": 0,
  12. "no-global-assign": 0,
  13. "guard-for-in": 2,
  14. "@typescript-eslint/no-unused-vars": ["error", {
  15. "vars": "all",
  16. "args": "after-used",
  17. "ignoreRestSiblings": false
  18. }],
  19. "prefer-const": ["error", {
  20. "destructuring": "all"
  21. }],
  22. "node/no-deprecated-api": 0
  23. },
  24. "parserOptions": {
  25. "ecmaVersion": 6,
  26. "sourceType": "module"
  27. },
  28. "overrides": [
  29. {
  30. "files": "*.js",
  31. "rules": {
  32. "@typescript-eslint/no-unused-vars": "off"
  33. }
  34. }
  35. ]
  36. }