.eslintrc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "extends": ["airbnb-base", "prettier", "plugin:@typescript-eslint/recommended", "plugin:vue/essential"],
  3. "env": {
  4. "browser": true,
  5. "node": true,
  6. "jest": true,
  7. "es6": true
  8. },
  9. "globals": {
  10. "cy": "readonly"
  11. },
  12. "plugins": ["vue", "@typescript-eslint"],
  13. "parserOptions": {
  14. "parser": "@typescript-eslint/parser",
  15. "sourceType": "module",
  16. "allowImportExportEverywhere": true,
  17. "ecmaFeatures": {
  18. "jsx": true
  19. }
  20. },
  21. "rules": {
  22. "@typescript-eslint/ban-ts-ignore": 0,
  23. "@typescript-eslint/no-explicit-any": 0,
  24. "@typescript-eslint/no-require-imports": 0,
  25. "@typescript-eslint/no-var-requires": 0,
  26. "@typescript-eslint/prefer-for-of": 0,
  27. "@typescript-eslint/explicit-function-return-type": 0,
  28. "@typescript-eslint/explicit-module-boundary-types": 0,
  29. "import/no-extraneous-dependencies": 0,
  30. "import/extensions": 0,
  31. "import/no-unresolved": 0,
  32. "indent": [2, 2],
  33. "camelcase": 0,
  34. "class-methods-use-this": 0,
  35. "new-cap": 0,
  36. "no-new": 1,
  37. "no-shadow": 0,
  38. "no-console": 0,
  39. "no-underscore-dangle": 0,
  40. "no-confusing-arrow": 0,
  41. "no-plusplus": [
  42. "error",
  43. {
  44. "allowForLoopAfterthoughts": true
  45. }
  46. ],
  47. "no-param-reassign": 0,
  48. "func-style": 0,
  49. "prefer-default-export": 0,
  50. "max-len": 0,
  51. "consistent-return": 0
  52. },
  53. "overrides": [
  54. {
  55. "files": ["*.vue"],
  56. "rules": {
  57. "vue/return-in-computed-property": 1,
  58. "vue/order-in-components": 2,
  59. "vue/component-name-in-template-casing": [2, "kebab-case"],
  60. "vue/require-default-prop": 0,
  61. "@typescript-eslint/explicit-module-boundary-types": "off",
  62. "import/order": "off"
  63. }
  64. },
  65. {
  66. "files": ["src/*", "*.js"],
  67. "rules": {
  68. "no-var-requires": 0,
  69. "no-console": 0,
  70. "no-unused-expressions": 0,
  71. "@typescript-eslint/explicit-module-boundary-types": "off",
  72. "import/order": "off"
  73. }
  74. }
  75. ]
  76. }