-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy patheslint.config.mjs
More file actions
42 lines (41 loc) · 879 Bytes
/
eslint.config.mjs
File metadata and controls
42 lines (41 loc) · 879 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import js from '@eslint/js';
import react from 'eslint-plugin-react';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
export default [
js.configs.recommended,
{
files: ['**/*.{js,jsx}'],
plugins: {
react,
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
...globals.node,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
settings: {
react: {
version: '18.2.0',
},
},
rules: {
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
'react/prop-types': 'off',
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
},
},
prettier,
{
ignores: ['build/', '.docusaurus/', 'node_modules/'],
},
];