-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
48 lines (48 loc) · 1.28 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
extends: [
'airbnb',
'prettier',
'plugin:import/errors',
'plugin:import/warnings',
],
parser: 'babel-eslint',
plugins: [
'react',
'jsx-a11y',
'react-hooks',
'@emotion',
'prettier',
'import',
],
env: {
browser: true,
node: true,
},
rules: {
'consistent-return': 0,
'no-param-reassign': 0,
'import/no-unresolved': 0,
'import/extensions': 0,
'import/prefer-default-export': 0,
'import/order': ['error', { 'newlines-between': 'always' }],
'import/no-extraneous-dependencies': 0,
'import/no-named-as-default': 'off',
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react/no-danger': 0,
'react/jsx-fragments': [1, 'element'],
'react/forbid-prop-types': 0,
'react/jsx-filename-extension': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-props-no-spreading': 0,
'react/no-unescaped-entities': 0,
'react/no-unused-prop-types': 1,
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 0,
'prettier/prettier': 'error',
// Next.js <Link> component doesn't play nice with anchor validation
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/anchor-has-content': 0,
'no-underscore-dangle': 0,
},
}