-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 1.08 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
module.exports = {
extends: [
'airbnb',
'prettier',
'prettier/react',
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings',
],
parserOptions: {
ecmaVersion: 2020,
},
plugins: ['react', 'jsx-a11y', 'react-hooks', 'prettier', 'import'],
rules: {
'import/no-unresolved': 0,
'import/extensions': 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/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,
},
}