-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (36 loc) · 913 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
38
39
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
},
extends: [
'plugin:react/recommended',
'airbnb-typescript-prettier',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
settings: {
'import/resolver': {
typescript: {},
},
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
},
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'react/react-in-jsx-scope': 'off', //not required in Next.js
'jsx-a11y/anchor-is-valid': 'off', //Link instead href in Next.js
'react/require-default-props': 'off', //Ts. doesn't need use prop-types
'react/prop-types': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.ts', '.tsx'] }],
'react/jsx-props-no-spreading': 'off', //personal preference
'no-plusplus': 'off',
'no-minusminus': 'off',
'react/no-unescaped-entities': 0,
},
};