-
Notifications
You must be signed in to change notification settings - Fork 6
Feature 2232 eslint integration #2235
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
Conversation
| @@ -0,0 +1,36 @@ | |||
| import globals from "globals"; | |||
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.
It took a few hours to arrive at this config!
| "coverage": "vitest run --coverage --watch=false", | ||
| "format": "prettier --write 'src/**/*.{css,html,js,jsx}'", | ||
| "format": "prettier --write 'src/**/*.{css,html,js,jsx,ts,tsx}'", | ||
| "lint": "eslint --fix --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.
New script to run ESLint.
| periods | ||
| .sort((a, b) => { | ||
| return !!a.open === !!b.open | ||
| return Boolean(a.open) === Boolean(b.open) |
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 likes this better.
| import renderer from 'react-test-renderer'; | ||
| import SkeletonLoader from './SkeletonLoader'; | ||
|
|
||
| it("renders correctly when 'team' is passed as prop ", () => { |
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 removed the extra space at the ends of these description strings.
| }); | ||
|
|
||
| it("renders correctly when 'feedback_requests' is passed as prop ", () => { | ||
| it("renders correctly when 'received_requests' is passed as prop", () => { |
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.
The previous description string was repeated several times.
| ); | ||
| expect(component.toJSON()).toMatchSnapshot(); | ||
| }); | ||
| it("renders correctly when 'feedback_requests' is passed as prop ", () => { |
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 was a duplicate test.
| @@ -1,6 +1,6 @@ | |||
| // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | |||
|
|
|||
| exports[`renders correctly when 'feedback_requests' is passed as prop 1`] = ` | |||
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 snapshot file was updated to match the test updates.
jackkeller
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.
Solid work! LGTM
No description provided.