We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2252f3b commit a30976fCopy full SHA for a30976f
lib/rules/fixer-return.js
@@ -9,8 +9,8 @@
9
// Requirements
10
// ------------------------------------------------------------------------------
11
12
-// const utils = require('../utils');
13
-const astUtils = require('../ast-utils.js');
+const utils = require('../utils');
+
14
15
// Rule Definition
16
@@ -69,7 +69,7 @@ module.exports = {
69
node.type === 'FunctionExpression' &&
70
node.body.type === 'BlockStatement' &&
71
// check if it is naming fix
72
- astUtils.getStaticPropertyName(parent) === 'fix',
+ utils.getKeyName(parent) === 'fix',
73
node,
74
};
75
},
0 commit comments