.eslintrc.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. module.exports = {
  2. parser: '@typescript-eslint/parser',
  3. parserOptions: {
  4. project: 'tsconfig.json',
  5. tsconfigRootDir: __dirname,
  6. sourceType: 'module',
  7. },
  8. plugins: ['@typescript-eslint/eslint-plugin', 'import'],
  9. extends: [
  10. 'plugin:@typescript-eslint/recommended',
  11. 'plugin:prettier/recommended',
  12. ],
  13. root: true,
  14. env: {
  15. node: true,
  16. jest: true,
  17. },
  18. ignorePatterns: ['.eslintrc.js'],
  19. rules: {
  20. '@typescript-eslint/interface-name-prefix': 'off',
  21. '@typescript-eslint/explicit-function-return-type': 'off',
  22. '@typescript-eslint/explicit-module-boundary-types': 'off',
  23. '@typescript-eslint/no-explicit-any': 'off',
  24. quotes: [2, "single"],
  25. semi: ["error", "never"],
  26. 'import/order': [
  27. 2,
  28. {
  29. 'pathGroups': [
  30. {
  31. pattern: '@/**',
  32. group: 'external',
  33. position: 'after',
  34. },
  35. ],
  36. 'alphabetize': {
  37. order: 'asc',
  38. caseInsensitive: false
  39. },
  40. 'newlines-between': 'always-and-inside-groups',
  41. 'warnOnUnassignedImports': true,
  42. },
  43. ],
  44. },
  45. };