.eslintrc.js 755 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. browser: true,
  6. },
  7. extends: ['airbnb-base', 'plugin:prettier/recommended'],
  8. plugins: ['@typescript-eslint'],
  9. parser: '@typescript-eslint/parser',
  10. parserOptions: {
  11. sourceType: 'module',
  12. project: './tsconfig.json',
  13. createDefaultProgram: true,
  14. },
  15. rules: {
  16. 'prettier/prettier': [
  17. 'error',
  18. {
  19. singleQuote: true,
  20. trailingComma: 'all',
  21. },
  22. ],
  23. 'no-unused-vars': 'off',
  24. '@typescript-eslint/no-unused-vars': 'error',
  25. 'no-useless-constructor': 'off',
  26. '@typescript-eslint/no-useless-constructor': 'error',
  27. },
  28. settings: {
  29. 'import/resolver': {
  30. node: {
  31. extensions: ['.js', '.ts'],
  32. },
  33. },
  34. },
  35. };