Giter VIP home page Giter VIP logo

Comments (8)

sheerun avatar sheerun commented on May 28, 2024 2

prettier-standard doesn't fix linting errors by default (only formatting ones). I guess I could introduce prettier-standard eslint command so you can do it manually if really needed

from prettier-standard.

sheerun avatar sheerun commented on May 28, 2024 1

On the other hand prettier-standard is used for auto-formatting (e.g. when saving files) without linting. I think it would break many setups if I enabled linting by default because it would cause formatting to fail even if single linting error is present. Maybe just a message at the end that you can use --lint would be enough?

from prettier-standard.

daksh-varshneya avatar daksh-varshneya commented on May 28, 2024 1

Hi, Sorry for asking this unrelated question but I'm stuck on this for a while and can't find a way for this.

Can you please guide me how can I enable prettier-standard for auto-formatting when saving files in VS Code. Any help would be highly appreciated

from prettier-standard.

sheerun avatar sheerun commented on May 28, 2024

I think it makes sense, still some people seem surprised that it can lint things

from prettier-standard.

brodybits avatar brodybits commented on May 28, 2024

just a message at the end that you can use --lint would be enough?

+1, yes

from prettier-standard.

GxDesign avatar GxDesign commented on May 28, 2024

Hey @sheerun, thanks for the formatter! On the topic of linting, I noticed that we are not able to fix fixable rules picked up by the --lint flag by using prettier-standard --fix, and attempting to use eslint . --fix results in missing plugin errors. Is there a different syntax for fixing lint errors? Otherwise, we'd need to install all of the plugins that were already installed by this package.

from prettier-standard.

klondikemarlen avatar klondikemarlen commented on May 28, 2024

Supporting the combo prettierx + eslint --fix would be amazing (like https://github.com/prettier/prettier-eslint but with SublimeText support)

from prettier-standard.

ridvanaltun avatar ridvanaltun commented on May 28, 2024

prettier-standard doesn't fix linting errors by default (only formatting ones). I guess I could introduce prettier-standard eslint command so you can do it manually if really needed

+1

from prettier-standard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.