@eslint-sukka/shared 6.0.0-beta.30 → 6.0.0-beta.32
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/index.d.ts +5 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ declare namespace constants {
|
|
|
33
33
|
export { constants_GLOB_ALL_JSON as GLOB_ALL_JSON, constants_GLOB_EXCLUDE as GLOB_EXCLUDE, constants_GLOB_JS as GLOB_JS, constants_GLOB_JSON as GLOB_JSON, constants_GLOB_JSON5 as GLOB_JSON5, constants_GLOB_JSONC as GLOB_JSONC, constants_GLOB_JSX as GLOB_JSX, constants_GLOB_SRC as GLOB_SRC, constants_GLOB_SRC_EXT as GLOB_SRC_EXT, constants_GLOB_TESTS as GLOB_TESTS, constants_GLOB_TS as GLOB_TS, constants_GLOB_TSX as GLOB_TSX };
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
type PackageJson = Record<string, any> | null;
|
|
36
37
|
/**
|
|
37
38
|
* Gets a `package.json` data.
|
|
38
39
|
* The data is cached if found, then it's used after.
|
|
@@ -41,7 +42,7 @@ declare namespace constants {
|
|
|
41
42
|
* @returns A found `package.json` data or `null`.
|
|
42
43
|
* This object have additional property `filePath`.
|
|
43
44
|
*/
|
|
44
|
-
declare function getPackageJson(startPath?: string):
|
|
45
|
+
declare function getPackageJson(startPath?: string): PackageJson | null;
|
|
45
46
|
|
|
46
47
|
/** 福妮严选 */
|
|
47
48
|
declare const BETTER_ALTERNATIVES: {
|
|
@@ -84,18 +85,18 @@ declare const memo: <T>(fn: NonNullable<T>, key?: string) => T;
|
|
|
84
85
|
type FlatESLintConfigItem = Linter.FlatConfig;
|
|
85
86
|
type SukkaESLintRuleConfig = Pick<FlatESLintConfigItem, 'plugins' | 'rules'>;
|
|
86
87
|
|
|
87
|
-
interface Metadata<MessageIDs extends string
|
|
88
|
+
interface Metadata<MessageIDs extends string> extends RuleMetaData<MessageIDs> {
|
|
88
89
|
hidden?: boolean;
|
|
89
90
|
}
|
|
90
91
|
interface RuleModule<TResolvedOptions, TOptions extends readonly unknown[], TMessageIDs extends string, TRuleListener extends RuleListener> {
|
|
91
92
|
readonly name: string;
|
|
92
|
-
readonly meta: Metadata<TMessageIDs
|
|
93
|
+
readonly meta: Metadata<TMessageIDs>;
|
|
93
94
|
resolveOptions?(...options: TOptions): TResolvedOptions;
|
|
94
95
|
create(context: Readonly<RuleContext<TMessageIDs, TOptions>>, options: TResolvedOptions): TRuleListener;
|
|
95
96
|
}
|
|
96
97
|
interface ExportedRuleModule<TOptions extends readonly unknown[] = unknown[], TMessageIDs extends string = string, TRuleListener extends RuleListener = RuleListener> {
|
|
97
98
|
readonly name: string;
|
|
98
|
-
readonly meta: Metadata<TMessageIDs
|
|
99
|
+
readonly meta: Metadata<TMessageIDs>;
|
|
99
100
|
create(context: Readonly<RuleContext<TMessageIDs, TOptions>>): TRuleListener;
|
|
100
101
|
}
|
|
101
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/shared",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.32",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@dual-bundle/import-meta-resolve": "^4.1.0",
|
|
32
32
|
"@types/eslint": "^8.56.10",
|
|
33
|
-
"@typescript-eslint/utils": "8.0.0-alpha.
|
|
33
|
+
"@typescript-eslint/utils": "8.0.0-alpha.36"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@eslint-sukka/rollup-config": "6.0.0-beta.
|
|
36
|
+
"@eslint-sukka/rollup-config": "6.0.0-beta.32"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|