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

chore: add linting with Prettier #5

Closed
wants to merge 2 commits into from
Closed

Conversation

vickyyyyyyy
Copy link
Member

Currently, we do not have linting in the project.

Work done:

Questions:

Example differences of Prettier vs eslint:

Screenshot 2020-12-03 at 09 14 30

Screenshot 2020-12-03 at 09 14 37

Screenshot 2020-12-03 at 09 14 43

@stevenvachon
Copy link

stevenvachon commented Dec 3, 2020

Our standard eslint config has a prettier plugin, so I think that should be enough. Plugins have prettier configs as custom overrides and maybe also for auto-fixing code style and not full-on auto-lint. Prettier will reference an .editorconfig file, which unfortunately does not yet support extending/importing.

@vickyyyyyyy
Copy link
Member Author

Our standard eslint config has a prettier plugin, so I think that should be enough. Plugins have prettier configs as custom overrides and maybe also for auto-fixing code style and not full-on auto-lint. Prettier will reference an .editorconfig file, which unfortunately does not yet support extending/importing.

I'm a bit confused by our standard eslint config - it looks like when we use that, it will replace single quotes to double quotes but it looks like we are using single quotes everywhere? How does that work?

@stevenvachon
Copy link

I don't see anything regarding quotes in https://github.com/grafana/eslint-config-grafana/blob/master/index.js unless it's coming from"plugin:prettier/recommended", which will get overridden by an .editorconfig file.

@vickyyyyyyy
Copy link
Member Author

closing for now, looks like @kminehart found we are ignoring a prettier config generated by yarn build

@vickyyyyyyy vickyyyyyyy closed this Dec 8, 2020
@vickyyyyyyy vickyyyyyyy deleted the add-linting branch January 22, 2021 11:48
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