-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patheslint.config.mjs
More file actions
27 lines (26 loc) · 887 Bytes
/
eslint.config.mjs
File metadata and controls
27 lines (26 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import js from '@eslint/js'
import {defineConfig, globalIgnores} from 'eslint/config'
import eslintConfigPrettier from 'eslint-config-prettier/flat'
import reactPlugin from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import simpleImportSort from 'eslint-plugin-simple-import-sort'
import tseslint from 'typescript-eslint'
export default defineConfig([
globalIgnores(['dist', 'website/.next', 'website/next-env.d.ts']),
js.configs.recommended,
tseslint.configs.recommended,
eslintConfigPrettier,
reactHooks.configs.flat.recommended,
{
plugins: {
'simple-import-sort': simpleImportSort,
'react': reactPlugin,
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'react-hooks/exhaustive-deps': 'error',
'@typescript-eslint/no-explicit-any': 'off',
},
},
])