-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat es lint #123
Feat es lint #123
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Looks good to me adding in esLint configs
.eslintrc.json
Outdated
@@ -0,0 +1,3 @@ | |||
{ | |||
"extends": ["plugin:jsx-a11y/recommended", "next/core-web-vitals"] |
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.
What ESLINT rules are included in both of these?
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.
ESLINT Rules included:
- next plugin: https://nextjs.org/docs/pages/building-your-application/configuring/eslint#eslint-plugin
- eslint recommended rules identified by green checkmark: https://eslint.org/docs/latest/rules/
- Jsx-A11Y: https://www.npmjs.com/package/eslint-plugin-jsx-a11y#supported-rules
I want to ensure we have NO WARNINGS. Any rule we set up is an ERROR. This will stop devs from ignoring warnings. |
Agreed. I think there are some default ones we may be able to suppress but right now you have to do it rule by rule in the config file. I am not finding anything that turns off global warnings. There is a quiet option that I added into the package.json script that is supposed to show only errors when run: "scripts": {
...
"lint": "next lint --quiet"
} |
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.
After reviewing new changes, it makes sense by the links Chris provided.
Fixes #66 - adds the ability to lint our project using eslint ## Setup & Run - There are two new lint dev dependency packages: `eslint-config-next` & `eslint-plugin-jsx-a11y` so be sure to install them by running `pnpm i` - Type `npm run lint` to lint the project --------- Co-authored-by: Shashi Lo <[email protected]>
Fixes #66 - adds the ability to lint our project using eslint
Setup & Run
eslint-config-next
&eslint-plugin-jsx-a11y
so be sure to install them by runningpnpm i
npm run lint
to lint the project