File tree Expand file tree Collapse file tree 7 files changed +38
-1
lines changed Expand file tree Collapse file tree 7 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 89
89
"eslint-config-prettier" : " ^10.0.1" ,
90
90
"eslint-plugin-antfu" : " ^3.1.0" ,
91
91
"eslint-plugin-command" : " ^3.1.0" ,
92
+ "eslint-plugin-de-morgan" : " ^1.2.0" ,
92
93
"eslint-plugin-eslint-comments" : " ^3.2.0" ,
93
94
"eslint-plugin-import-x" : " ^4.6.1" ,
94
95
"eslint-plugin-jsdoc" : " ^50.6.3" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import picocolors from 'picocolors'
5
5
import {
6
6
command ,
7
7
comments ,
8
+ deMorgan ,
8
9
imports ,
9
10
javascript ,
10
11
jsdoc ,
@@ -52,6 +53,7 @@ const configs = await combine(
52
53
command ( ) ,
53
54
regexp ( ) ,
54
55
tailwindcss ( ) ,
56
+ deMorgan ( ) ,
55
57
)
56
58
57
59
const configNames = configs . map ( ( i ) => i . name ) . filter ( Boolean ) as string [ ]
Original file line number Diff line number Diff line change
1
+ import { pluginDeMorgan } from '../plugins'
2
+ import type { TypedFlatConfigItem } from '../types'
3
+
4
+ export function deMorgan ( ) : TypedFlatConfigItem [ ] {
5
+ return [
6
+ {
7
+ name : 'coderwyd/de-morgan/rules' ,
8
+ plugins : {
9
+ 'de-morgan' : pluginDeMorgan ,
10
+ } ,
11
+ rules : {
12
+ 'de-morgan/no-negated-conjunction' : 'error' ,
13
+ 'de-morgan/no-negated-disjunction' : 'error' ,
14
+ } ,
15
+ } ,
16
+ ]
17
+ }
Original file line number Diff line number Diff line change 1
1
export * from './command'
2
2
export * from './comments'
3
+ export * from './de-morgan'
3
4
export * from './ignores'
4
5
export * from './imports'
5
6
export * from './javascript'
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { Linter } from 'eslint'
2
2
import {
3
3
command ,
4
4
comments ,
5
+ deMorgan ,
5
6
ignores ,
6
7
imports ,
7
8
javascript ,
@@ -136,9 +137,10 @@ export async function defineConfig(
136
137
imports ( ) ,
137
138
unicorn ( ) ,
138
139
command ( ) ,
140
+ deMorgan ( ) ,
141
+ perfectionist ( ) ,
139
142
140
143
// Optional plugins (installed but not enabled by default)
141
- perfectionist ( ) ,
142
144
)
143
145
144
146
if ( enableVue ) componentExts . push ( 'vue' )
Original file line number Diff line number Diff line change 3
3
4
4
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments'
5
5
export { default as pluginAntfu } from 'eslint-plugin-antfu'
6
+ export { default as pluginDeMorgan } from 'eslint-plugin-de-morgan'
6
7
export * as pluginImport from 'eslint-plugin-import-x'
7
8
export { default as pluginNode } from 'eslint-plugin-n'
8
9
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist'
You can’t perform that action at this time.
0 commit comments