-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.mjs
33 lines (31 loc) · 979 Bytes
/
eslint.config.mjs
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
28
29
30
31
32
33
import reactHooks from 'eslint-plugin-react-hooks';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import react from 'eslint-plugin-react';
import jsxA11y from 'eslint-plugin-jsx-a11y';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
react.configs.flat.recommended,
jsxA11y.flatConfigs.recommended,
eslintPluginPrettierRecommended,
{
languageOptions: {
parserOptions: { ecmaFeatures: { jsx: true } },
},
},
{
plugins: { 'react-hooks': reactHooks },
rules: {
...reactHooks.configs.recommended.rules,
'react/no-unescaped-entities': 'off',
'@typescript-eslint/no-unused-expressions': 'off'
},
settings: {
react: {
version: "detect",
},
},
},
);