eslint-config-cosmos

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i eslint-config-cosmos

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

58.2 kB

Total Files

13

Last publish

Collaborators

  • wework-dev