.eslintrc.cjs 673 B

12345678910111213141516171819202122232425262728
  1. /* eslint-env node */
  2. module.exports = {
  3. root: true,
  4. env: { browser: true, es2020: true },
  5. extends: [
  6. 'eslint:recommended',
  7. 'plugin:@typescript-eslint/recommended',
  8. 'plugin:react-hooks/recommended',
  9. 'prettier',
  10. ],
  11. parser: '@typescript-eslint/parser',
  12. parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
  13. plugins: ['react-refresh'],
  14. rules: {
  15. 'react-refresh/only-export-components': 'warn',
  16. '@typescript-eslint/no-unused-vars': [
  17. 'error',
  18. {
  19. varsIgnorePattern: '^_',
  20. argsIgnorePattern: '^_',
  21. destructuredArrayIgnorePattern: '^_',
  22. ignoreRestSiblings: true,
  23. },
  24. ],
  25. },
  26. };