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

Stricter linting and improved DX #9

Merged
merged 1 commit into from
Jul 3, 2023
Merged

Stricter linting and improved DX #9

merged 1 commit into from
Jul 3, 2023

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Jun 26, 2023

This follows (some) advice from a great talk on configuring ESLint for a TS React project.

Warnings are configured to break the build, so we don't get sloppy and ignore them.
Unused eslint-disable directives are reported so they behave similar to @ts-expect-error, which means we'll know when such a directive can be removed.
VSCode is configured with recommended extensions and sensible format/fix settings, and to highlight lint errors as warnings (yellow squigglies) to disambiguate from type errors.

📦 Published PR as canary version: 0.0.4-canary.9.517b959.0

✨ Test out this PR locally via:

npm install @chromaui/addon-visual-tests@0.0.4-canary.9.517b959.0
# or 
yarn add @chromaui/addon-visual-tests@0.0.4-canary.9.517b959.0

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

Sounds good to me

@ghengeveld ghengeveld merged commit 517b959 into main Jul 3, 2023
@ghengeveld ghengeveld deleted the vscode-lint-config branch July 3, 2023 07:27
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.

2 participants