-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADD Web Linting #307
ADD Web Linting #307
Conversation
web/package.json
Outdated
@@ -40,6 +40,7 @@ | |||
"proxy": "http://localhost:5000/", | |||
"scripts": { | |||
"start": "react-scripts start", | |||
"lint": "yarn esw -w --fix --ext .jsx .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace with non fix linter, also ad .js to patterns
web/Makefile
Outdated
yarn run start & yarn run lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove yarn run lint
.gitignore
Outdated
@@ -8,6 +8,7 @@ os-dump-*.sql | |||
.backups | |||
.backups.* | |||
.ipynb_checkpoints | |||
/node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete
web/package.json
Outdated
@@ -67,6 +68,7 @@ | |||
"eslint-plugin-import": "^2.22.1", | |||
"eslint-plugin-node": "^11.1.0", | |||
"eslint-plugin-promise": "^4.2.1", | |||
"eslint-plugin-react": "^7.22.0" | |||
"eslint-plugin-react": "^7.22.0", | |||
"eslint-watch": "^8.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove eslint-watch
web/src/setupProxy.js
Outdated
@@ -1,12 +1,12 @@ | |||
const { createProxyMiddleware } = require('http-proxy-middleware'); | |||
const {createProxyMiddleware} = require('http-proxy-middleware'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert changes you made to this file.
Using libraries husky and lint-staged for pre-commit hooks. Runs
eslint --fix
on staged jsx,js files and commits when the commandgit commit
is executed.