-
Notifications
You must be signed in to change notification settings - Fork 11
setup eslint and prettier #26
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
base: master
Are you sure you want to change the base?
Conversation
|
@dkstevekwak , any concerns with the eslint configuration here? If not, I'm ok w/ merging |
# Conflicts: # lib/validate.js # package-lock.json # package.json
alexandrtovmach
left a comment
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.
Thanks for the contribution! Looks so far so good 👍
I left a few thoughts
| @@ -0,0 +1,11 @@ | |||
| root = true | |||
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.
this file should be ignored by .gitignore
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| "test": "echo \"Error: no test specified\" && exit 1", | ||
| "lint": "eslint --fix lib && eslint --fix commands", | ||
| "precommit": "lint-staged" |
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.
I can't find config for lint-staged. It should trigger lint for staged files, am I wrong?
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| "test": "echo \"Error: no test specified\" && exit 1", | ||
| "lint": "eslint --fix lib && eslint --fix commands", |
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.
lintscript should only validate code, not modify- list of folders to lint can be passed one-by-one
| "lint": "eslint --fix lib && eslint --fix commands", | |
| "lint": "eslint lib/** commands/**", | |
| "lint:fix": "eslint --fix lib/** commands/**", |
Setup eslint and prettier #25