Some linter setup

This commit is contained in:
Aarni Halinen
2020-06-16 19:18:11 +03:00
parent d3350c06e0
commit ef78ef9dcd
5 changed files with 615 additions and 13 deletions
+13 -3
View File
@@ -3,9 +3,11 @@
"version": "1.0.0",
"description": "A modern web app using a Django backend and an Angular frontend.",
"scripts": {
"test": "eslint . && remark .",
"eslint": "eslint .",
"remark": "remark ."
"lint": "run-p lint:js lint:md lint:py",
"lint:js": "eslint .",
"lint:md": "remark .",
"lint:py": "pycodestyle --config=setup.cfg --count .",
"lint:py-type": "pyright"
},
"repository": {
"type": "git",
@@ -15,6 +17,9 @@
"license": "ISC",
"dependencies": {
"eslint": "3.19.0",
"husky": "4.2.5",
"npm-run-all": "4.1.5",
"pyright": "1.1.42",
"remark-cli": "7.0.0",
"remark-preset-lint-recommended": "3.0.3"
},
@@ -22,5 +27,10 @@
"plugins": [
"remark-preset-lint-recommended"
]
},
"husky": {
"hooks": {
"pre-push": "npm run lint"
}
}
}