-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Prettier keeps breaking .babelrc #4636
Copy link
Copy link
Closed
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:questionQuestions and support requests. Please use Stack Overflow for them, not the issue tracker.Questions and support requests. Please use Stack Overflow for them, not the issue tracker.
Metadata
Metadata
Assignees
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:questionQuestions and support requests. Please use Stack Overflow for them, not the issue tracker.Questions and support requests. Please use Stack Overflow for them, not the issue tracker.
Hard to do the playground - but prettier is completely breaking my system because it makes .babelrc invalid
Input (.babelrc):
{ "presets": [ "@babel/preset-flow", [ "@babel/preset-env", { "cacheDirectory": true, "useBuiltIns": "usage", "targets": { "node": "8.10" } } ], ["@babel/preset-stage-0", { "decoratorsLegacy": true }] ], "plugins": ["lodash", "@babel/plugin-codemod-optional-catch-binding"] }Output
Obviously .babelrc is not a js file and it is not indicated as so yet it appears to assume it is. This only happens specifically for
.babelrc- not sure why it assuming its js?In babel 7 they optionally will allow
.babelrc.jsbut this does not have such a file extension.