Skip to content

Commit

Permalink
feat: 升级eslint版本,修改侧边栏
Browse files Browse the repository at this point in the history
  • Loading branch information
Chu Fan committed Mar 7, 2023
1 parent f929360 commit 3dca375
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 178 deletions.
200 changes: 100 additions & 100 deletions docs/manuscript/develop-skill/develop-skill.sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,105 +1,105 @@
export const developSkillSidebar = [
{
text: '软件安装',
link: 'software-install/readme.md'
},
{
text: '包管理器',
collapsible: true,
{
text: '软件安装',
link: 'software-install/readme.md'
},
{
text: '包管理器',
collapsible: true,
children: [
{
text: 'npm',
link: 'npm/npm'
},
{
text: 'pnpm',
link: 'npm/pnpm'
},
{
text: 'yarn',
link: 'npm/yarn'
}
]
},
{
text: 'monorepo',
collapsible: true,
children: [
{
text: 'pnpm实现',
link: 'monorepo/pnpm-style.md'
},
{
text: 'TurboRepo',
link: 'monorepo/turboRepo.md'
}
]
},
{
text: '编译工具',
collapsible: true,
children: [
{
text: 'webpack',
link: '/'
},
{
text: 'vite',
link: '/'
}
]
},
{
text: '代码管理',
collapsible: true,
children: [
{
text: 'Git',
children: [
{
text: 'npm',
link: 'npm/npm'
},
{
text: 'pnpm',
link: 'npm/pnpm'
},
{
text: 'yarn',
link: 'npm/yarn'
}
{
text: '基本操作',
link: 'code-manager/git.md'
},
{
text: '分支版本规范',
link: 'code-manager/git-branch-rule.md'
},
{
text: '提交规范',
link: 'code-manager/git-commit-rule.md'
},
{
text: '修改历史提交信息',
link: 'code-manager/git-info-reset.md'
}
]
},
{
text: 'monorepo',
collapsible: true,
children: [
{
text: 'pnpm实现',
link: 'monorepo/pnpm-style.md'
},
{
text: 'TurboRepo',
link: 'monorepo/turboRepo.md'
}
]
},
{
text: '编译工具',
collapsible: true,
children: [
{
text: 'webpack',
link: '/'
},
{
text: 'vite',
link: '/'
}
]
},
{
text: '代码管理',
collapsible: true,
children: [
{
text: 'Git',
children: [
{
text: '基本操作',
link: 'code-manager/git.md'
},
{
text: '分支版本规范',
link: 'code-manager/git-branch-rule.md'
},
{
text: '提交规范',
link: 'code-manager/git-commit-rule.md'
},
{
text: '修改历史提交信息',
link: 'code-manager/git-info-reset.md'
}
]
},
{
text: 'Github && GitLab',
link: 'code-manager/github.md'
},
{
text: 'CI && CD',
children: [{
text: 'Jenkins',
link: 'code-manager/jenkins.md'
}]
}
]
},
{
text: '代码风格',
collapsible: true,
children: [
{
text: 'Eslint',
link: 'code-style/eslint'
},
{
text: 'Prettier',
link: 'code-style/prettier'
}
]
}
},
{
text: 'Github && GitLab',
link: 'code-manager/github.md'
},
{
text: 'CI && CD',
children: [{
text: 'Jenkins',
link: 'code-manager/jenkins.md'
}]
}
]
},
{
text: '代码风格',
collapsible: true,
children: [
{
text: 'Eslint',
link: 'code-style/eslint'
},
{
text: 'Prettier',
link: 'code-style/prettier'
}
]
}

]
48 changes: 24 additions & 24 deletions docs/manuscript/server-end/database/redis/redis.sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
export const redisSidebar = [
{
text: '基础安装',
link: 'base-install.md'
},
{
text: 'key命名规范',
link: 'key-rule.md'
},
{
text: '使用规范',
link: 'use-rule.md'
},
{
text: '主从模式',
link: 'master-slave.md'
},
{
text: '哨兵模式',
link: 'sentinel.md'
},
{
text: '集群模式',
link: 'cluster.md'
}
{
text: '基础安装',
link: 'base-install.md'
},
{
text: 'key命名规范',
link: 'key-rule.md'
},
{
text: '使用规范',
link: 'use-rule.md'
},
{
text: '主从模式',
link: 'master-slave.md'
},
{
text: '哨兵模式',
link: 'sentinel.md'
},
{
text: '集群模式',
link: 'cluster.md'
}
]
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "0.0.2",
"description": "一本有趣的JavaScript合集",
"scripts": {
"prepare": "husky install && npx husky add .husky/pre-commit \"npm run lintfix\" && chmod +x .husky/pre-commit",
"prepare": "husky install && npx husky add .husky/pre-commit \"npm run lint\" && chmod +x .husky/pre-commit",
"clean": "find . -name \"node_modules\" -type d -exec rm -rf '{}' + && rm -rf docs/.vuepress/dist",
"dev": "vuepress dev docs",
"build": "vuepress build docs",
Expand All @@ -18,8 +18,8 @@
"lintfix": "eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore ."
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vuepress/client": "2.0.0-beta.61",
"@vuepress/utils": "2.0.0-beta.61",
"eslint": "^8.35.0",
Expand Down

0 comments on commit 3dca375

Please sign in to comment.