.eslintrc.cjs 500 B

1234567891011121314151617181920212223
  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: [
  10. 'dist',
  11. '.eslintrc.cjs',
  12. 'src/components/ui',
  13. 'tailwind.config.js',
  14. ],
  15. parser: '@typescript-eslint/parser',
  16. plugins: ['react-refresh'],
  17. rules: {
  18. 'react-refresh/only-export-components': [
  19. 'warn',
  20. { allowConstantExport: true },
  21. ],
  22. },
  23. }