This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
eslint-config-nfl with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
This package provides NFL's .eslintrc as an extensible shared config. Forked from Airbnb.
We export two ESLint configurations for your usage.
Our default export contains all of our ESLint rules, including ECMAScript 6+
and React. It requires
npm install --save-dev eslint-config-nfl eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint
"extends": "nfl"to your .eslintrc
Lints ES6+ but does not lint React. Requires
npm install --save-dev eslint-config-nfl eslint-plugin-import eslint
"extends": "nfl/base"to your .eslintrc
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
You can make sure this module lints with itself using
npm run lint.