mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-03 22:30:40 +02:00
using husky+lint-staged for enforced linting mwahahahah
This commit is contained in:
@@ -14,7 +14,14 @@
|
||||
"lint": "eslint --cache ./nodebb .",
|
||||
"pretest": "npm run lint",
|
||||
"test": "nyc --reporter=html --reporter=text-summary mocha",
|
||||
"coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage"
|
||||
"coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage",
|
||||
"precommit": "lint-staged"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"eslint --fix",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"ace-builds": "^1.2.9",
|
||||
@@ -123,7 +130,9 @@
|
||||
"eslint-plugin-import": "2.14.0",
|
||||
"grunt": "1.0.3",
|
||||
"grunt-contrib-watch": "1.1.0",
|
||||
"husky": "^1.1.2",
|
||||
"jsdom": "12.2.0",
|
||||
"lint-staged": "^7.3.0",
|
||||
"mocha": "5.2.0",
|
||||
"mocha-lcov-reporter": "1.3.0",
|
||||
"nyc": "13.0.1",
|
||||
|
||||
Reference in New Issue
Block a user