-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.js
40 lines (40 loc) · 851 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
40
module.exports = {
env: {
browser: false,
commonjs: true,
node: true,
es2021: true,
},
extends: ['eslint:recommended', 'prettier'],
parserOptions: {
ecmaVersion: 13,
},
root: true,
rules: {
'no-async-promise-executor': 1,
'no-unsafe-optional-chaining': 1,
'no-unreachable': 1,
'no-empty': 1,
'no-undef': 1,
'import/no-dynamic-require': 0,
'global-require': 0,
'import/prefer-default-export': 0,
'no-underscore-dangle': 0,
'no-await-in-loop': 0,
'no-restricted-syntax': 0,
'no-return-await': 0,
'no-console': 0,
'no-unused-vars': 0,
'prettier/prettier': [
'off',
{
trailingComma: 'es5',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
endOfLine: 'lf',
arrowParens: 'always',
},
],
},
}