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:
moduleexports = 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)