Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Apr 18, 2024
1 parent d49fb10 commit da17fdf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-extra-semi": "off",
"semi": [2, "never"]
"semi": [2, "never"],
"no-control-regex": 0
}
}
8 changes: 6 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,15 @@ export const unicodeSlug = (str: string, savedAt: string) => {
}

export const replaceIllegalCharsFile = (str: string): string => {
return removeInvisibleChars(str.replace(ILLEGAL_CHAR_REGEX_FILE, REPLACEMENT_CHAR))
return removeInvisibleChars(
str.replace(ILLEGAL_CHAR_REGEX_FILE, REPLACEMENT_CHAR),
)
}

export const replaceIllegalCharsFolder = (str: string): string => {
return removeInvisibleChars(str.replace(ILLEGAL_CHAR_REGEX_FOLDER, REPLACEMENT_CHAR))
return removeInvisibleChars(
str.replace(ILLEGAL_CHAR_REGEX_FOLDER, REPLACEMENT_CHAR),
)
}

export function formatDate(date: string, format: string): string {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"isolatedModules": true,
"strictNullChecks": true,
"esModuleInterop": true,
"lib": ["ES2021","ES2021.String", "DOM"]
"lib": ["ES2021", "ES2021.String", "DOM"]
},
"include": ["src/**/*.ts"]
}

0 comments on commit da17fdf

Please sign in to comment.