Some linter setup
This commit is contained in:
+13
-3
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user