|
|
|
@ -3,11 +3,13 @@ import globals from 'globals'
|
|
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
|
import { defineConfig } from 'eslint/config'
|
|
|
|
import eslintConfigPrettier from 'eslint-config-prettier/flat'
|
|
|
|
import eslintConfigPrettier from 'eslint-config-prettier'
|
|
|
|
|
|
|
|
|
|
|
|
export default defineConfig([
|
|
|
|
export default defineConfig([
|
|
|
|
globalIgnores(['dist']),
|
|
|
|
{
|
|
|
|
|
|
|
|
ignores: ['dist'],
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
files: ['**/*.{ts,tsx}'],
|
|
|
|
files: ['**/*.{ts,tsx}'],
|
|
|
|
extends: [
|
|
|
|
extends: [
|
|
|
|
@ -15,12 +17,11 @@ export default defineConfig([
|
|
|
|
tseslint.configs.recommended,
|
|
|
|
tseslint.configs.recommended,
|
|
|
|
reactHooks.configs['recommended-latest'],
|
|
|
|
reactHooks.configs['recommended-latest'],
|
|
|
|
reactRefresh.configs.vite,
|
|
|
|
reactRefresh.configs.vite,
|
|
|
|
prettier,
|
|
|
|
eslintConfigPrettier,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
languageOptions: {
|
|
|
|
languageOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
globals: globals.browser,
|
|
|
|
globals: globals.browser,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
eslintConfigPrettier,
|
|
|
|
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|