-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.eslintrc.js
More file actions
43 lines (43 loc) · 1003 Bytes
/
.eslintrc.js
File metadata and controls
43 lines (43 loc) · 1003 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
43
module.exports = {
env: {
browser: true,
},
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'standard-jsx',
'prettier',
],
plugins: [],
rules: {
radix: 'off',
'react/react-in-jsx-scope': 'off', // We use ProvidePlugin
'react/prop-types': 'off', // We have TypeScript and don't care about JS interop
'react/jsx-handler-names': 'off', // no
},
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './tsconfig.playwright.json'],
},
overrides: [
{
files: ['lib/**/*', '*.config*.[jt]s?(x)'],
parser: 'espree',
},
{
files: ['*.test.[jt]s?(x)'],
extends: [
'plugin:jest/recommended',
'plugin:testing-library/react',
'plugin:jest-dom/recommended',
],
},
],
settings: {
react: {
// Set a recent React version to satisfy the plugin
version: '16.13.1',
},
},
ignorePatterns: ['index.js', 'index.d.ts'],
}