Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.15 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.15 KB

insighty-eslint-config

Standard Insighty ESLint configuration.

How do I use this?

Getting Started

  1. Pick one of the included configs
  2. Copy to the root of your project, right next to your package.json
  3. Install dependencies as described below

Included configs

Dependencies: yarn add --dev eslint babel-eslint eslint-config-airbnb-base eslint-plugin-import

Dependencies: yarn add --dev eslint babel-eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react

Common Usage Patterns

Scripts

For the sake of simplicity, it is recommended to extend the package.json "scripts" section with the following:

    "lint": "eslint .",
    "lint-fix": "eslint . --fix",

What is --fix?

Running on the CI server

Then, linting can be plugged into the CI build or git's pre-commit hook via yarn lint or npm run lint

Have an RFC? Having Troubles?

Please open a GitHub issue or submit a pull request.