5.1.3 • Published 9 years ago

eslint-config-exponent v5.1.3

Weekly downloads
36,032
License
MIT
Repository
github
Last release
9 years ago

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"
}
5.1.3

9 years ago

5.1.2

9 years ago

5.1.1

9 years ago

5.1.0

9 years ago

5.0.2

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.0.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago