2.0.3 • Published 18 days ago

@flowbox/eslint-config v2.0.3

Weekly downloads
514
License
MIT
Repository
-
Last release
18 days ago

@flowbox/eslint-config

Our very own ESLint configuration, initially a clone of eslint-config-airbnb but replaced with rules that better suit our needs.

Installation

Install dependencies:

$ yarn add -D \
eslint \
eslint-find-rules \
eslint-plugin-eslint-comments \
eslint-plugin-import \
eslint-plugin-jsx-a11y \
eslint-plugin-react \
@flowbox/eslint-config

Extend your .eslintrc:

{
  "extends": ["@flowbox/eslint-config"],
}

And you're done 🤚

Migrating an existing codebase

If you have an existing codebase which you gradually want to migrate to this eslint config there's a warnings-only config available. This means you can set a --max-warnings x when running Eslint which you gradually lower as you go along fixing linting problems, and when you finally reach zero you remove this flag.

To use this strategy, simply change the extends to:

"extends": ["@flowbox/eslint-config/warn-only"]

2.0.3

18 days ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago