eslint-config-adidas-env
v3.0.0
Published
ESLint configurations for multiple environments
Downloads
889
Readme
eslint-config-adidas-env
Environment configurations for ESLint:
module
: applies rules related toimport
,require
,module
,process
, etc.node
: extendsmodule
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@9 eslint-plugin-n@14 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
andmodule
can be used together for applications using webpack, Rollup, etc.