.eslintrc.js 882 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. parser: '@typescript-eslint/parser',
  3. parserOptions: {
  4. project: 'tsconfig.json',
  5. sourceType: 'module',
  6. },
  7. plugins: ['@typescript-eslint/eslint-plugin'],
  8. extends: [
  9. 'plugin:@typescript-eslint/recommended',
  10. 'plugin:prettier/recommended',
  11. ],
  12. root: true,
  13. env: {
  14. node: true,
  15. jest: true,
  16. },
  17. ignorePatterns: ['.eslintrc.js'],
  18. rules: {
  19. '@typescript-eslint/interface-name-prefix': 'off',
  20. '@typescript-eslint/explicit-function-return-type': 'off',
  21. '@typescript-eslint/explicit-module-boundary-types': 'off',
  22. '@typescript-eslint/no-explicit-any': 'off',
  23. '@typescript-eslint/no-unused-vars': 'off',
  24. 'prefer-const': 'off',
  25. '@typescript-eslint/no-inferrable-types': 'off',
  26. '@typescript-eslint/no-empty-function': 'off',
  27. 'prettier/prettier': 0,
  28. '@typescript-eslint/ban-types': 'off',
  29. },
  30. };