@santi020k/eslint-config-basic 1.5.0 → 2.0.0-beta.0

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.
package/dist/cli.d.ts CHANGED
@@ -1,4 +1,22 @@
1
- declare const handleInit: (cwd?: string) => void;
1
+ declare const handleInit: (cwd?: string, check?: boolean) => void;
2
2
  declare const handleUpdate: (cwd?: string) => void;
3
+ declare const handleExplain: (cwd?: string, json?: boolean) => void;
4
+ declare const handleInspect: (cwd?: string, json?: boolean) => Promise<void>;
5
+ interface DuplicateEslintInfo {
6
+ configVersion: string;
7
+ projectVersion: string;
8
+ }
9
+ /**
10
+ * Detects whether the project and the config packages resolve two different
11
+ * physical copies of ESLint (e.g. a project pinning an older ESLint while the
12
+ * config packages resolve their own ESLint 10 dependency). Only ESLint 10 is
13
+ * supported; two parallel copies can also apply subtly different rule behavior
14
+ * between editor and CLI.
15
+ */
16
+ declare const findDuplicateEslint: (cwd?: string) => DuplicateEslintInfo | null;
17
+ declare const handleDoctor: (cwd?: string, json?: boolean, liteInstall?: boolean) => Promise<void>;
18
+ declare const handleDocs: (cwd?: string) => void;
19
+ declare const handleMigrate: (cwd?: string, write?: boolean, json?: boolean) => void;
20
+ declare const runCli: (argv?: string[], cwd?: string) => void;
3
21
 
4
- export { handleInit, handleUpdate };
22
+ export { findDuplicateEslint, handleDocs, handleDoctor, handleExplain, handleInit, handleInspect, handleMigrate, handleUpdate, runCli };