.eslintrc.json 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "root": true,
  3. "extends": "standard",
  4. "parser": "@typescript-eslint/parser",
  5. "plugins": ["@typescript-eslint"],
  6. "env": {
  7. "browser": true
  8. },
  9. "rules": {
  10. "semi": ["error", "always"],
  11. "no-var": "error",
  12. "no-unused-vars": "off",
  13. "guard-for-in": "error",
  14. "@typescript-eslint/no-unused-vars": ["error", {
  15. "vars": "all",
  16. "args": "after-used",
  17. "ignoreRestSiblings": true
  18. }],
  19. "prefer-const": ["error", {
  20. "destructuring": "all"
  21. }],
  22. "standard/no-callback-literal": "off"
  23. },
  24. "parserOptions": {
  25. "ecmaVersion": 6,
  26. "sourceType": "module"
  27. },
  28. "overrides": [
  29. {
  30. "files": "*.ts",
  31. "rules": {
  32. "no-undef": "off",
  33. "no-redeclare": "off",
  34. "@typescript-eslint/no-redeclare": ["error"],
  35. "no-use-before-define": "off"
  36. }
  37. },
  38. {
  39. "files": "*.d.ts",
  40. "rules": {
  41. "no-useless-constructor": "off",
  42. "@typescript-eslint/no-unused-vars": "off"
  43. }
  44. }
  45. ]
  46. }