eslint-config-adidas-env
eslint-config-adidas-env
npm i eslint-config-adidas-env
eslint-config-adidas-env

eslint-config-adidas-env

JavaScript, TypeScript and CSS shareable linter configurations

by adidas

1.3.0 (see all)License:MITTypeScript:Not Found
npm i eslint-config-adidas-env
Readme

npm version

eslint-config-adidas-env

Environment configurations for ESLint:

  • module: applies rules related to import, require, module, process, etc.
  • node: extends module and adds some NodeJS specific rules.
  • browser: applies some browser specific rules.
  • test: overwrites some rules which do not apply in testing.

Install

npm i --save-dev eslint@7 eslint-plugin-node@11 eslint-config-adidas-env

Usage

{
  "extends": [
    "adidas-env" // uses browser
  ]
}

Or

{
  "extends": [
    "adidas-env/{name}" // where name is either module, node or browser
  ]
}

Usually you would mix this with other ESLint configurations, like:

{
  "extends": [
    "adidas-env/browser",
    "adidas-env/module",
    "adidas-es6",
    "adidas-react"
  ]
}

browser and module can be used together for applications using webpack, Rollup, etc.

No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate