prettier

How do I run a code formatter over my source without modifying git history?

ぐ巨炮叔叔 提交于 2019-11-28 08:49:27
问题 I am trying to format an entire repo using a code formatter tool. In doing so, I want to keep information about who committed which line, so that commands like git blame still show the correct information. By this, I mean it should show the author that previously edited each line (before it was formatted). There is the git filter-branch command which allows you to run a command against each revision of the repo starting from the beginning of time. git filter-branch --tree-filter '\ npx

vue webpack template missing parser

情到浓时终转凉″ 提交于 2019-11-27 00:16:20
问题 I was just setting up a vue project using the webpack template like stated here: http://vuejs-templates.github.io/webpack/ However after running npm run dev just to test that the template is working, I get this error: Failed to compile with 2 errors 21:49:02 error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (path\node_modules\prettier\index.js:7051:13) at formatWithCursor (path\node_modules\prettier\index.js:10370:12) at