24 lines
692 B
JavaScript
24 lines
692 B
JavaScript
import globals from 'globals'
|
|
import pluginJs from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
import pluginReact from 'eslint-plugin-react'
|
|
import eslintConfigPrettier from 'eslint-config-prettier'
|
|
|
|
export default [
|
|
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
|
|
{ ignores: ['**/components/ui', '**/src-tauri'] },
|
|
{ languageOptions: { globals: globals.browser } },
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
settings: {
|
|
react: {
|
|
version: 'detect'
|
|
}
|
|
}
|
|
},
|
|
pluginReact.configs.flat.recommended,
|
|
eslintConfigPrettier,
|
|
{ rules: { 'react/react-in-jsx-scope': 'off' } }
|
|
]
|