Skip to content

Conversation

@mvolkmann
Copy link
Collaborator

No description provided.

@@ -0,0 +1,36 @@
import globals from "globals";
Copy link
Collaborator Author

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

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

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 ", () => {
Copy link
Collaborator Author

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", () => {
Copy link
Collaborator Author

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 ", () => {
Copy link
Collaborator Author

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`] = `
Copy link
Collaborator Author

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.

Copy link
Collaborator

@jackkeller jackkeller left a comment

Choose a reason for hiding this comment

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

Solid work! LGTM

@mvolkmann mvolkmann merged commit 9406435 into develop Apr 24, 2024
@mkimberlin mkimberlin deleted the feature-2232-eslint-integration branch August 27, 2024 18:44
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.

4 participants