eslint-config-incloud
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

eslint-config-incloud

  1. 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
  2. Create a Prettier config as described here.

  3. Create .eslintrc.js with the following content:

    • Node:
      module.exports = {
        extends: ['incloud'],
        env: {
          node: true,
        },
      };
    • React:
      module.exports = {
        extends: ['incloud/react'],
      };
      You probably want to run eslint with --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.

Package Sidebar

Install

npm i eslint-config-incloud

Weekly Downloads

16

Version

5.0.0

License

MIT

Unpacked Size

4.76 kB

Total Files

6

Last publish

Collaborators

  • incloud