-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
65 lines (65 loc) · 1.74 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* @Author: your name
* @Date: 2021-07-01 11:42:41
* @LastEditTime: 2021-07-20 22:59:52
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /icp-dao/Users/chenglei/work/idena-explorer/.eslintrc.js
*/
// eslint-disable-next-line no-undef
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
React: 'writable'
},
settings: {
react: {
version: 'detect'
}
},
rules: {
indent: [2, 4],
'react/prop-types': [0],
'no-shadow': [0],
'no-use-before-define': ['error', 'nofunc'],
'no-nested-ternary': [0],
'react/react-in-jsx-scope': 'off',
'react/no-unescaped-entities': 'off',
'@next/next/no-page-custom-font': 'off',
'react/jsx-no-target-blank': [0],
'react/display-name': [0],
'space-before-function-paren': ['error', 'never'],
'jsx-a11y/anchor-is-valid': [
0
// {
// components: ['Link'],
// specialLink: ['hrefLeft', 'hrefRight'],
// aspects: ['noHref', 'invalidHref', 'preferButton']
// }
]
},
plugins: ['react', 'react-hooks'],
extends: [
'eslint:recommended',
'standard',
// 'plugin:prettier/recommended',
'plugin:jsx-a11y/recommended',
'plugin:react/recommended'
]
// extends: ["eslint:recommended", "nextjs"],
}