Skip to content

Commit

Permalink
Add note re. config cascade eslint v8 (resolves #957)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Feb 25, 2025
1 parent 100129a commit ee2c94d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/knip/src/plugins/eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ const config = ['.eslintrc', '.eslintrc.{js,json,cjs}', '.eslintrc.{yml,yaml}',

const resolveConfig: ResolveConfig<ESLintConfig> = (localConfig, options) => getDependencies(localConfig, options);

const note = `For ESLint v8 users: if relying on [configuration cascading](https://eslint.org/docs/v8.x/use/configure/configuration-files#cascading-and-hierarchy),
consider using something like this:
\`\`\`json
{
"eslint": ["**/.eslintrc.js"]
}
\`\`\`
`;

/** @public */
export const docs = { note };

export default {
title,
enablers,
Expand Down

0 comments on commit ee2c94d

Please sign in to comment.