diff --git a/rules/prefer-exponentiation-operator.js b/rules/prefer-exponentiation-operator.js index 3e10bd767e..b33f2dac11 100644 --- a/rules/prefer-exponentiation-operator.js +++ b/rules/prefer-exponentiation-operator.js @@ -2,7 +2,7 @@ const getDocumentationUrl = require('./utils/get-documentation-url'); module.exports = { - create() {}, + create: () => ({}), meta: { type: 'suggestion', docs: { diff --git a/rules/regex-shorthand.js b/rules/regex-shorthand.js index 695bdba45b..53554f7078 100644 --- a/rules/regex-shorthand.js +++ b/rules/regex-shorthand.js @@ -2,7 +2,7 @@ const getDocumentationUrl = require('./utils/get-documentation-url'); module.exports = { - create() {}, + create: () => ({}), meta: { type: 'suggestion', docs: {