@@ -41,7 +41,7 @@ const INTERESTING_RULE_KEYS = new Set(['create', 'meta']);
41
41
* @returns Object
42
42
*/
43
43
function collectInterestingProperties ( properties , interestingKeys ) {
44
- // eslint-disable-next-line unicorn/prefer-object-from-entries
44
+ // eslint-disable-next-line unicorn/prefer-object-from-entries -- this is fine for now
45
45
return properties . reduce ( ( parsedProps , prop ) => {
46
46
const keyValue = module . exports . getKeyName ( prop ) ;
47
47
if ( interestingKeys . has ( keyValue ) ) {
@@ -128,7 +128,7 @@ function getRuleExportsESM(ast, scopeManager) {
128
128
] . includes ( statement . type )
129
129
)
130
130
. map ( ( statement ) => statement . declaration || statement . expression )
131
- // eslint-disable-next-line unicorn/prefer-object-from-entries
131
+ // eslint-disable-next-line unicorn/prefer-object-from-entries -- this is fine for now
132
132
. reduce ( ( currentExports , node ) => {
133
133
if ( node . type === 'ObjectExpression' ) {
134
134
// Check `export default { create() {}, meta: {} }`
@@ -184,7 +184,7 @@ function getRuleExportsCJS(ast, scopeManager) {
184
184
. map ( ( statement ) => statement . expression )
185
185
. filter ( ( expression ) => expression . type === 'AssignmentExpression' )
186
186
. filter ( ( expression ) => expression . left . type === 'MemberExpression' )
187
- // eslint-disable-next-line unicorn/prefer-object-from-entries
187
+ // eslint-disable-next-line unicorn/prefer-object-from-entries -- this is fine for now
188
188
. reduce ( ( currentExports , node ) => {
189
189
if (
190
190
node . left . object . type === 'Identifier' &&
@@ -600,7 +600,7 @@ module.exports = {
600
600
601
601
if ( reportArgs . length === 1 ) {
602
602
if ( reportArgs [ 0 ] . type === 'ObjectExpression' ) {
603
- // eslint-disable-next-line unicorn/prefer-object-from-entries
603
+ // eslint-disable-next-line unicorn/prefer-object-from-entries -- this is fine for now
604
604
return reportArgs [ 0 ] . properties . reduce ( ( reportInfo , property ) => {
605
605
const propName = module . exports . getKeyName ( property ) ;
606
606
0 commit comments