@interaktiv/eslint-config-dia
ESLint shareable config for most sort of projects at DIA
Last updated 22 days ago by dia-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @interaktiv/eslint-config-dia 
SYNC missed versions from official npm registry.

eslint-config-dia

ESLint > shareable config for most sort of projects at DIA

Commitizen friendly semantic-release MIT License version downloads downloads total

Table of Contents

Installation

npm install --save-dev @interaktiv/eslint-config-dia

Usage

Once the @interaktiv/eslint-config-dia package is installed, you can use it by specifying @interaktiv/dia in the extends section of your ESLint configuration.

{
  "extends": "@interaktiv/dia",
  "rules": {
    // Additional, per-project rules...
  }
}

Notes

Please note that most of the stylistic rules are disabled cause we are using Prettier to format our code. Therefore the eslint-config-prettier plugin is included.

Our Prettier shareable config can be found here @interaktiv/prettier-config-dia.

Provided configurations

The default config actually is composed of several configurations and you can use those individually. These are the configs it's using:

You can use each of these configs yourself. Also, the es6, import, promise, security configs each have a possible-errors.js, best-practices.js (and stylistic.js) which they are composed of as well.

But not only these, others too, checkout out the source.

Optional configurations

Other configs are exposed also. You can use them standalone:

{
  "extends": "@interaktiv/dia/<config-name>"
}

or in combination with the base config (recommended):

{
  "extends": [
    "@interaktiv/dia",
    "@interaktiv/dia/<config-name>"
  ]
}

for example

{
  "extends": [
    "@interaktiv/dia",
    "@interaktiv/dia/titanium",
    "@interaktiv/dia/jest",
  ]
}

Things to know

  • All plugins needed for rules used by these configs are dependencies of this module so you don't have to install anything on your own.

  • Almost all of the stylistic rules are disabled cause we are using prettier to format our code. To ensure this the eslint-config-prettier is included too.

    Our Prettier shareable config can be found here @interaktiv/prettier-config-dia.

ESLint Dependencies

License

MIT Copyright © 2019-present die.interaktiven GmbH & Co. KG

Current Tags

  • 0.16.0                                ...           latest (22 days ago)
  • 0.16.0                                ...           next (22 days ago)

6 Versions

  • 0.16.0                                ...           22 days ago
  • 0.15.2                                ...           a month ago
  • 0.15.1                                ...           a month ago
  • 0.15.0                                ...           a month ago
  • 0.14.1                                ...           a month ago
  • 0.14.0                                ...           3 months ago

Copyright 2014 - 2016 © taobao.org |