Enable linter
This commit is contained in:
12
.eslintrc.json
Normal file
12
.eslintrc.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"extends": "strongloop",
|
||||||
|
"rules": {
|
||||||
|
"max-len": [2, 120, 8]
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 6
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"mocha": true
|
||||||
|
}
|
||||||
|
}
|
@ -15,9 +15,12 @@
|
|||||||
"smart-buffer": "~4.0.1"
|
"smart-buffer": "~4.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"eslint": "^4.19.1",
|
||||||
|
"eslint-config-strongloop": "^2.1.0",
|
||||||
"mocha": "^5.1.1"
|
"mocha": "^5.1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha test/*.spec.js"
|
"test": "mocha test/*.spec.js",
|
||||||
|
"pretest": "eslint --ignore-path .gitignore ."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user