File tree 4 files changed +23
-24
lines changed
4 files changed +23
-24
lines changed Original file line number Diff line number Diff line change 42
42
"eslint" : " ^9.5.0"
43
43
},
44
44
"dependencies" : {
45
+ "@eslint-community/eslint-plugin-eslint-comments" : " ^4.4.0" ,
45
46
"@eslint/js" : " ^9.11.1" ,
46
47
"@eslint/markdown" : " ^6.1.1" ,
47
48
"@unocss/eslint-plugin" : " ^0.63.1" ,
48
49
"eslint-config-flat-gitignore" : " ^0.3.0" ,
49
50
"eslint-config-prettier" : " ^9.1.0" ,
50
51
"eslint-plugin-antfu" : " ^2.7.0" ,
51
52
"eslint-plugin-command" : " ^0.2.6" ,
52
- "eslint-plugin-eslint-comments" : " ^3.2.0" ,
53
53
"eslint-plugin-import-x" : " ^4.3.1" ,
54
54
"eslint-plugin-jsdoc" : " ^50.3.0" ,
55
55
"eslint-plugin-jsonc" : " ^2.16.0" ,
Original file line number Diff line number Diff line change 1
- import { pluginComments } from '../plugins'
1
+ import { configComments } from '../plugins'
2
2
import type { Linter } from 'eslint'
3
3
4
4
export const comments : Linter . Config [ ] = [
5
+ {
6
+ ...configComments . recommended ,
7
+ name : 'sxzz/comments/recommended' ,
8
+ } ,
5
9
{
6
10
name : 'sxzz/comments' ,
7
- plugins : {
8
- 'eslint-comments' : pluginComments ,
9
- } ,
10
11
rules : {
11
- ...pluginComments . configs . recommended . rules ,
12
- 'eslint-comments/disable-enable-pair' : [
12
+ '@eslint-community/eslint-comments/disable-enable-pair' : [
13
13
'error' ,
14
14
{ allowWholeFile : true } ,
15
15
] ,
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ import * as _pluginSxzz from 'eslint-plugin-sxzz'
19
19
export const pluginSxzz : typeof import ( 'eslint-plugin-sxzz' ) . default =
20
20
interopDefault ( _pluginSxzz )
21
21
22
- import * as _pluginComments from 'eslint-plugin-eslint-comments'
23
- export const pluginComments : any = interopDefault ( _pluginComments )
22
+ export { default as configComments } from '@eslint-community/eslint-plugin-eslint-comments/configs'
24
23
25
24
import * as _pluginMarkdown from '@eslint/markdown'
26
25
export const pluginMarkdown : any = interopDefault ( _pluginMarkdown )
You can’t perform that action at this time.
0 commit comments