mirror of https://github.com/YunYouJun/valaxy
chore: fix lint
This commit is contained in:
parent
cca1a0d9db
commit
075ff3fddb
|
@ -1,5 +1,7 @@
|
|||
import 'valaxy'
|
||||
|
||||
/* eslint-disable no-restricted-syntax */
|
||||
|
||||
declare module 'valaxy' {
|
||||
/**
|
||||
* extend Post type
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"jsx": "preserve",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": ["dist", "node_modules"]
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"jsx": "preserve",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": ["dist", "node_modules"]
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
// eslint.config.js
|
||||
import antfu from '@antfu/eslint-config'
|
||||
|
||||
export default antfu()
|
||||
export default antfu({
|
||||
ignores: [
|
||||
'cache',
|
||||
'public',
|
||||
'packages/valaxy/index.d.ts',
|
||||
'packages/valaxy/client.d.ts',
|
||||
],
|
||||
})
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"jsx": "preserve",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["./*"]
|
||||
},
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": ["dist", "node_modules"]
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// this module's typing is broken.
|
||||
|
||||
/* eslint-disable no-restricted-syntax */
|
||||
declare module '@docsearch/js' {
|
||||
function docsearch<T = any>(props: T): void
|
||||
export default docsearch
|
||||
|
|
|
@ -3,24 +3,24 @@
|
|||
// error: This is likely not portable. A type annotation is necessary.
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"jsx": "preserve",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"resolveJsonModule": true,
|
||||
"types": [
|
||||
"vite/client",
|
||||
"vue/ref-macros",
|
||||
"vite-plugin-pages/client",
|
||||
"vite-plugin-vue-layouts/client"
|
||||
],
|
||||
"resolveJsonModule": true,
|
||||
"allowJs": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": ["**/dist/**", "node_modules"]
|
||||
|
|
|
@ -3,24 +3,24 @@
|
|||
// error: This is likely not portable. A type annotation is necessary.
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"jsx": "preserve",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"resolveJsonModule": true,
|
||||
"types": [
|
||||
"vite/client",
|
||||
"vue/ref-macros",
|
||||
"vite-plugin-pages/client",
|
||||
"vite-plugin-vue-layouts/client"
|
||||
],
|
||||
"resolveJsonModule": true,
|
||||
"allowJs": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": ["**/dist/**", "node_modules"]
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* eslint-disable no-restricted-syntax */
|
||||
declare module 'escape-html' {
|
||||
const def: (str: string) => string
|
||||
export default def
|
||||
function escape(str: string): string
|
||||
export default escape
|
||||
}
|
||||
|
||||
declare module 'markdown-it-table-of-contents' {
|
||||
|
@ -19,5 +20,6 @@ declare module 'markdown-it-image-figures' {
|
|||
}
|
||||
|
||||
declare module 'diacritics' {
|
||||
export const remove: (str: string) => string
|
||||
function remove(str: string): string
|
||||
export { remove }
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ import 'vue-router'
|
|||
import type { Post } from './types'
|
||||
import type { Header } from './node/markdown'
|
||||
|
||||
/* eslint-disable no-restricted-syntax */
|
||||
|
||||
declare interface Window {
|
||||
// algolia
|
||||
instantsearch: any
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-restricted-syntax */
|
||||
declare module 'valaxy/default-theme' {
|
||||
export interface Config {
|
||||
/**
|
||||
|
|
|
@ -2925,9 +2925,9 @@ packages:
|
|||
eslint: '*'
|
||||
dependencies:
|
||||
'@stylistic/eslint-plugin-js': 0.0.6(eslint@8.50.0)
|
||||
'@typescript-eslint/scope-manager': 6.7.3
|
||||
'@typescript-eslint/type-utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
|
||||
'@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
|
||||
'@typescript-eslint/scope-manager': 6.7.4
|
||||
'@typescript-eslint/type-utils': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
|
||||
'@typescript-eslint/utils': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
|
||||
eslint: 8.50.0
|
||||
graphemer: 1.4.0
|
||||
transitivePeerDependencies:
|
||||
|
@ -3234,14 +3234,6 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/scope-manager@6.7.3:
|
||||
resolution: {integrity: sha512-wOlo0QnEou9cHO2TdkJmzF7DFGvAKEnB82PuPNHpT8ZKKaZu6Bm63ugOTn9fXNJtvuDPanBc78lGUGGytJoVzQ==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 6.7.3
|
||||
'@typescript-eslint/visitor-keys': 6.7.3
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/scope-manager@6.7.4:
|
||||
resolution: {integrity: sha512-SdGqSLUPTXAXi7c3Ob7peAGVnmMoGzZ361VswK2Mqf8UOYcODiYvs8rs5ILqEdfvX1lE7wEZbLyELCW+Yrql1A==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
|
@ -3250,26 +3242,6 @@ packages:
|
|||
'@typescript-eslint/visitor-keys': 6.7.4
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/type-utils@6.7.3(eslint@8.50.0)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-Fc68K0aTDrKIBvLnKTZ5Pf3MXK495YErrbHb1R6aTpfK5OdSFj0rVN7ib6Tx6ePrZ2gsjLqr0s98NG7l96KSQw==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
eslint: ^7.0.0 || ^8.0.0
|
||||
typescript: '*'
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2)
|
||||
'@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
|
||||
debug: 4.3.4(supports-color@8.1.1)
|
||||
eslint: 8.50.0
|
||||
ts-api-utils: 1.0.2(typescript@5.2.2)
|
||||
typescript: 5.2.2
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/type-utils@6.7.4(eslint@8.50.0)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-n+g3zi1QzpcAdHFP9KQF+rEFxMb2KxtnJGID3teA/nxKHOVi3ylKovaqEzGBbVY2pBttU6z85gp0D00ufLzViQ==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
|
@ -3290,37 +3262,11 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/types@6.7.3:
|
||||
resolution: {integrity: sha512-4g+de6roB2NFcfkZb439tigpAMnvEIg3rIjWQ+EM7IBaYt/CdJt6em9BJ4h4UpdgaBWdmx2iWsafHTrqmgIPNw==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/types@6.7.4:
|
||||
resolution: {integrity: sha512-o9XWK2FLW6eSS/0r/tgjAGsYasLAnOWg7hvZ/dGYSSNjCh+49k5ocPN8OmG5aZcSJ8pclSOyVKP2x03Sj+RrCA==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/typescript-estree@6.7.3(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-YLQ3tJoS4VxLFYHTw21oe1/vIZPRqAO91z6Uv0Ss2BKm/Ag7/RVQBcXTGcXhgJMdA4U+HrKuY5gWlJlvoaKZ5g==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
typescript: '*'
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 6.7.3
|
||||
'@typescript-eslint/visitor-keys': 6.7.3
|
||||
debug: 4.3.4(supports-color@8.1.1)
|
||||
globby: 11.1.0
|
||||
is-glob: 4.0.3
|
||||
semver: 7.5.4
|
||||
ts-api-utils: 1.0.2(typescript@5.2.2)
|
||||
typescript: 5.2.2
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/typescript-estree@6.7.4(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-ty8b5qHKatlNYd9vmpHooQz3Vki3gG+3PchmtsA4TgrZBKWHNjWfkQid7K7xQogBqqc7/BhGazxMD5vr6Ha+iQ==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
|
@ -3342,25 +3288,6 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/utils@6.7.3(eslint@8.50.0)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-vzLkVder21GpWRrmSR9JxGZ5+ibIUSudXlW52qeKpzUEQhRSmyZiVDDj3crAth7+5tmN1ulvgKaCU2f/bPRCzg==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
eslint: ^7.0.0 || ^8.0.0
|
||||
dependencies:
|
||||
'@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0)
|
||||
'@types/json-schema': 7.0.12
|
||||
'@types/semver': 7.5.3
|
||||
'@typescript-eslint/scope-manager': 6.7.3
|
||||
'@typescript-eslint/types': 6.7.3
|
||||
'@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2)
|
||||
eslint: 8.50.0
|
||||
semver: 7.5.4
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
- typescript
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/utils@6.7.4(eslint@8.50.0)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-PRQAs+HUn85Qdk+khAxsVV+oULy3VkbH3hQ8hxLRJXWBEd7iI+GbQxH5SEUSH7kbEoTp6oT1bOwyga24ELALTA==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
|
@ -3380,14 +3307,6 @@ packages:
|
|||
- typescript
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/visitor-keys@6.7.3:
|
||||
resolution: {integrity: sha512-HEVXkU9IB+nk9o63CeICMHxFWbHWr3E1mpilIQBe9+7L/lH97rleFLVtYsfnWB+JVMaiFnEaxvknvmIzX+CqVg==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 6.7.3
|
||||
eslint-visitor-keys: 3.4.3
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/visitor-keys@6.7.4:
|
||||
resolution: {integrity: sha512-pOW37DUhlTZbvph50x5zZCkFn3xzwkGtNoJHzIM3svpiSkJzwOYr/kVBaXmf+RAQiUDs1AHEZVNPg6UJCJpwRA==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
|
@ -5483,7 +5402,7 @@ packages:
|
|||
/eslint-plugin-antfu@1.0.0-beta.10(eslint@8.50.0)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-7hgLK1wuHDKl3vHtlKPmcE9jZir1l7QN1RiQnsd2rKwRz5kx3BV4G/Lnn5YBFobJOmGjrSNM0DNY3/IBMJrQEQ==}
|
||||
dependencies:
|
||||
'@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
|
||||
'@typescript-eslint/utils': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
|
||||
transitivePeerDependencies:
|
||||
- eslint
|
||||
- supports-color
|
||||
|
@ -5662,7 +5581,7 @@ packages:
|
|||
optional: true
|
||||
dependencies:
|
||||
'@typescript-eslint/eslint-plugin': 6.7.4(@typescript-eslint/parser@6.7.4)(eslint@8.50.0)(typescript@5.2.2)
|
||||
'@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
|
||||
'@typescript-eslint/utils': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
|
||||
eslint: 8.50.0
|
||||
vitest: 0.34.6
|
||||
transitivePeerDependencies:
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"jsx": "preserve",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["demo/yun/*"],
|
||||
"valaxy/client/*": ["packages/valaxy/client/*"],
|
||||
|
@ -15,6 +15,7 @@
|
|||
"valaxy-theme-yun/*": ["packages/valaxy-theme-yun/*"],
|
||||
"valaxy-theme-yun": ["packages/valaxy-theme-yun/node/index.ts"]
|
||||
},
|
||||
"resolveJsonModule": true,
|
||||
"types": [
|
||||
"vitest",
|
||||
"vite/client",
|
||||
|
@ -23,13 +24,12 @@
|
|||
"vite-plugin-vue-layouts/client",
|
||||
"@intlify/unplugin-vue-i18n/messages"
|
||||
],
|
||||
"resolveJsonModule": true,
|
||||
"allowJs": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": [
|
||||
|
|
Loading…
Reference in New Issue