forked from microbit-more/mbit-more-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 874 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
module.exports = {
"extends": [
"eslint:recommended"
],
"env": {
"es6": true,
"node": true,
"browser": true,
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017,
},
"globals":{
},
"rules":{
'arrow-body-style': [2, 'as-needed'],
'arrow-parens': [2, 'as-needed'],
'arrow-spacing': [2, {
before: true,
after: true
}],
'indent': [2, 4, {"SwitchCase": 1}],
'no-confusing-arrow': [2],
'no-useless-computed-key': [2],
'no-useless-constructor': [2],
'no-var': [2],
'prefer-arrow-callback': [2],
'prefer-const': [2, {destructuring: 'all'}],
'prefer-template': [2],
'rest-spread-spacing': [2, 'never'],
'template-curly-spacing': [2, 'never']
}
};