.eslintrc.js 749 B

123456789101112131415161718192021222324252627
  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'],
  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. "no-empty-function": "off",
  25. "@typescript-eslint/no-empty-function": "error"
  26. },
  27. };