File tree Expand file tree Collapse file tree 4 files changed +23
-24
lines changed Expand file tree Collapse file tree 4 files changed +23
-24
lines changed Original file line number Diff line number Diff line change 4242    "eslint" : " ^9.5.0" 
4343  },
4444  "dependencies" : {
45+     "@eslint-community/eslint-plugin-eslint-comments" : " ^4.4.0"  ,
4546    "@eslint/js" : " ^9.11.1"  ,
4647    "@eslint/markdown" : " ^6.1.1"  ,
4748    "@unocss/eslint-plugin" : " ^0.63.1"  ,
4849    "eslint-config-flat-gitignore" : " ^0.3.0"  ,
4950    "eslint-config-prettier" : " ^9.1.0"  ,
5051    "eslint-plugin-antfu" : " ^2.7.0"  ,
5152    "eslint-plugin-command" : " ^0.2.6"  ,
52-     "eslint-plugin-eslint-comments" : " ^3.2.0"  ,
5353    "eslint-plugin-import-x" : " ^4.3.1"  ,
5454    "eslint-plugin-jsdoc" : " ^50.3.0"  ,
5555    "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' 
22import  type  {  Linter  }  from  'eslint' 
33
44export  const  comments : Linter . Config [ ]  =  [ 
5+   { 
6+     ...configComments . recommended , 
7+     name : 'sxzz/comments/recommended' , 
8+   } , 
59  { 
610    name : 'sxzz/comments' , 
7-     plugins : { 
8-       'eslint-comments' : pluginComments , 
9-     } , 
1011    rules : { 
11-       ...pluginComments . configs . recommended . rules , 
12-       'eslint-comments/disable-enable-pair' : [ 
12+       '@eslint-community/eslint-comments/disable-enable-pair' : [ 
1313        'error' , 
1414        {  allowWholeFile : true  } , 
1515      ] , 
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ import * as _pluginSxzz from 'eslint-plugin-sxzz'
1919export  const  pluginSxzz : typeof  import ( 'eslint-plugin-sxzz' ) . default  = 
2020  interopDefault ( _pluginSxzz ) 
2121
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' 
2423
2524import  *  as  _pluginMarkdown  from  '@eslint/markdown' 
2625export  const  pluginMarkdown : any  =  interopDefault ( _pluginMarkdown ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments