add lint tasks to package.json
parent
f6e6445c45
commit
4f13eae80a
|
@ -0,0 +1,5 @@
|
|||
cabana
|
||||
certs
|
||||
node_modules
|
||||
static
|
||||
test
|
|
@ -4,29 +4,13 @@
|
|||
],
|
||||
"env": {
|
||||
"es6": true,
|
||||
"browser": false
|
||||
"node": true,
|
||||
"browser": false // do we need this?
|
||||
},
|
||||
"rules": {
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"windows"
|
||||
],
|
||||
"brace-style": [
|
||||
"error",
|
||||
"stroustrup"
|
||||
],
|
||||
"comma-dangle": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"no-unused-vars": [
|
||||
"warn"
|
||||
],
|
||||
"no-var": [
|
||||
"off"
|
||||
],
|
||||
"one-var": [
|
||||
"off"
|
||||
]
|
||||
// TODO: fix and remove
|
||||
"no-unused-vars": ["warn", { "vars": "all", "args": "after-used", "ignoreRestSiblings": true }],
|
||||
"no-var": ["off"],
|
||||
"one-var": ["off"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
"scripts": {
|
||||
"test": "mocha",
|
||||
"start": "node server.js",
|
||||
"prod": "node server.js && node worker.js"
|
||||
"prod": "node server.js && node worker.js",
|
||||
"lint": "eslint . --ext .js",
|
||||
"lint:fix": "eslint . --ext .js --fix"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
|
|
Loading…
Reference in New Issue