-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
37 lines (37 loc) · 946 Bytes
/
.eslintrc.js
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
module.exports = {
extends: ['standard', 'standard-jsx', 'plugin:prettier/recommended'],
settings: {
react: {
version: '16.13',
},
},
env: {
browser: true,
node: true,
jest: true,
es6: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks', 'jest'],
rules: {
'no-shadow': 'warn',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'none',
ignoreRestSiblings: true,
},
],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/jsx-handler-names': 'warn',
'react/jsx-pascal-case': 'warn',
'react/jsx-no-target-blank': 'off',
'react/jsx-indent': 'off',
camelcase: ['error', { allow: ['alt_description'] }],
},
}