mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
workspace: update eslint rule (#1027)
This commit is contained in:
1 parent
05c3b8f2bd
commit
cee3c00ddb
150 files changed
+1069
-1043
No files matched your search
@@ -7,7 +7,7 @@ export function stringify(queryObject: SearchParserResult, options: SearchParser
|
||||
if (!Object.keys(queryObject || {}).length) return '';
|
||||
prefix ||= '';
|
||||
const toArray = (val: string | string[]) => (typeof val === 'string' ? [val] : val);
|
||||
const addQuotes = (s: string) => (s.indexOf(' ') > -1 ? JSON.stringify(s) : s);
|
||||
const addQuotes = (s: string) => (s.includes(' ') ? JSON.stringify(s) : s);
|
||||
const addPrefix = (s: string) => prefix + s;
|
||||
const parts = [];
|
||||
if (queryObject.text) {
|
||||
|
||||
Reference in new issue
Block a user