question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prettier-standard on vscode

See original GitHub issue

I love what the package does on cli. Is there a way of formatting with it in vscode?

I have the dbaeumer.vscode-eslint-1.4.5 extension installed and I would like to keep using my .eslintrc

Edit: my .estlintc

{
  "extends": ["standard"],
  "rules": {
    "camelcase": 0
  },
  "env": {
    "browser": true,
    "es6": true
  },
  "globals": {
    "app": true,
    "moment": true
  }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
yuriploccommented, Feb 7, 2018

Awesome!

For documentation purposes, my files (or at least, the most important parts):

settings.json

{
    "prettier.eslintIntegration": true,
    "editor.formatOnSave": false,
    "[javascript]": {
        "editor.formatOnSave": true
    },
    "javascript.validate.enable": true,
    "eslint.alwaysShowStatus": true
}

devDependencies in package.json:

"devDependencies": {
    "eslint": "^4.15.0",
    "eslint-config-standard": "^11.0.0-beta.0",
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-node": "^5.2.1",
    "eslint-plugin-promise": "^3.6.0",
    "eslint-plugin-standard": "^3.0.1",
    "prettier": "^1.10.2",
    "prettier-standard": "^8.0.0",
}

.eslint is still the same.

Thank you @sheerun

2reactions
sheeruncommented, Feb 26, 2019

prettier-standard doesn’t support linting. You can use e.g. healthier for linting

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prettier-Standard - JavaScript formatter - Visual Studio ...
VS Code package to format your Javascript using Prettier and Standard. It uses prettier-standard under the hood. You can customize output by ...
Read more >
Prettier and Standard in VSCode - Zell Liew
Prettier and Standard in VSCode ... Prettier is an opinionated tool that helps you format code. I love Prettier, but I don't like...
Read more >
Prettier and Standard in VSCode - DEV Community ‍ ‍
We can use an extension called Prettier Standard VSCode. It changes JavaScript from the Prettier default format into Standard.
Read more >
How To Format Code with Prettier in Visual Studio Code
In the command palette, search for format and then choose Format Document. Then choose Prettier - Code Formatter.
Read more >
How to use Prettier in VS Code - Robin Wieruch
Prettier is an opinionated code formatter which ensures one unified code format. It can be used in VS Code by installing it from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found