Skip to content

Commit 01b8e65

Browse files
style: lint code
1 parent c765578 commit 01b8e65

File tree

5 files changed

+13
-41
lines changed

5 files changed

+13
-41
lines changed

docs/.vitepress/config.mts

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ const VERSION = isVersion > -1 ? process.argv[isVersion + 1].slice(1, -1) : 'Lat
1111
const BASE_URL = isVersion > -1 ? process.argv[isVersion + 1] : '/';
1212

1313
console.log(
14-
isVersion > -1
15-
? `Building docs for version ${VERSION}`
16-
: 'Building docs for latest version'
14+
isVersion > -1 ? `Building docs for version ${VERSION}` : 'Building docs for latest version'
1715
);
1816

1917
const description =
@@ -56,22 +54,10 @@ export default defineConfig({
5654
head: [
5755
// Attach a custom favicon
5856
['link', { rel: 'icon', href: `${BASE_URL}favicon.ico', type: 'image/x-icon` }],
59-
[
60-
'link',
61-
{ rel: 'apple-touch-icon', sizes: '57x57', href: `${BASE_URL}apple-icon-57x57.png` }
62-
],
63-
[
64-
'link',
65-
{ rel: 'apple-touch-icon', sizes: '60x60', href: `${BASE_URL}apple-icon-60x60.png` }
66-
],
67-
[
68-
'link',
69-
{ rel: 'apple-touch-icon', sizes: '72x72', href: `${BASE_URL}apple-icon-72x72.png` }
70-
],
71-
[
72-
'link',
73-
{ rel: 'apple-touch-icon', sizes: '76x76', href: `${BASE_URL}apple-icon-76x76.png` }
74-
],
57+
['link', { rel: 'apple-touch-icon', sizes: '57x57', href: `${BASE_URL}apple-icon-57x57.png` }],
58+
['link', { rel: 'apple-touch-icon', sizes: '60x60', href: `${BASE_URL}apple-icon-60x60.png` }],
59+
['link', { rel: 'apple-touch-icon', sizes: '72x72', href: `${BASE_URL}apple-icon-72x72.png` }],
60+
['link', { rel: 'apple-touch-icon', sizes: '76x76', href: `${BASE_URL}apple-icon-76x76.png` }],
7561
[
7662
'link',
7763
{
@@ -151,10 +137,7 @@ export default defineConfig({
151137

152138
['link', { rel: 'manifest', href: `${BASE_URL}manifest.json` }],
153139
['meta', { name: 'msapplication-TileColor', content: '#e5972a' }],
154-
[
155-
'meta',
156-
{ name: 'msapplication-TileImage', content: `${BASE_URL}ms-icon-144x144.png` }
157-
],
140+
['meta', { name: 'msapplication-TileImage', content: `${BASE_URL}ms-icon-144x144.png` }],
158141
['meta', { name: 'theme-color', content: '#e5972a' }],
159142
['meta', { name: 'description', content: description }],
160143

@@ -251,16 +234,13 @@ export default defineConfig({
251234
items: [
252235
{ text: 'Latest', link: url },
253236
{ text: 'v0.x', link: `${url}/v0/` }
254-
].filter((i) =>
255-
BASE_URL === '/' ? i.text !== 'Latest' : !i.link.includes(BASE_URL)
256-
)
237+
].filter((i) => (BASE_URL === '/' ? i.text !== 'Latest' : !i.link.includes(BASE_URL)))
257238
}
258239
],
259240

260241
//! Temp link for testing, will be changed to the real one before merged to production
261242
editLink: {
262-
pattern:
263-
'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
243+
pattern: 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
264244
},
265245

266246
footer: {
@@ -318,6 +298,6 @@ export default defineConfig({
318298
light: 'kanagawa-lotus'
319299
},
320300

321-
typographer: true,
301+
typographer: true
322302
}
323303
});

docs/.vitepress/theme/homepage.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
.VPTeamMembers.medium.count-1 {
7272
display: flex;
7373
justify-content: center;
74-
}
74+
}

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Theme from 'vitepress/theme';
22
import './style.css';
3-
import './homepage.css'
3+
import './homepage.css';
44

55
export default Theme;

docs/.vitepress/theme/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@
134134

135135
.DocSearch {
136136
--docsearch-primary-color: var(--vp-c-brand-1) !important;
137-
}
137+
}

package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22
"name": "axios-cache-interceptor",
33
"version": "1.8.0",
44
"description": "Cache interceptor for axios",
5-
"keywords": [
6-
"axios",
7-
"cache",
8-
"interceptor",
9-
"adapter",
10-
"http",
11-
"plugin",
12-
"wrapper"
13-
],
5+
"keywords": ["axios", "cache", "interceptor", "adapter", "http", "plugin", "wrapper"],
146
"homepage": "https://axios-cache-interceptor.js.org",
157
"bugs": "https://github.com/arthurfiorette/axios-cache-interceptor/issues",
168
"repository": {

0 commit comments

Comments
 (0)