format on save doesn't work
See original GitHub issueformat on save doesn’t work for me
Atom version: 1.18.0
prettier-atom version: 0.36.1
prettier version: 1.5.2
prettier-eslint version: 6.4.2
prettier-atom configuration: {
"formatOnSaveOptions": {
"enabled": true,
"respectEslintignore": false,
"showInStatusBar": false,
"javascriptScopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"text.html.basic",
"text.html.vue"
],
"typescriptScopes": [
"source.ts",
"source.tsx",
"source.ts.tsx"
],
"cssScopes": [
"source.css",
"source.less",
"source.css.less",
"source.scss",
"source.css.scss"
],
"jsonScopes": [
"source.json"
],
"excludedGlobs": [],
"whitelistedGlobs": [],
"isDisabledIfNotInPackageJson": false
},
"prettierEslintOptions": {
"prettierLast": false
},
"prettierOptions": {
"jsxBracketSameLine": true,
"parser": "flow",
"singleQuote": true,
"bracketSpacing": true,
"semi": true,
"useTabs": false,
"printWidth": 80,
"tabWidth": "auto",
"trailingComma": "none"
},
"useEditorConfig": false,
"useEslint": false
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
VS-Code Prettier Format On Save doesn't work - Stack Overflow
First check if Prettier works fine. You can try to format a single file using Shift + Cmd + P ...
Read more >Format on Save (prettier) stopped working with latest update
Same thing happened to me just now. I set prettier as the Default Formatter in Settings and it started working again. My Default...
Read more >How to enable auto format on save with prettier in VS Code ...
Explainer video about How to enable auto format on save in VS Code (Visual Studio Code) editor with prettier code formatter extension on...
Read more >Neovim + Prettier - Format on Save doesn't work - Reddit
Neovim + Prettier - Format on Save doesn't work - Copy to clipboard in neovim doesn't work. Hi guys,. I have 2 Problems...
Read more >VS Code - You don't need a formatting extension (Prettier and ...
I'd suggest taking the extension settings a step further—configuring Prettier not only to auto-format your code on save, but to also display ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here - the problem for me was not adding
prettier-eslint
ondevDependencies
when having ESLint integration ON.Update: After installing prettier-eslint as a devdependencies the
Format on save
settings start to work.