forked from smooth-code/smooth-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (30 loc) Β· 940 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
module.exports = {
root: true,
extends: ['airbnb', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
env: {
browser: true,
jest: true,
},
plugins: ['react-hooks'],
rules: {
'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
'react/forbid-prop-types': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/sort-comp': 'off',
'react/destructuring-assignment': 'off',
'react/forbid-foreign-prop-types': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'no-plusplus': 'off',
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-nested-ternary': 'off',
'no-shadow': 'off',
'default-case': 'off',
'no-underscore-dangle': ['off', { allow: ['__smoothUI', '__scTheme'] }],
},
}