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

@fastly/eslint-config

Package Overview
Dependencies
Maintainers
31
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastly/eslint-config

Fastly's default eslint configuration

  • 2.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
31
Created
Source

@fastly/eslint-config

Installation

npm install --save-dev \
  @fastly/eslint-config@^1.0.0 \
  @fastly/prettier-config@^1.0.0 \
  eslint-plugin-ember@^5.0.0 \
  eslint-config-prettier@^2.9.0 \
  eslint-plugin-prettier@^2.4.0 \
  eslint@^4.12.1 \
  prettier@^1.9.2

Currently, @fastly/eslint-config declares several peerDependencies because eslint's module-loader is incapable of finding transitive dependencies. See eslint/eslint#3458. When eslint supports transitive plugins, @fastly/eslint-config can declare true dependencies so consuming projects can install just a single package.

eslint-plugin-ember is optional. Ember projects should install it. Other projects should not. @fastly/eslint-config will automatically extend eslint-plugin-ember if it's installed.

Configuration

The simplest configuration is to accept the Fastly defaults:

// my-app/.eslintrc.js
extends: ['@fastly'],

This includes

If you want to extend other configurations as well, we recommend extending @fastly last so it wins:

// my-app/.eslintrc.js
extends: ['airbnb-base', '@fastly'],

And of course, you can always override the Fastly defaults:

// my-app/.eslintrc.js
extends: ['@fastly'],
rules: {
  'no-empty': 0
}

Use with Prettier

This library automatically includes @fastly/prettier-config as eslint rules, so running eslint will validate against that configuration. See the @fastly/prettier-config docs for information about setting up a prettier.config.js in your project to work with tools like editor plugins.

Keywords

FAQs

Package last updated on 31 Oct 2018

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