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 85
85
"eslint-config-flat-gitignore" : " ^0.1.5" ,
86
86
"eslint-config-prettier" : " ^9.1.0" ,
87
87
"eslint-plugin-antfu" : " ^2.2.0" ,
88
+ "eslint-plugin-command" : " ^0.2.0" ,
88
89
"eslint-plugin-eslint-comments" : " ^3.2.0" ,
89
90
"eslint-plugin-import-x" : " ^0.5.0" ,
90
91
"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'
2
2
import { flatConfigsToRulesDTS } from 'eslint-typegen/core'
3
3
import { builtinRules } from 'eslint/use-at-your-own-risk'
4
4
import {
5
+ command ,
5
6
comments ,
6
7
formatter ,
7
8
imports ,
@@ -47,6 +48,7 @@ const configs = await combine(
47
48
unicorn ( ) ,
48
49
unocss ( ) ,
49
50
vue ( ) ,
51
+ command ( ) ,
50
52
)
51
53
52
54
const 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'
17
17
export * from './formatter'
18
18
export * from './svelte'
19
19
export * 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'
2
2
import fs from 'node:fs'
3
3
import { DEFAULT_PRETTIER_RULES } from './constants/prettier'
4
4
import {
5
+ command ,
5
6
comments ,
6
7
formatter ,
7
8
ignores ,
@@ -125,6 +126,7 @@ export async function defineConfig(
125
126
jsdoc ( ) ,
126
127
imports ( ) ,
127
128
unicorn ( ) ,
129
+ command ( ) ,
128
130
129
131
// Optional plugins (installed but not enabled by default)
130
132
perfectionist ( ) ,
You can’t perform that action at this time.
0 commit comments