GithubHelp home page GithubHelp logo

isabella232 / eslint-config-lob Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 67 KB

Shareable ESLint configuration for Lob repositories

Home Page: https://www.npmjs.com/package/eslint-config-lob

License: MIT License

JavaScript 100.00%

eslint-config-lob's Introduction

eslint-config-lob

Shareable ESLint configuration for Lob repositories

Usage

  1. Install eslint and this module:
npm i eslint eslint-config-lob --save-dev
  1. Create an .eslintrc file in the root of your project with the following object:
{
  extends: "eslint-config-lob"
}

This will use the rules in eslint-config-lob's index.js. You can access rules in files other than eslint-config-lob's index.js via:

{
  extends: "eslint-config-lob/migrations"
}
  1. Use an .eslintignore file to specify files or directories that the linter should ignore. By default, eslint ignores the node_modules directory.
  2. Modify or create the npm lint script in the package.json to:
{
  "scripts": {
    "lint": "eslint ."
  }
}

This will lint every .js file in your project.

  1. Clean up any old lint or style tasks and config from your project.
  2. Don't forget to shrinkwrap before you commit your changes.

Contributing

Modifying or adding rules.

  • To add to the main rules, modify the index.js file.
  • To use most of the main rules but override some of them, create a new file in the root of this module, extend from index.js and add your overrides. See migrations.js for an example. If you're creating a file like this, its rules should be reusable and not a one-off. For example, you could create a file for angular rules. To make a one-off change, do so in your project's .eslintrc.

eslint-config-lob's People

Contributors

elnaz avatar robinjoseph08 avatar tlhunter avatar alex-h-strachan avatar arkadiyt avatar dependabot[bot] avatar amity 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.