.eslintrc.js 758 B

123456789101112131415161718192021222324
  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', 'simple-import-sort'],
  9. extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
  10. root: true,
  11. env: {
  12. node: true,
  13. jest: true,
  14. },
  15. ignorePatterns: ['.eslintrc.js'],
  16. rules: {
  17. '@typescript-eslint/interface-name-prefix': 'off',
  18. '@typescript-eslint/explicit-function-return-type': 'off',
  19. '@typescript-eslint/explicit-module-boundary-types': 'off',
  20. '@typescript-eslint/no-explicit-any': 'off',
  21. 'simple-import-sort/imports': 'error',
  22. 'simple-import-sort/exports': 'error',
  23. },
  24. };