mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-21 19:32:34 +00:00
Fix eslint
This commit is contained in:
parent
03e50d01ac
commit
488da012e2
@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": "theme-next",
|
"extends": "theme-next",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 2018
|
||||||
|
},
|
||||||
"root": true
|
"root": true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@ function parse(file) {
|
|||||||
let rule = '';
|
let rule = '';
|
||||||
let background = '';
|
let background = '';
|
||||||
let foreground = '';
|
let foreground = '';
|
||||||
css.replace(/\.hljs([^\S]+|,[^\{]+)\{(.*?)\}/sg, (match, $1, content) => {
|
css.replace(/\.hljs(\s+|,[^{]+)\{(.*?)\}/sg, (match, $1, content) => {
|
||||||
rule += content;
|
rule += content;
|
||||||
return match;
|
return match;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user