5.1.3 • Published 7 years ago

eslint-config-exponent v5.1.3

Weekly downloads
36,032
License
MIT
Repository
github
Last release
7 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

7 years ago

5.1.2

7 years ago

5.1.1

7 years ago

5.1.0

7 years ago

5.0.2

7 years ago

5.0.1

7 years ago

5.0.0

7 years ago

4.0.0

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago