Standard Insighty ESLint configuration.
- Pick one of the included configs
- Copy to the root of your project, right next to your
package.json
- Install dependencies as described below
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
For the sake of simplicity, it is recommended to extend the package.json
"scripts"
section with the following:
"lint": "eslint .",
"lint-fix": "eslint . --fix",
Then, linting can be plugged into the CI build or git's pre-commit
hook via yarn lint
or npm run lint
Please open a GitHub issue or submit a pull request.