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
610 B

  1. import js from '@eslint/js'
  2. import globals from 'globals'
  3. import reactHooks from 'eslint-plugin-react-hooks'
  4. import reactRefresh from 'eslint-plugin-react-refresh'
  5. import tseslint from 'typescript-eslint'
  6. import { globalIgnores } from 'eslint/config'
  7. export default tseslint.config([
  8. globalIgnores(['dist']),
  9. {
  10. files: ['**/*.{ts,tsx}'],
  11. extends: [
  12. js.configs.recommended,
  13. tseslint.configs.recommended,
  14. reactHooks.configs['recommended-latest'],
  15. reactRefresh.configs.vite,
  16. ],
  17. languageOptions: {
  18. ecmaVersion: 2020,
  19. globals: globals.browser,
  20. },
  21. },
  22. ])