New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mapbox/eslint-config-mapbox

Package Overview
Dependencies
Maintainers
216
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/eslint-config-mapbox

Generic eslint configuration for Mapbox

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
216
Created
Source

eslint-config-mapbox

Shared eslint config for Mapbox engineering teams.

How to use this in a project

  1. Install the following dev-dependencies:

    npm install --save-dev \
      @mapbox/eslint-config-mapbox \
      eslint \
      eslint-plugin-node
    
  2. Extend the @mapbox/eslint-config-mapbox config in your .eslintrc (or eslintConfig key in your package.json):

    "eslintConfig": {
      "extends": "@mapbox/eslint-config-mapbox"
    }
    

    Specify the version of Node.js your project uses by either setting .engines.node in your package.json, or by extending an LTS-version-specific (4, 6, or 8) eslint configuration. For example:

    "eslintConfig": {
      "extends": "@mapbox/eslint-config-mapbox/node6"
    }
    
  3. Run eslint on your project as part of your test and lint scripts:

    {
      "scripts": {
        "test": "tape test/*.test.js && eslint *.js test/*.js",
        "lint": "eslint *.js test/*.js"
      }
    }
    

FAQs

Package last updated on 23 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc