Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-nfl

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-nfl

NFL's ESLint config

  • 10.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
298
increased by28.45%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 19 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc