Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Conversation

@miketheman
Copy link
Contributor

Prettier is now scoped to all *.js and *.md files - and is used in lint, ci:lint and behaves the same for the end user if they run npm run format.

I'm not sure I agree with the single-quote markdown style, so this is an opportunity to decide otherwise and place the single-quote configuration directive as part of a *.js override - I'm open to either.

The `parser` option exists to force prettier to conform to a particular
style. The docs recommend that this only be implemented in an `overrides`
section, to prevent parsing one file as another.
See https://prettier.io/docs/en/configuration.html#setting-the-parserdocsenoptionshtmlparser-option

Since the code is linted correctly without the override, and we want to
lint Markdown, remove this configuration.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Updates commands to catch when Markdown is malformed.

Refs: serverless#471 (review)

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@bsamuel-ui
Copy link
Contributor

I'm not sure I agree with the single-quote markdown style, so this is an opportunity to decide

You did the work, you get to make the call.

@bsamuel-ui bsamuel-ui merged commit e118eff into serverless:master Feb 25, 2020
@miketheman miketheman deleted the miketheman/prettier-markdown branch February 25, 2020 16:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants