-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
47 lines (47 loc) · 831 Bytes
/
Copy path.eslintrc.js
File metadata and controls
47 lines (47 loc) · 831 Bytes
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
module.exports = {
env: {
commonjs: true,
es2020: true,
node: true,
},
extends: ['eslint:recommended', 'prettier'],
parserOptions: {
ecmaVersion: 11,
},
rules: {
'no-unused-vars': [
2,
{
vars: 'all',
args: 'none',
},
],
'array-bracket-spacing': [2, 'never'],
'arrow-spacing': [
2,
{
before: true,
after: true,
},
],
'block-spacing': [2, 'always'],
'brace-style': [2, '1tbs'],
camelcase: [
0,
{
properties: 'always',
},
],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': [
2,
{
before: false,
after: true,
},
],
'comma-style': [2, 'last'],
curly: [2, 'all'],
'dot-location': [2, 'property'],
},
};