Skip to content

Commit

Permalink
chore: update deps & new lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Oct 4, 2023
1 parent 3b28aa6 commit 4076adb
Show file tree
Hide file tree
Showing 11 changed files with 1,242 additions and 644 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

30 changes: 25 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,37 @@
"valaxyjs",
"yunle"
],

// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": false
},
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml"
],

"i18n-ally.sourceLanguage": "en",
"i18n-ally.keystyle": "nested",
"i18n-ally.localesPaths": "locales",
"i18n-ally.sortKeys": true,
"prettier.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.associations": {
"*.css": "postcss"
},
"editor.formatOnSave": false,
"svg.preview.background": "editor"
}
17 changes: 4 additions & 13 deletions components/CdnLogo.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
<script lang="ts" setup>
const netdun = {
name: '网盾星球',
const upyun = {
name: '又拍云',
url: 'https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral',
// url: 'https://www.netdun.net',
logo: 'https://cdn.yunyoujun.cn/img/logo/upyun-logo.png',
}
</script>

<template>
<div class="flex-center">
<span mr-1>由</span>
<a inline-flex :href="netdun.url" target="_blank" :title="netdun.name">
<img class="netdun-logo" w="18" m="b-2px l-1 r-2" :src="netdun.logo">
<a inline-flex :href="upyun.url" target="_blank" :title="upyun.name">
<img class="upyun-logo" w="18" m="b-2px l-1 r-2" :src="upyun.logo">
</a>
<span>提供 CDN 支持</span>
</div>
</template>

<style lang="scss">
// .dark {
// .netdun-logo {
// filter: grayscale(1) invert(1);
// }
// }
</style>
7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import antfu from '@antfu/eslint-config'

export default antfu({
rules: {
'no-new': 'off',
},
})
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "yunyoujun.github.io",
"type": "module",
"version": "2.0.0",
"private": true,
"packageManager": "pnpm@8.7.5",
"packageManager": "pnpm@8.8.0",
"description": "YunYouJun Blog",
"author": {
"email": "[email protected]",
Expand Down Expand Up @@ -43,18 +44,18 @@
"typecheck": "vue-tsc --noEmit"
},
"devDependencies": {
"@antfu/eslint-config": "^0.42.0",
"@antfu/eslint-config": "^1.0.0-beta.18",
"@explosions/fireworks": "^0.0.2",
"cross-env": "^7.0.3",
"eslint": "^8.49.0",
"eslint": "^8.50.0",
"typescript": "^5.2.2",
"valaxy": "0.14.61",
"valaxy": "0.15.2",
"valaxy-addon-algolia": "^0.0.3",
"valaxy-addon-components": "^0.0.2",
"valaxy-addon-waline": "^0.1.0",
"valaxy-theme-yun": "0.14.61",
"valaxy-addon-waline": "^0.1.1",
"valaxy-theme-yun": "0.15.2",
"vite-plugin-remote-assets": "^0.3.2",
"vue-gtag-next": "^1.14.0",
"vue-tsc": "^1.8.11"
"vue-tsc": "^1.8.15"
}
}
1 change: 0 additions & 1 deletion pages/posts/find-npy-social-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ function getMembersByCity(city) {
members.forEach((member) => {
if (city.includes(member.city))
results.push(member)

})
return results
}
Expand Down
2 changes: 1 addition & 1 deletion pages/posts/vue-d3-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function yAxis(g) {
```js
svg
.append('g')
// eslint-disable-next-line @typescript-eslint/no-invalid-this
// eslint-disable-next-line ts/no-invalid-this
.attr('fill', this.color)
.selectAll('rect')
.data(data)
Expand Down
25 changes: 0 additions & 25 deletions pages/posts/why-i-use-netdun-cdn.md

This file was deleted.

Loading

1 comment on commit 4076adb

@vercel
Copy link

@vercel vercel bot commented on 4076adb Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.