Skip to content

Commit a7f0a6e

Browse files
authored
feat: Add eslint-plugin-format for CSS formatting (#82)
1 parent c54108c commit a7f0a6e

File tree

4 files changed

+79
-4
lines changed

4 files changed

+79
-4
lines changed

eslint.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ export default antfu({
88
ignores: [
99
'.github',
1010
],
11+
formatters: {
12+
css: true,
13+
},
1114
})

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"cross-env": "^7.0.3",
5555
"cz-emoji-chinese": "^0.3.1",
5656
"eslint": "npm:eslint-ts-patch@8.57.0-0",
57+
"eslint-plugin-format": "^0.1.0",
5758
"eslint-ts-patch": "8.57.0-0",
5859
"husky": "^9.0.11",
5960
"less": "^4.2.0",

pnpm-lock.yaml

Lines changed: 71 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/app.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ body {
3333
.slide-fadein-left-leave-active,
3434
.slide-fadein-right-enter-active,
3535
.slide-fadein-right-leave-active {
36-
transition: opacity 0.3s, transform 0.4s, -webkit-transform 0.4s;
36+
transition:
37+
opacity 0.3s,
38+
transform 0.4s,
39+
-webkit-transform 0.4s;
3740
}
3841

3942
.slide-fadein-left-enter-from,

0 commit comments

Comments
 (0)