Skip to content

Commit

Permalink
chore: lint and bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed Oct 9, 2024
1 parent cefdee1 commit c45713e
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 35 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitepress-carbon-monorepo",
"version": "2.0.0",
"version": "1.4.1",
"description": "Carbon embraces GitHub's monochromatic ethos, offering a theme for VitePress documentation that is sleek, modern, and effortlessly stylish.",
"keywords": [
"vue",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vpcar",
"version": "1.0.0",
"version": "1.4.1",
"description": "VitePress Carbon CLI",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitepress-carbon",
"version": "1.4.0",
"version": "1.4.1",
"description": "Theme for VitePress documentation.",
"main": "dist/index.js",
"type": "module",
Expand Down
28 changes: 14 additions & 14 deletions packages/theme/src/theme/CarbonTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,20 +246,20 @@ export namespace CarbonTheme {
export type FeatureIcon =
| string
| {
src: string
alt?: string
width?: string
height?: string
wrap?: boolean
}
src: string
alt?: string
width?: string
height?: string
wrap?: boolean
}
| {
light: string
dark: string
alt?: string
width?: string
height?: string
wrap?: boolean
}
light: string
dark: string
alt?: string
width?: string
height?: string
wrap?: boolean
}

// sidebar -------------------------------------------------------------------

Expand Down Expand Up @@ -623,7 +623,7 @@ export interface SearchOptions {
| 'ignorePlurals'
| 'singleWordSynonym'
| 'multiWordsSynonym'
)[]
)[]
enableRules?: boolean
ruleContexts?: string[]
distinct?: boolean | number
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/theme/composables/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function useNav() {
* Close screen when the user resizes the window wider than tablet size.
*/
function closeScreenOnTabletWindow() {
if(window.outerWidth >= 768) closeScreen()
if (window.outerWidth >= 768) closeScreen()
}

const route = useRoute()
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/theme/composables/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function useSidebarControl(
})

watchPostEffect(() => {
if (isActiveLink.value || hasActiveLink.value) (collapsed.value = false)
if (isActiveLink.value || hasActiveLink.value) collapsed.value = false
})

function toggle() {
Expand Down
5 changes: 2 additions & 3 deletions packages/theme/src/theme/config/baseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { ThemeConfig } from '../config.js'
*/

// for local-linked development
const deps = ['vitepress/theme','@vueuse/core', 'body-scroll-lock']
const deps = ['vitepress/theme', '@vueuse/core', 'body-scroll-lock']

export const baseConfig: UserConfig<ThemeConfig> = {
scrollOffset: ['header', '.VPLocalNav'],
Expand All @@ -33,8 +33,7 @@ export const baseConfig: UserConfig<ThemeConfig> = {
headers: {
level: [2, 3]
},
config(md) {
}
config(md) {}
},

transformHead({ assets }) {
Expand Down
24 changes: 12 additions & 12 deletions packages/theme/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ interface ImportMeta {

declare module 'markdown-it' {
interface MarkdownItOptions {
html?: boolean;
xhtmlOut?: boolean;
breaks?: boolean;
langPrefix?: string;
linkify?: boolean;
typographer?: boolean;
quotes?: string;
highlight?: (str: string, lang: string) => string;
html?: boolean
xhtmlOut?: boolean
breaks?: boolean
langPrefix?: string
linkify?: boolean
typographer?: boolean
quotes?: string
highlight?: (str: string, lang: string) => string
}

class MarkdownIt {
constructor(options?: MarkdownItOptions);
render(md: string, env?: any): string;
renderInline(md: string, env?: any): string;
constructor(options?: MarkdownItOptions)
render(md: string, env?: any): string
renderInline(md: string, env?: any): string
}

export = MarkdownIt;
export = MarkdownIt
}
2 changes: 1 addition & 1 deletion rules/require-file-extension-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
category: 'Best Practices',
recommended: false
},
schema: [] // no options
schema: []
},
create(context) {
return {
Expand Down

0 comments on commit c45713e

Please sign in to comment.