using husky+lint-staged for enforced linting mwahahahah

v1.18.x
Julian Lam 6 years ago
parent 4bb56a5112
commit fb6009eceb

@ -14,7 +14,14 @@
"lint": "eslint --cache ./nodebb .", "lint": "eslint --cache ./nodebb .",
"pretest": "npm run lint", "pretest": "npm run lint",
"test": "nyc --reporter=html --reporter=text-summary mocha", "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": { "dependencies": {
"ace-builds": "^1.2.9", "ace-builds": "^1.2.9",
@ -123,7 +130,9 @@
"eslint-plugin-import": "2.14.0", "eslint-plugin-import": "2.14.0",
"grunt": "1.0.3", "grunt": "1.0.3",
"grunt-contrib-watch": "1.1.0", "grunt-contrib-watch": "1.1.0",
"husky": "^1.1.2",
"jsdom": "12.2.0", "jsdom": "12.2.0",
"lint-staged": "^7.3.0",
"mocha": "5.2.0", "mocha": "5.2.0",
"mocha-lcov-reporter": "1.3.0", "mocha-lcov-reporter": "1.3.0",
"nyc": "13.0.1", "nyc": "13.0.1",

Loading…
Cancel
Save