Skip to content

Commit c4a2286

Browse files
feat: more tweaks
1 parent d5b51f1 commit c4a2286

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.vscode/settings.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll": "explicit",
43
"source.fixAll.eslint": "explicit"
54
},
65
"editor.defaultFormatter": "esbenp.prettier-vscode",

src/configs/jsdoc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function jsdoc(
5151
"warn",
5252
{
5353
contexts: [
54-
":not(ExportNamedDeclaration) > FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)",
54+
":not(:matches(:not(ExportNamedDeclaration) > FunctionDeclaration:not(:matches(TSDeclareFunction + FunctionDeclaration))):not(FunctionDeclaration FunctionDeclaration)) > FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)",
5555
"ExportNamedDeclaration > FunctionDeclaration:not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration)",
5656
"TSDeclareFunction",
5757
"ExportNamedDeclaration > TSTypeAliasDeclaration",

src/factory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function rsEslint(
9292
toml: tomlOptions = false,
9393
markdown: markdownOptions = false,
9494
formatters: formattersOptions = true,
95-
mode = "none",
95+
mode,
9696
} = options;
9797

9898
const stylisticOptions =

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export type OptionsConfig = {
187187
/**
188188
* What are we linting?
189189
*/
190-
mode: Required<OptionsMode["mode"]>;
190+
mode: Required<OptionsMode>["mode"];
191191

192192
/**
193193
* Core rules. Can't be disabled.

0 commit comments

Comments
 (0)