Add lint config
This commit is contained in:
parent
a3f720bf36
commit
9b97e74d8c
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2019
|
||||
},
|
||||
"rules": {
|
||||
"indent": [
|
||||
2,
|
||||
2,
|
||||
{ "SwitchCase": 1 /*, "VariableDeclarator": { "var": 2} */},
|
||||
|
||||
],
|
||||
"quotes": [
|
||||
0,
|
||||
"double"
|
||||
],
|
||||
"linebreak-style": [
|
||||
2,
|
||||
"unix"
|
||||
],
|
||||
"semi": [
|
||||
2,
|
||||
"always"
|
||||
],
|
||||
"no-console": [
|
||||
0
|
||||
],
|
||||
},
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true,
|
||||
"mocha": true
|
||||
},
|
||||
"extends": "eslint:recommended"
|
||||
}
|
Loading…
Reference in New Issue