File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ const CONFIG = [
2525 } ,
2626 } ,
2727 "rules" : {
28- "import/enforce-node-protocol-usage" : [ "error" , "always" ] ,
28+
29+ // NOTE: covered by "unicorn/prefer-node-protocol"
30+ // "import/enforce-node-protocol-usage": [ "error", "always" ],
31+
2932 "import/export" : "error" ,
3033 "import/no-named-as-default-member" : "error" ,
3134 "import/no-duplicates" : "error" ,
Original file line number Diff line number Diff line change @@ -98,6 +98,15 @@ const CONFIG = [
9898 } ,
9999] ;
100100
101+ const OVERRIDES = [
102+ {
103+ "name" : "unicorn overrides" ,
104+ "rules" : {
105+ "import/enforce-node-protocol-usage" : "off" ,
106+ } ,
107+ } ,
108+ ] ;
109+
101110export default Super =>
102111 class extends Super {
103112
@@ -110,4 +119,13 @@ export default Super =>
110119 ...CONFIG ,
111120 ] ;
112121 }
122+
123+ _createOverrides ( ) {
124+ return [
125+
126+ //
127+ ...super . _createOverrides ( ) ,
128+ ...OVERRIDES ,
129+ ] ;
130+ }
113131 } ;
You can’t perform that action at this time.
0 commit comments