Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Mar 8, 2024
1 parent bbb444a commit c3be24d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm test
npm run lint && npm test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"build:demo": "rollup --config demo/rollup.config.js --bundleConfigAsCjs",
"post:build": "node --loader ts-node/esm --experimental-specifier-resolution=node ./bin/post-build.js",
"build:examples": "node --loader ts-node/esm --experimental-specifier-resolution=node ./bin/build-examples.ts",
"format": "prettier --write \"{src,}/**/*.{ts,tsx,json}\"",
"lint": "tsc && eslint ./src --ext .ts --quiet",
"format": "prettier --write \"{src,}/**/*.{ts,tsx,json,tsx}\"",
"lint": "tsc && eslint ./src --ext .ts,.tsx --quiet",
"lint:fix": "eslint ./src --ext .ts,.tsx --fix",
"test": "vitest --run",
"prepare": "husky",
"demo:transformers": "npm run build:demo && http-server ./demo",
Expand Down
2 changes: 1 addition & 1 deletion src/editors/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const useArticleEdtor = ({
const editor = useEditor({
extensions: [
...makeArticleEditorExtensions({ placeholder, mentionSuggestion }),
...(extensions || []),
...(extensions ?? []),
],
content,
...restProps,
Expand Down
2 changes: 1 addition & 1 deletion src/editors/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useCommentEditor = ({
const editor = useEditor({
extensions: [
...makeCommentEditorExtensions({ placeholder, mentionSuggestion }),
...(extensions || []),
...(extensions ?? []),
],
content,
...restProps,
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/md2html.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import rehypeExternalLinks from 'rehype-external-links'
import rehypeFormat from 'rehype-format'
import rehypeRaw from 'rehype-raw'
import rehypeRewrite from 'rehype-rewrite'
Expand All @@ -9,7 +10,6 @@ import remarkDirectiveRehype from 'remark-directive-rehype'
import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
import { unified } from 'unified'
import rehypeExternalLinks from 'rehype-external-links'

import {
rehypeRewriteOptions,
Expand Down

0 comments on commit c3be24d

Please sign in to comment.