.eslintrc.cjs 580 B

12345678910111213141516171819202122
  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. indent: ["error", 2, { SwitchCase: 1 }],
  14. quotes: [2, "single"],
  15. semi: ["error", "never"],
  16. 'react-refresh/only-export-components': [
  17. 'warn',
  18. { allowConstantExport: true },
  19. ],
  20. },
  21. }