⚙️ Add linting and CI infrastructure (#85)

* Add husky and lint-staged, run lint and test in precommit hook

* Add CI for test and lint

* Apply eslint fixes in precommit hook
This commit is contained in:
Tatiana Mac
2020-03-05 10:17:19 -08:00
committed by GitHub
parent 1d3fdfc6e9
commit ca07ab31f6
3 changed files with 808 additions and 0 deletions

View File

@@ -33,6 +33,17 @@
"url": "https://github.com/tatianamac/selfdefined/issues"
},
"homepage": "https://github.com/tatianamac/selfdefined#readme",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"11ty/**/*.js": [
"npm run lint:js -- --fix",
"npm run test"
]
},
"dependencies": {
"@11ty/eleventy": "^0.9.0",
"markdown-it-anchor": "^5.2.5",
@@ -46,6 +57,8 @@
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"esm": "^3.2.25",
"husky": "^4.2.3",
"lint-staged": "^10.0.7",
"parcel-bundler": "^1.12.4",
"prettier": "^1.19.1",
"sass": "^1.23.7",