Skip to content
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

Merged
merged 14 commits into from
Dec 13, 2021
Merged

ADD Web Linting #307

merged 14 commits into from
Dec 13, 2021

Conversation

as14692
Copy link
Contributor

@as14692 as14692 commented Nov 11, 2021

Using libraries husky and lint-staged for pre-commit hooks. Runs eslint --fix on staged jsx,js files and commits when the command git commit is executed.

@as14692 as14692 marked this pull request as ready for review November 11, 2021 02:00
@as14692 as14692 changed the title ADD precommit hook for automatic fix of eslint issues ADD automatic fix of eslint issues Nov 12, 2021
web/package.json Outdated
@@ -40,6 +40,7 @@
"proxy": "http://localhost:5000/",
"scripts": {
"start": "react-scripts start",
"lint": "yarn esw -w --fix --ext .jsx .",
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove eslint-watch

@@ -1,12 +1,12 @@
const { createProxyMiddleware } = require('http-proxy-middleware');
const {createProxyMiddleware} = require('http-proxy-middleware');
Copy link
Collaborator

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.

@synoet synoet changed the title ADD automatic fix of eslint issues ADD Web Liting Nov 14, 2021
@as14692 as14692 changed the title ADD Web Liting ADD Web Linting Nov 16, 2021
@synoet synoet merged commit ffb1e72 into AnubisLMS:master Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants