-
Install the package:
-
Using npm:
npm i -D eslint-config-incloud
With npm < v7 you also need to manually install peer dependencies:
npx install-peerdeps -d eslint-config-incloud
-
Using yarn:
yarn add -D eslint-config-incloud npx install-peerdeps -d --yarn eslint-config-incloud
-
-
Create a Prettier config as described here.
-
Create
.eslintrc.js
with the following content:- Node:
module.exports = { extends: ['incloud'], env: { node: true, }, };
- React:
You probably want to run eslint with
module.exports = { extends: ['incloud/react'], };
--max-warnings 0
as many of the react-app rules we depend on are only warnings, which is not desirable when checking against them in CI.
- Node:
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
incloud/eslint-config-incloud
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
INCLOUD Standard ESLint Config