diff options
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/arrow-body-style.js')
-rw-r--r-- | tools/node_modules/eslint/lib/rules/arrow-body-style.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/lib/rules/arrow-body-style.js b/tools/node_modules/eslint/lib/rules/arrow-body-style.js index 83fc28aba0..b1fed8c15d 100644 --- a/tools/node_modules/eslint/lib/rules/arrow-body-style.js +++ b/tools/node_modules/eslint/lib/rules/arrow-body-style.js @@ -46,7 +46,7 @@ module.exports = { { type: "object", properties: { - requireReturnForObjectLiteral: { type: "boolean", default: false } + requireReturnForObjectLiteral: { type: "boolean" } }, additionalProperties: false } @@ -82,7 +82,7 @@ module.exports = { * @returns {boolean} `true` if it changes semantics if `;` or `}` followed by the token are removed. */ function hasASIProblem(token) { - return token && token.type === "Punctuator" && /^[([/`+-]/.test(token.value); + return token && token.type === "Punctuator" && /^[([/`+-]/u.test(token.value); } /** |