In my Nuxt application where ESlint and Prettier are installed and enabled, I switched to Visual Studio Code editor.  When I open a .vue file and press CMD+ Shift + P  and choose Format Document, my file does not get formatted at all.  My  .prettierr...
I am using the VS Code prettier plugin to format my code, how can I add a setting to not add or remove semicolons when I format my code? I know that this feature was added in January but I found not mention in the PR or issue o how to add it to setti...
js application. I need to use eslint for this application. I am using https://www.npmjs.com/package/eslint-config-airbnb and using prettier plugin in VS Code editor.  .eslintrc  {   "extends": "airbnb" }   I see that VS Code is giving...
I use Prettier in JavaScript project with React. All my component props is formated in 1 line :  <Icon icon="arrow-left" width={15} height={18} />  And i would like this :  <Icon   icon="arrow-left"   width={15}   height={18}...
I created the rules in ESLint, how can I make Prettier format the code according to the rules specified in ESLint.  .eslintrc.js    module.exports = {    rules: {       quotes: ["error", "single"]    }   };   Before saving:    After s...
I'm trying to get prettier working in spacemacs.   I have (prettier-js :location (recipe :url "https://raw.githubusercontent.com/prettier/prettier/master/editors/emacs/prettier-js.el" :fetcher url)) which is somewhat working, but then in...
I am using Visual Studio Code for my front end development. I have enabled the sort-keys rule which requires the keys of all object to be in alphabetical order. I came to find out that neither ESLint, nor Prettier supports autofixing it, due to poten...
I write in vscode this statement in js:     el.style.width = (this.elementWidth + round * 10) + "px";   After autosave / formatting (prettier) it turns to this:     el.style.width = this.elementWidth + round * 10 + "px";   How do I ch...
I am using prettier in my Vue project to format my code. I've got some things I would like to change but I just can't find a solution for it on stackoverflow or anywhere else (github, google etc). I was hoping someone over here can help me ou...
Eslint throws Parsing error: Unexpected token <  There are a lot of similar questions on StackOverflow, but they don't cover my issue.  There is template.js file using the underscore template method, which seems to be causing this error. I hav...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.