mirror of
https://github.com/antfu/skills.git
synced 2026-09-14 16:12:50 +08:00
chore: setup eslint config
This commit is contained in:
@@ -180,7 +180,7 @@ Tracking metadata for synced skills (Type 2):
|
||||
|
||||
### `references/*.md`
|
||||
|
||||
Individual skill files. One concept per file.
|
||||
Individual skill files. One concept per file.
|
||||
|
||||
At the end of the file, include the reference links to the source documentation.
|
||||
|
||||
@@ -203,7 +203,7 @@ Code examples and practical patterns.
|
||||
- Important detail 1
|
||||
- Important detail 2
|
||||
|
||||
<!--
|
||||
<!--
|
||||
Source references:
|
||||
- {source-url}
|
||||
- {source-url}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import antfu from '@antfu/eslint-config'
|
||||
|
||||
export default antfu({
|
||||
ignores: [
|
||||
'**/vendor/**',
|
||||
'**/sources/**',
|
||||
'**/skills/**',
|
||||
],
|
||||
})
|
||||
@@ -8,14 +8,14 @@ export interface VendorSkillMeta {
|
||||
* Repositories to clone as submodules and generate skills from source
|
||||
*/
|
||||
export const submodules = {
|
||||
'vue': 'https://github.com/vuejs/docs',
|
||||
'nuxt': 'https://github.com/nuxt/nuxt',
|
||||
'vite': 'https://github.com/vitejs/vite',
|
||||
'unocss': 'https://github.com/unocss/unocss',
|
||||
'pnpm': 'https://github.com/pnpm/pnpm.io',
|
||||
'tsdown': 'https://github.com/rolldown/tsdown',
|
||||
'vitest': 'https://github.com/vitest-dev/vitest',
|
||||
'vitepress': 'https://github.com/vuejs/vitepress'
|
||||
vue: 'https://github.com/vuejs/docs',
|
||||
nuxt: 'https://github.com/nuxt/nuxt',
|
||||
vite: 'https://github.com/vitejs/vite',
|
||||
unocss: 'https://github.com/unocss/unocss',
|
||||
pnpm: 'https://github.com/pnpm/pnpm.io',
|
||||
tsdown: 'https://github.com/rolldown/tsdown',
|
||||
vitest: 'https://github.com/vitest-dev/vitest',
|
||||
vitepress: 'https://github.com/vuejs/vitepress',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -26,28 +26,28 @@ export const vendors: Record<string, VendorSkillMeta> = {
|
||||
official: true,
|
||||
source: 'https://github.com/slidevjs/slidev',
|
||||
skills: {
|
||||
'slidev': 'slidev'
|
||||
}
|
||||
slidev: 'slidev',
|
||||
},
|
||||
},
|
||||
'vueuse': {
|
||||
official: true,
|
||||
source: 'https://github.com/vueuse/skills',
|
||||
skills: {
|
||||
'vueuse-functions': 'vueuse'
|
||||
}
|
||||
'vueuse-functions': 'vueuse',
|
||||
},
|
||||
},
|
||||
'vue-best-practices': {
|
||||
source: 'https://github.com/hyf0/vue-skills',
|
||||
skills: {
|
||||
'vue-best-practices': 'vue-best-practices'
|
||||
}
|
||||
'vue-best-practices': 'vue-best-practices',
|
||||
},
|
||||
},
|
||||
'turborepo': {
|
||||
source: 'https://github.com/vercel/turborepo',
|
||||
skills: {
|
||||
'turborepo': 'turborepo'
|
||||
}
|
||||
}
|
||||
turborepo: 'turborepo',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,12 +2,15 @@
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.28.2",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"sync": "tsx scripts/sync.ts",
|
||||
"prepare": "git submodule update --init --recursive"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^7.2.0",
|
||||
"@clack/prompts": "^0.11.0",
|
||||
"@types/node": "^25.0.10",
|
||||
"eslint": "^9.39.2",
|
||||
"tsx": "^4.21.0",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
|
||||
Generated
+2737
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -1,9 +1,10 @@
|
||||
import { execSync } from 'node:child_process'
|
||||
import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { cpSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { dirname, join } from 'node:path'
|
||||
import process from 'node:process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import * as p from '@clack/prompts'
|
||||
import { vendors, submodules } from '../meta'
|
||||
import { submodules, vendors } from '../meta'
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
const root = join(__dirname, '..')
|
||||
|
||||
Reference in New Issue
Block a user