6.0.0 • Published 8 years ago

eslint-config-ta v6.0.0

Weekly downloads
81
License
MIT
Repository
github
Last release
8 years ago

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
6.0.0

8 years ago

5.2.0

9 years ago

5.1.0

9 years ago

5.0.1

10 years ago

5.0.0

10 years ago

4.1.0

10 years ago

4.0.0

10 years ago

3.2.1

10 years ago

3.2.0

10 years ago

3.1.1

10 years ago

3.1.0

10 years ago

3.0.0

10 years ago