next.js
af1b9597 - Add additional eslint config for CLI execution (including CI) (#67689)

Commit
1 year ago
Add additional eslint config for CLI execution (including CI) (#67689) The default eslint config `.eslintrc.json` is used by IDEs. It does not use any computation-heavy type-checked rules. This is to ensure maximum responsiveness while writing code. In addition, there is now an additional config that extends from the default one: `.eslintrc.cli.json` has the `project` parser option enabled, and will therefore be able to use type-checked rules. It is used when running `pnpm lint-eslint`, which is also used in the CI. The immediate goal is to enable `@typescript-eslint/no-floating-promises` so that we don't need to rely on authors or reviewers catching unintentional missing `await`s for example.
Author
Parents
Loading