File tree Expand file tree Collapse file tree 6 files changed +29
-0
lines changed Expand file tree Collapse file tree 6 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 8585 "eslint-config-flat-gitignore" : " ^0.1.5" ,
8686 "eslint-config-prettier" : " ^9.1.0" ,
8787 "eslint-plugin-antfu" : " ^2.2.0" ,
88+ "eslint-plugin-command" : " ^0.2.0" ,
8889 "eslint-plugin-eslint-comments" : " ^3.2.0" ,
8990 "eslint-plugin-import-x" : " ^0.5.0" ,
9091 "eslint-plugin-jsdoc" : " ^48.2.4" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import fs from 'node:fs/promises'
22import { flatConfigsToRulesDTS } from 'eslint-typegen/core'
33import { builtinRules } from 'eslint/use-at-your-own-risk'
44import {
5+ command ,
56 comments ,
67 formatter ,
78 imports ,
@@ -47,6 +48,7 @@ const configs = await combine(
4748 unicorn ( ) ,
4849 unocss ( ) ,
4950 vue ( ) ,
51+ command ( ) ,
5052)
5153
5254const configNames = configs . map ( i => i . name ) . filter ( Boolean ) as string [ ]
Original file line number Diff line number Diff line change 1+ import createCommand from 'eslint-plugin-command/config'
2+ import type { TypedFlatConfigItem } from '../types'
3+
4+ export async function command ( ) : Promise < TypedFlatConfigItem [ ] > {
5+ return [
6+ {
7+ ...createCommand ( ) ,
8+ name : 'coderwyd/command/rules' ,
9+ } ,
10+ ]
11+ }
Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ export * from './unocss'
1717export * from './formatter'
1818export * from './svelte'
1919export * from './tailwindcss'
20+ export * from './command'
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import process from 'node:process'
22import fs from 'node:fs'
33import { DEFAULT_PRETTIER_RULES } from './constants/prettier'
44import {
5+ command ,
56 comments ,
67 formatter ,
78 ignores ,
@@ -125,6 +126,7 @@ export async function defineConfig(
125126 jsdoc ( ) ,
126127 imports ( ) ,
127128 unicorn ( ) ,
129+ command ( ) ,
128130
129131 // Optional plugins (installed but not enabled by default)
130132 perfectionist ( ) ,
You can’t perform that action at this time.
0 commit comments