Switched to using eslint

This commit is contained in:
Rob Moran
2017-05-21 23:21:19 +01:00
parent cb728b7efb
commit 824ccfea21
9 changed files with 330 additions and 41 deletions

18
.eslintrc Normal file
View File

@@ -0,0 +1,18 @@
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"define": true
},
rules: {
"semi": ["error"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-irregular-whitespace": ["error"],
"linebreak-style": ["warn", "unix"],
"no-undef": ["warn"],
"no-unused-vars": ["warn"]
}
}