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

Add webpack dummy build as a lint step #2626

Merged
merged 2 commits into from
Oct 19, 2022
Merged

Add webpack dummy build as a lint step #2626

merged 2 commits into from
Oct 19, 2022

Conversation

wolmir
Copy link
Contributor

@wolmir wolmir commented Oct 18, 2022

This PR will add webpack --mode development as a linting step.
The objective is to catch bundling errors that tsc --no-emit ignores, like styles.scss imports, for example.

@wolmir wolmir self-assigned this Oct 18, 2022
@wolmir wolmir requested a review from julieg18 as a code owner October 18, 2022 19:00
@@ -7,6 +7,7 @@
"lint:prettier": "prettier -c '**/*.{js,json,jsx,md,scss,ts,tsx,yaml,yml}'",
"lint:eslint": "eslint --cache '**/*.{js,ts,jsx,tsx}'",
"lint:tsc": "tsc --noEmit",
"lint:webpack": "webpack --mode development",
Copy link
Member

Choose a reason for hiding this comment

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

[Q] Do we need lint:tsc if we have this? Could we change to lint:compile for all sub-projects? Leave extension as is but change the two sub-projects bundled by webpack to use this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point, thanks! I'll add lint:compile to the two webpacked projects and remove lint:tsc from them

@wolmir wolmir force-pushed the webpack-linting-step branch from 56b43c3 to f515691 Compare October 19, 2022 12:46
@codeclimate
Copy link

codeclimate bot commented Oct 19, 2022

Code Climate has analyzed commit f515691 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.8% (0.0% change).

View more on Code Climate.

Copy link
Contributor

@julieg18 julieg18 left a 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!

@wolmir wolmir merged commit 525a0b0 into main Oct 19, 2022
@wolmir wolmir deleted the webpack-linting-step branch October 19, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants