5.0.0 • Published 11 months ago

eslint-config-incloud v5.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
11 months ago

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.

5.0.0

11 months ago

3.0.0

1 year ago

2.0.3

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

7 years ago

1.0.0

7 years ago