Giter Site home page Giter Site logo

eslint's Introduction

ESLINT Config

npm License Repository npm downloads

Default configs

  • Eslint configs recommended
  • Typescript-Eslint configs recommended
  • Prettier
  • Jest recommended
  • Vscode workspace settings for code formatting
  • Editorconfig settings

How to use?

1. Install the dependencies

    npm install eslint jest @types/jest @caiocezarqueiroz/eslint-config --save-dev

    or

    yarn add eslint jest @types/jest @caiocezarqueiroz/eslint-config -D

2. To use the eslint and prettier

2.1. Create a .eslintrc.json file extending the config:

{
    "extends": "@caiocezarqueiroz/eslint-config/settingsGenerator/eslint/node.js"
}

2.2. Add the .prettier command in the package.json scripts

{
    "create-prettier-config": "node ./node_modules/@caiocezarqueiroz/eslint-config/settingsGenerator/prettier/index.js"
}

2.3. Run the .prettier command in the terminal with npm or yarn.

{
    npm run create-prettier-config

    or

    yarn create-prettier-config
}

3. To use vscode workspace settings

3.1. Add the create-workspace-vscode command in the package.json scripts.

{
    "create-workspace-vscode": "node ./node_modules/@caiocezarqueiroz/eslint-config/settingsGenerator/vscode/index.js"
}

3.2. Run the create-workspace-vscode command in the terminal with npm or yarn.

{
    npm run create-workspace-vscode

    or

    yarn create-workspace-vscode
}

4. To use .editorconfig settings

4.1. Add the .editorconfig command in the package.json scripts.

{
    "create-editor-config": "node ./node_modules/@caiocezarqueiroz/eslint-config/settingsGenerator/editorconfig/index.js"
}

4.2. Run the .editorconfig command in the terminal with npm or yarn.

{
    npm run create-editor-config

    or

    yarn create-editor-config
}

eslint's People

Contributors

ccqueiroz avatar

Stargazers

Ismael Fama avatar

Watchers

 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.