GithubHelp home page GithubHelp logo

eslint-config-rapid7's Introduction

eslint-config-rapid7

Apply as many of the conventions called out in Rapid7's Javascript styleguide as possible via an extensible shared ESLint config.

Table of contents

Installation

Install ESLint as well as the config.

$ npm install eslint eslint-config-rapid7 --save-dev

Usage

Update your .eslintrc to extend the configs you want to apply.

{
  "extends": ["rapid7/browser", "rapid7/react"]
}

If you want to override / modify specific rules, you can do so in your rules section.

{
  "extends": ["rapid7/browser", "rapid7/strict"],
  "rules": {
    "no-magic-numbers: 0
  }
}

Configs

  • rapid7: Base config, lints standard javascript for all environments
  • rapid7/strict: Provides additional rules and overrides of certain base rules for a more strict linting of standard javascript for all environments
  • rapid7/browser: Lints javascript specific to implementations in a browser environment
    • Includes rapid7 in rules
  • rapid7/node: Lints javascript specific to implementations in a NodeJS environment
    • Includes rapid7 in rules
  • rapid7/react: Lints javascript specific to use with ReactJS

Combining configurations

To apply multiple configurations, pass an array of configs instead of a string to extends in your .eslintrc:

{
  "extends": ["rapid7/browser", "rapid7/react", "rapid7/strict"]
}

See Rapid7's Javascript styleguide and the ESlint config docs for more information.

eslint-config-rapid7's People

Contributors

arosenthal-r7 avatar btesser-r7 avatar camci-r7 avatar dgreene-r7 avatar fmitchell-r7 avatar jmanero-r7 avatar jrinehart-r7 avatar tquetano-r7 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.