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

Fixed eslint configuration #185

Merged
merged 1 commit into from
Sep 14, 2020
Merged

Conversation

nickytonline
Copy link
Contributor

@nickytonline nickytonline commented Sep 12, 2020

Description

The eslint configuration was incorrectly named which caused the configuration not to be used. See the eslint configuration file formats. Aside from that, the ordering or lint rules were sorted to run prettier last.

Closes #184.

Copy link
Contributor Author

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

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

Once this gets merged, there will be just over a couple hundred lint errors/warnings. These can be done in subsequent PRs.

'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
},
env: {
browser: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need this set so that eslint understands browser built-in JS objects, e.g. window.

image

rules: {
'prettier/prettier': ['error'],
'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since all the component files use the .js extension, not .jsx, the rule needs to be modified.

@drewclem
Copy link
Collaborator

Thanks @nickytonline! Merging this in now

@drewclem drewclem merged commit fe3a03d into develop Sep 14, 2020
@nickytonline nickytonline deleted the bug/fix-eslint-configuration branch September 14, 2020 01:50
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.

eslint configuration not being picked up
2 participants