File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ # Activate venv if needed
2+ source venv/bin/activate # adjust if using .venv or poetry
13
24echo "Linting NodeJS code with eslint..."
3- eslint . --ext .js --ext .js.dist
5+ npx lint-staged
6+
7+ # eslint . --ext .js --ext .js.dist
48
59echo "Linting python code with Flake8..."
6- ./venv/bin/ flake8 ./misc
10+ flake8 ./misc
711
812echo "Linting python code with PyLint..."
9- ./venv/bin/ pylint ./misc
13+ pylint ./misc
Original file line number Diff line number Diff line change 1919 "lint-fix" : " eslint . --ext .js --ext .js.dist --fix" ,
2020 "prepare" : " husky"
2121 },
22+ "lint-staged" : {
23+ "*.{js,js.dist}" : " eslint --fix" ,
24+ "*.{py,py.dist}" : [ " flake8" ]
25+ },
2226 "author" : " Webb Pinner" ,
2327 "homepage" : " https://github.com/oceandatatools/sealog-server" ,
2428 "private" : false ,
You can’t perform that action at this time.
0 commit comments