Giter Site home page Giter Site logo

feynubrick / eslint-prettier-vscode-example Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 24 KB

ESLint와 Prettier를 함께 사용할 때 발생하는 문제를 어떻게 해결하는지 보여주는 예제입니다. VSCode Extension과 관련한 설정도 포함하고 있습니다.

JavaScript 96.75% Shell 3.25%
eslint prettier eslint-prettier-config vscode-extension

eslint-prettier-vscode-example's Introduction

ESLint와 Prettier 함께 사용하기 + VSCode Extension과 함께 사용하기

ESLint와 Prettier를 사용할 때, 두개의 설정이 충돌해 겪는 곤란을 해결할 수 있는 설정입니다.

요약

  • npm 모듈인 ESLint와 Prettier가 서로 충돌하는 설정을 eslint-prettier-config를 이용해 바로 잡는다.
  • Prettier는 코드 formatting과 관련한 생각을 하지 않기 위해 만들어진 모듈이다.
    • formatting 관련한 것은 Prettier를 무조건 따른다.
    • 최소한의 커스터마이징만 가능하므로 그냥 Prettier가 시키는 대로 한다.
  • ESLint, Prettier의 VSCode Extension 설정은 두개가 기능에서 겹치지 않도록 설정한다.
    • 자동 고침은 Prettier만 사용한다.
    • ESLint는 틀린걸 알려주는 용도로 사용한다.

eslint-prettier-vscode-example's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.