Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eslint-config-exponent

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-exponent

Shared ESLint configs for Exponent

latest
Source
npmnpm
Version
5.1.3
Version published
Weekly downloads
1.9K
-23.28%
Maintainers
4
Weekly downloads
 
Created
Source

eslint-config-exponent

Shared ESLint configs for Exponent's JS.

Installation

yarn add --dev eslint-config-exponent

You will also need to install eslint, babel-eslint, eslint-plugin-babel, eslint-plugin-import, and eslint-plugin-react (if you want to lint React and JSX):

yarn add --dev eslint babel-eslint eslint-plugin-babel eslint-plugin-import eslint-plugin-react

Usage

Import this config into your own ESLint configuration using the extends option. ESLint checks both package.json and .eslintrc.* files for its configuration:

package.json

{
  "eslintConfig": {
    "extends": "exponent"
  }
}

.eslintrc.js

module.exports = {
  extends: 'exponent',
};

React and JSX Support

There are two configs: one for JavaScript and one for React. The React configuration extends the JavaScript one and adds support and linter rules for JSX.

"eslintConfig": {
  "extends": "exponent"
  // or
  "extends": "exponent/react"
}

Keywords

eslint-config

FAQs

Package last updated on 19 Nov 2016

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