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

eslint-config-trails

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-trails

Trails.js eslint config

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
800
increased by13233.33%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-trails

:shipit: Trails ESLint Configuration

Gitter NPM version Build status Dependency Status

The sharable ESLint config used in the trails.js projects. This config is also included in newly generated Trails projects. We recommend that you use this config for consistency, but it is not required.

Usage

Default

The default ESLint configuration lints for ES6.

Install the default configuration package and eslint dependency:

npm install --save-dev eslint-config-trails eslint

Add the config to a .eslintrc.json file or the eslintConfig object in package.json using the ESLint extends attribute:

{
  "extends": "trails"
}

React.js

The React.js eslint configuration lints for both ES6 and React.js.

Install the React.js configuration package and eslint dependency:

npm install --save-dev eslint-config-trails eslint-plugin-react eslint

Add the config to a .eslintrc.json file or the eslintConfig object in package.json using the ESLint extends attribute:

{
  "extends": "trails/react"
}

Testing

A module for test-specific rules is available.

Add the config to a .eslintrc.json file or the eslintConfig object in package.json using the ESLint extends attribute:

{
  "extends": "trails/test"
}

Config

A couple minor rules are relaxed for the trails config/ folder.

{
  "extends": "trails/config"
}

License

MIT

Keywords

FAQs

Package last updated on 27 Nov 2017

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