12.0.0 • Published 7 years ago

eslint-config-nfl v12.0.0

Weekly downloads
95
License
MIT
Repository
github
Last release
7 years ago

eslint-config-nfl

npm version

This package provides NFL's .eslintrc as an extensible shared config. Forked from Airbnb.

Usage

We export two ESLint configurations for your usage.

eslint-config-nfl

Our default export contains all of our ESLint rules, including ECMAScript 6+ and React. It requires eslint, eslint-plugin-import, eslint-plugin-react, and eslint-plugin-jsx-a11y.

  1. npm install --save-dev eslint-config-nfl eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint
  2. add "extends": "nfl" to your .eslintrc

eslint-config-nfl/base

Lints ES6+ but does not lint React. Requires eslint and eslint-plugin-import.

  1. npm install --save-dev eslint-config-nfl eslint-plugin-import eslint
  2. add "extends": "nfl/base" to your .eslintrc

Improving this config

Consider adding test cases if you're making complicated rules changes, like anything involving regexes. Perhaps in a distant future, we could use literate programming to structure our README as test cases for our .eslintrc?

You can run tests with npm test.

You can make sure this module lints with itself using npm run lint.

12.0.0

7 years ago

11.1.0

7 years ago

11.0.0

7 years ago

10.0.0

8 years ago

9.1.1

8 years ago

9.1.0

8 years ago

9.0.0

8 years ago

8.0.1

8 years ago

8.0.0

8 years ago

7.0.1

8 years ago

7.0.0

8 years ago

6.1.0

8 years ago

6.0.3

8 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.0.0

8 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago