knip 2.32.0 → 2.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,5 +4,5 @@ export declare const ENABLERS: string[];
4
4
  export declare const PACKAGE_JSON_PATH = "eslintConfig";
5
5
  export declare const isEnabled: IsPluginEnabledCallback;
6
6
  export declare const CONFIG_FILE_PATTERNS: string[];
7
- export declare const ENTRY_FILE_PATTERNS: string[];
7
+ export declare const ENTRY_FILE_PATTERNS: never[];
8
8
  export declare const findDependencies: GenericPluginCallback;
@@ -7,9 +7,17 @@ export const PACKAGE_JSON_PATH = 'eslintConfig';
7
7
  export const isEnabled = ({ dependencies, manifest, config }) => hasDependency(dependencies, ENABLERS) ||
8
8
  'eslint' in config ||
9
9
  Boolean(manifest.name && /(^eslint-config|\/eslint-config)/.test(manifest.name));
10
- export const CONFIG_FILE_PATTERNS = ['.eslintrc', '.eslintrc.{js,json,cjs}', '.eslintrc.{yml,yaml}', 'package.json'];
11
- export const ENTRY_FILE_PATTERNS = ['eslint.config.js'];
10
+ export const CONFIG_FILE_PATTERNS = [
11
+ 'eslint.config.js',
12
+ '.eslintrc',
13
+ '.eslintrc.{js,json,cjs}',
14
+ '.eslintrc.{yml,yaml}',
15
+ 'package.json',
16
+ ];
17
+ export const ENTRY_FILE_PATTERNS = [];
12
18
  const findESLintDependencies = async (configFilePath, { cwd, manifest, isProduction }) => {
19
+ if (configFilePath.endsWith('eslint.config.js'))
20
+ return [];
13
21
  if (isProduction)
14
22
  return [];
15
23
  const dependencies = await getDependenciesDeep(configFilePath, new Set(), { cwd, manifest });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "2.32.0";
1
+ export declare const version = "2.32.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '2.32.0';
1
+ export const version = '2.32.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "2.32.0",
3
+ "version": "2.32.1",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://github.com/webpro/knip",
6
6
  "repository": "github:webpro/knip",