xonecas.io
523
Tc

the-champs-timer / files

the-champs-timer / eslint.config.js

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