Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Add prettier to auto-format code? #10

Closed
pdehaan opened this issue Jun 5, 2017 · 0 comments
Closed

Add prettier to auto-format code? #10

pdehaan opened this issue Jun 5, 2017 · 0 comments

Comments

@pdehaan
Copy link
Collaborator

pdehaan commented Jun 5, 2017

Here was my local config, although the indenting is a bit different between ESLint and Prettier, so I think we'd need to disable the indenting rules in ESLint.

"format": "prettier 'src/**/!(kinto-http|quill|quill.snow).{css,js}' --single-quote --write",

And here's my output (showing the processed files):

➜  notes git:(fix-eslint) $ npm run format

> notes@1.0.0 format /Users/pdehaan/dev/github/mozilla/notes
> prettier 'src/**/!(kinto-http|quill|quill.snow).{css,js}' --single-quote --write

src/background.js 258ms
src/sidebar/options/options.js 23ms
src/sidebar/panel.js 190ms
src/sidebar/styles.css 120ms
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant