Add lint config

This commit is contained in:
Christopher Jones 2020-03-21 08:01:25 +11:00
parent a3f720bf36
commit 9b97e74d8c
1 changed files with 34 additions and 0 deletions

34
.eslintrc Normal file
View File

@ -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"
}