You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
765 B

7 months ago
  1. module.exports = {
  2. root: true,
  3. env: { browser: true, es2020: true },
  4. extends: [
  5. 'eslint:recommended',
  6. 'plugin:@typescript-eslint/recommended',
  7. 'plugin:react-hooks/recommended',
  8. ],
  9. ignorePatterns: [ 'dist', '.eslintrc.cjs' ],
  10. parser: '@typescript-eslint/parser',
  11. plugins: [ 'react-refresh' ],
  12. rules: {
  13. 'react-refresh/only-export-components': [
  14. 'warn',
  15. { allowConstantExport: true },
  16. ],
  17. '@typescript-eslint/ban-ts-comment': [ 'error', {
  18. 'ts-expect-error': 'allow-with-description',
  19. 'ts-ignore': 'allow-with-description',
  20. 'minimumDescriptionLength': 10
  21. } ],
  22. '@typescript-eslint/no-explicit-any': 'off',
  23. },
  24. }