Skip to content

Commit

Permalink
chore(eslint): fix warnings from rule sonarjs/class-name and remove…
Browse files Browse the repository at this point in the history
… `warn` override
  • Loading branch information
adrianschmidt committed Dec 2, 2024
1 parent a5461d8 commit e6c41c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ sonarjs.configs.recommended,
radix: "error",
"sonarjs/alt-text": "warn",
"sonarjs/anchor-is-valid": "warn",
"sonarjs/class-name": "warn",
"sonarjs/concise-regexp": "off", // We probably want this, but it doesn't seem to work with "warn".
"sonarjs/default-param-last": "warn",
"sonarjs/deprecation": "warn",
Expand Down
4 changes: 2 additions & 2 deletions src/components/markdown/markdown-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { CustomElementDefinition } from '../../global/shared-types/custom-elemen
*/
export async function markdownToHTML(
text: string,
options?: markdownToHTMLOptions,
options?: MarkdownToHTMLOptions,
): Promise<string> {
if (options?.forceHardLineBreaks) {
text = text.replace(/(?<!\\)([\n\r])/g, ' $1');
Expand Down Expand Up @@ -119,7 +119,7 @@ function getWhiteList(allowedComponents: CustomElementDefinition[]): Schema {
/**
* Options for markdownToHTML.
*/
export interface markdownToHTMLOptions {
export interface MarkdownToHTMLOptions {
/**
* Set to `true` to convert all soft line breaks to hard line breaks.
*/
Expand Down

0 comments on commit e6c41c6

Please sign in to comment.