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

feat: added eslintingore template and PWA options #839

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Oluwatemilorun
Copy link

When the PWA option is selected and also eslint lint option, eslint logs an error from the auto generated service worker file sw.js due to possible conflicting rules.

.eslintignore

There is no .eslintignore file being generated, so a template was created and which includes auto generated service worker files when PWA option is selected.

Included auto generated service worker files when PWA option is selected
in .eslintignore
@Atinux Atinux requested a review from clarkdo August 4, 2021 21:02
@@ -103,6 +103,7 @@ module.exports = {
files: '*',
filters: {
'_.eslintrc.js': 'linter.includes("eslint")',
'_.eslintignore': 'linter.includes("eslint")',
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of adding another file, can't you add sw.js in gitingore?

Cause there are cases where we use prettier, style lint alongside eslint. This approach would also mean that you have to add .prettierignore & .stylelintignore

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

When the files are generated, sw.* is included in the .gitignore already. Although, eslint still runs through and lints the auto generated service worker codes causing the linting error when developing or building.

Copy link
Author

Choose a reason for hiding this comment

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

The error. @typescript-eslint is whats emitting the error.

Screen Shot 2021-08-25 at 3 26 44 AM

This disappears when sw.* is included in the .eslintignore

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.

None yet

3 participants