.eslintrc.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "extends": [
  3. "eslint:recommended",
  4. "airbnb-base"
  5. ],
  6. "parserOptions": {
  7. "ecmaVersion": 11,
  8. "sourceType": "module",
  9. "project": "./tsconfig.json"
  10. },
  11. "env": {
  12. "node": true,
  13. "browser": true,
  14. "es2020": true
  15. },
  16. "rules": {
  17. "class-methods-use-this": "off",
  18. "import/extensions": [
  19. "error",
  20. "ignorePackages",
  21. {
  22. "js": "never",
  23. "ts": "never"
  24. }
  25. ],
  26. "import/prefer-default-export": "off",
  27. "import/no-extraneous-dependencies": "off",
  28. "indent": [
  29. "error",
  30. "tab"
  31. ],
  32. "no-console": "off",
  33. "no-tabs": [
  34. "error",
  35. {
  36. "allowIndentationTabs": true
  37. }
  38. ],
  39. "no-unused-vars": [
  40. "error",
  41. {
  42. "argsIgnorePattern": "^_",
  43. "varsIgnorePattern": "^_"
  44. }
  45. ],
  46. "quotes": [
  47. "error",
  48. "double"
  49. ]
  50. },
  51. "overrides": [
  52. {
  53. "files": [
  54. "*.ts"
  55. ],
  56. "parser": "@typescript-eslint/parser",
  57. "extends": [
  58. "plugin:import/typescript",
  59. "plugin:@typescript-eslint/recommended"
  60. ],
  61. "plugins": [
  62. "@typescript-eslint"
  63. ],
  64. "rules": {
  65. "@typescript-eslint/ban-ts-comment": "off"
  66. }
  67. },
  68. {
  69. "files": [
  70. "*.svelte"
  71. ],
  72. "plugins": [
  73. "svelte3"
  74. ],
  75. "processor": "svelte3/svelte3",
  76. "rules": {
  77. "import/first": "off",
  78. "import/no-duplicates": "off",
  79. "import/no-mutable-exports": "off",
  80. "import/no-mutable-unresolved": "off",
  81. "no-undef": "off",
  82. "no-unused-vars": "off"
  83. }
  84. }
  85. ]
  86. }