@@ -9,8 +9,7 @@ export default createRule("no-exports-from-components", {
99 docs : {
1010 description : "disallow value export" ,
1111 category : "Possible Errors" ,
12- // TODO: Switch to recommended: true, in next major version
13- recommended : false ,
12+ recommended : true ,
1413 } ,
1514 schema : [ ] ,
1615 messages : {
@@ -50,19 +49,13 @@ export default createRule("no-exports-from-components", {
5049 // Allow specific named exports
5150 return
5251 }
53- context . report ( {
54- node,
55- messageId : "disallowExport" ,
56- } )
52+ context . report ( { node, messageId : "disallowExport" } )
5753 }
5854
5955 return {
6056 ExportAllDeclaration ( node ) {
6157 if ( node . exportKind === "type" ) return
62- context . report ( {
63- node,
64- messageId : "disallowExport" ,
65- } )
58+ context . report ( { node, messageId : "disallowExport" } )
6659 } ,
6760 ExportDefaultDeclaration ( node ) {
6861 if ( ( node . exportKind as "value" | "type" ) === "type" ) return
@@ -78,10 +71,7 @@ export default createRule("no-exports-from-components", {
7871 // Allow specific named exports
7972 continue
8073 }
81- context . report ( {
82- node : spec ,
83- messageId : "disallowExport" ,
84- } )
74+ context . report ( { node : spec , messageId : "disallowExport" } )
8575 }
8676 } ,
8777 }
0 commit comments