Skip to content

Commit

Permalink
style: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 21, 2023
1 parent aa2a4ea commit cc28cb5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/api

14 changes: 7 additions & 7 deletions docs/src/.vuepress/utils/csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ var CSV = {};
? l !== i.quotechar
? (c += l)
: s
? e.charAt(o + 1) === i.quotechar
? ((c += i.quotechar), (o += 1))
: (s = !1)
: (u = s = !0)
? e.charAt(o + 1) === i.quotechar
? ((c += i.quotechar), (o += 1))
: (s = !1)
: (u = s = !0)
: ((c = a(c)),
f.push(c),
l === i.lineterminator && (d.push(f), (f = [])),
Expand Down Expand Up @@ -189,9 +189,9 @@ var CSV = {};
null === e
? (e = '')
: 'string' == typeof e && f.test(e)
? (a.doublequote && (e = e.replace(/"/g, '""')),
(e = a.quotechar + e + a.quotechar))
: 'number' == typeof e && (e = e.toString(10)),
? (a.doublequote && (e = e.replace(/"/g, '""')),
(e = a.quotechar + e + a.quotechar))
: 'number' == typeof e && (e = e.toString(10)),
e
);
},
Expand Down
8 changes: 4 additions & 4 deletions packages/client/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ export const getConfig = ({
search === false
? false
: typeof search === 'object'
? search
: getDefaultSearchOptions(lang),
? search
: getDefaultSearchOptions(lang),
recaptchaV3Key,
turnstileKey,
reaction: Array.isArray(reaction)
? reaction
: reaction === true
? DEFAULT_REACTION
: [],
? DEFAULT_REACTION
: [],
commentSorting,
...more,
});
4 changes: 2 additions & 2 deletions packages/client/src/utils/getRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export const getRoot = (
el instanceof HTMLElement
? el
: typeof el === 'string'
? document.querySelector(el)
: null;
? document.querySelector(el)
: null;

0 comments on commit cc28cb5

Please sign in to comment.