eslint-config-adidas-hero-env
v1.3.0
Published
ESLint configurations for multiple environments
Downloads
3
Readme
eslint-config-adidas-hero-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@7 eslint-plugin-node@11 eslint-config-adidas-hero-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.