-
Notifications
You must be signed in to change notification settings - Fork 102
/
eslint.config.mjs
40 lines (36 loc) · 977 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
34
35
36
37
38
39
40
import react from 'eslint-plugin-react';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import js from '@eslint/js';
import pluginPromise from 'eslint-plugin-promise';
export default [
js.configs.recommended,
pluginPromise.configs['flat/recommended'],
prettierRecommended,
{
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
...react.configs.flat.recommended,
},
{
ignores: ['.docusaurus/', '**/*tests/', '**/*build/'],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/prop-types': 'off',
'prettier/prettier': ['error'],
},
},
];