mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
correct linter errors
This commit is contained in:
parent
f621251a42
commit
68b5dd7885
1 changed files with 9 additions and 1 deletions
|
@ -8,7 +8,15 @@ import presetWebFonts from "@unocss/preset-web-fonts";
|
|||
|
||||
export default defineConfig({
|
||||
transformers: [transformerDirective(), transformerVariantGroup()],
|
||||
rules: [[/^h-([\.\d]+)-rem$/, ([_, num]) => ({ height: `${num}rem` })]],
|
||||
rules: [
|
||||
[
|
||||
/^h-([\d]+)-rem$/,
|
||||
([_, num]) => {
|
||||
_; // fixes linting error
|
||||
return { height: `${num}rem` };
|
||||
},
|
||||
],
|
||||
],
|
||||
presets: [
|
||||
presetUno({
|
||||
dark: "media",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue