-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
34 lines (34 loc) · 1.15 KB
/
.eslintrc.js
File metadata and controls
34 lines (34 loc) · 1.15 KB
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname
},
settings: {
react: {
version: 'detect'
}
},
plugins: ['@typescript-eslint'],
extends: [
'eslint-config-standard-with-typescript',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
// Need to turn off rules, which conflicts with prettier
'prettier'
],
// Generally it's preferable to stick with ts-standard rules set.
// If you are adding or disabling anything, please add related comments.
rules: {
// will put it back as a part of #646
'@typescript-eslint/strict-boolean-expressions': 'off',
// It doesn't work well with Typescript https://github.com/yannickcr/eslint-plugin-react/issues/2353
'react/prop-types': 'off',
// We need to mark async function call in useEffect, since we can't use async functions there
'no-void': ['error', { allowAsStatement: true }],
// This hurts readability of every more or less long text, which is annoying
'react/no-unescaped-entities': 'off'
},
ignorePatterns: ['.eslintrc.js']
}