1.0.0 • Published 5 years ago

eslint-config-cosmos v1.0.0

Weekly downloads
36
License
ISC
Repository
github
Last release
5 years ago

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)
  ]
}