Skip to content

Commit 598594b

Browse files
chore: lint readme / package.json
1 parent 598e64b commit 598594b

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export default {
1818
plugins: [
1919
ViteFonts({
2020
google: {
21-
families: ['Source Sans Pro']
21+
families: ['Source Sans Pro'],
2222
},
23-
})
23+
}),
2424
],
2525
}
2626
```
@@ -47,37 +47,36 @@ export default {
4747
* Typekit project id
4848
*/
4949
id: '<projectId>',
50-
50+
5151
/**
5252
* enable non-blocking renderer
5353
* <link rel="preload" href="xxx" as="style" onload="this.rel='stylesheet'">
5454
* default: true
5555
*/
56-
defer: true
56+
defer: true,
5757
},
5858

5959
// Google Fonts API V2
6060
google: {
6161
/**
62-
* enable preconnect link injection
62+
* enable preconnect link injection
6363
* <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
6464
* default: true
6565
*/
6666
preconnect: false,
67-
67+
6868
/**
6969
* values: auto, block, swap(default), fallback, optional
7070
* default: 'swap'
7171
*/
7272
display: 'block',
73-
73+
7474
/**
7575
* values: auto, block, swap(default), fallback, optional
7676
* default: undefined
7777
*/
7878
text: 'ViteAwsom',
7979

80-
8180
/**
8281
* Fonts families lists
8382
*/
@@ -102,9 +101,9 @@ export default {
102101
* <link rel="preload" href="xxx" as="style" onload="this.rel='stylesheet'">
103102
* default: true
104103
*/
105-
defer: true
106-
}
107-
]
104+
defer: true,
105+
},
106+
],
108107
},
109108

110109
// Custom fonts.
@@ -139,18 +138,18 @@ export default {
139138
* early in the critical rendering path, without having to wait for the
140139
* CSSOM to be created.
141140
*/
142-
preload: true
141+
preload: true,
143142

144143
/**
145-
* Using `<link rel="prefetch">` is intended for prefetching resources
146-
* that will be used in the next navigation/page load
144+
* Using `<link rel="prefetch">` is intended for prefetching resources
145+
* that will be used in the next navigation/page load
147146
* (e.g. when you go to the next page)
148-
*
147+
*
149148
* Note: this can not be used with `preload`
150149
*/
151-
prefetch: false
152-
}
153-
})
150+
prefetch: false,
151+
},
152+
}),
154153
],
155154
}
156155
```

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "vite-plugin-fonts",
33
"version": "0.4.0",
44
"description": "Webfont loader for vite",
5+
"license": "MIT",
56
"author": "stafyniaksacha",
67
"repository": "stafyniaksacha/vite-plugin-fonts",
7-
"license": "MIT",
88
"main": "dist/index.js",
99
"module": "dist/index.mjs",
1010
"types": "dist/index.d.ts",
@@ -23,6 +23,9 @@
2323
"peerDependencies": {
2424
"vite": "^2.0.0"
2525
},
26+
"dependencies": {
27+
"fast-glob": "^3.2.11"
28+
},
2629
"devDependencies": {
2730
"@antfu/eslint-config-ts": "^0.18.8",
2831
"@typescript-eslint/eslint-plugin": "^5.15.0",
@@ -31,8 +34,5 @@
3134
"tsup": "^5.12.1",
3235
"typescript": "^4.6.2",
3336
"vite": "^2.8.6"
34-
},
35-
"dependencies": {
36-
"fast-glob": "^3.2.11"
3737
}
3838
}

0 commit comments

Comments
 (0)