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

eslint-config-ta

Package Overview
Dependencies
Maintainers
11
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-ta

Reusable eslint config for TA web apps.

  • 6.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-17.24%
Maintainers
11
Weekly downloads
 
Created
Source

eslint-config-ta

Circle CI

ESlint config for TechnologyAdvice.

npm i eslint-config-ta -D

Usage

Extend relevant ta/* rules in your .eslintrc.

Root Config

In the project root:

{
  "extends": [
    "ta",
    "ta/(backend|frontend)"
  ]
}

Test Config

Use the test config to customize rules for the /test directory:

{
  "extends": [
    "ta/(backend|frontend)/test"
  ]
}

Environment Detection

At the root of each group (e.g. ta, ta/(frontend|backend)) is an index.js file. It will select the appropriate configuration file based on the current NODE_ENV. For example, where your .eslintrc is:

{
  "extends": [
    "ta",
    "ta/frontend"
  ]
}

When you run NODE_ENV=production eslint . ./, eslint-config-ta will handle extending the correct configuration files, so under the hood it looks like this:

{
  "extends": [
    "ta/organization/production",
    "ta/frontend/production"
  ]
}

Releasing

On the latest clean master:

npm run release:major
npm run release:minor
npm run release:patch

Keywords

FAQs

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