Recently, I've started using Visual Studio Code for my editor and found the Prettier - JavaScript formatter. I think it's a great plugin because it helps me keep my code looking nice.   I set up Airbnb's ESLint config and have found that...
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'd like to ask prettier to parse my JavaScript files recursively instead of specifying each folder in which it should check the files.  I'd like to do something like:  prettier --write "all_js_files_except_node_modules_folder"  I don...
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...
In VScode when I accidentally leave off a semi colon at the end of a javascript line and save the file, vscode (prettier or eslint or both) fixes this by adding 2 semi colons to the end of the line. Example  Original line  const x = 1   Fixed line  c...
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 traying setup my vim based typescript developing environment, but have an issue with indent management.    Probably 'eslint' says: indent: Expected indentation of 2 spaces but found 4. after prettier reformat.   My .eslintrc.js:  module.exp...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.