eslint-config
MOXY eslint configuration to be used in isomorphic Javascript projects.
Installation
$ npm install --save-dev eslint @moxy/eslint-config
NOTE: npm
v3 or greater is required for this package to work correctly until #3458 is resolved.
Usage
Create a .eslintrc.json
file in the project root and extend @moxy/eslint-config-isomorphic
.
Examples
{
"root": true,
"extends": [
"@moxy/eslint-config-isomorphic
]
}
Note that by setting root
to true, we ensure that no ancestor configuration is used which also improves ESLint
performance because no more file lookups need to be done.