eslint-config-cosmos
v1.0.0
Published
Eslint sharable config for Wework JavaScript style guide (ES2015+ version)
Downloads
6
Maintainers
Readme
eslint-config-cosmos
Eslint sharable config for Wework JavaScript style guide (ES2015+ version)
Install yarn globally:
> npm install yarn --global
Add eslint and eslint-config-cosmos as a devDependency to your project:
> yarn add eslint eslint-config-cosmos --dev
Create an .eslintrc.js file at the root of your project and add the following configuration:
module.exports = {
root: true, // Prevent ESLint from inheriting configuration above this file
extends: [
'cosmos', // Extend base config
'cosmos/react', // Extend react config (optional)
'cosmos/flowtype' // Extend flowtype config (optional)
]
}