node_modules/eslint/lib/rules/no-void.js in immosquare-cleaner-0.1.51 vs node_modules/eslint/lib/rules/no-void.js in immosquare-cleaner-0.1.52

- old
+ new

@@ -11,10 +11,12 @@ /** @type {import('../shared/types').Rule} */ module.exports = { meta: { type: "suggestion", + defaultOptions: [{}], + docs: { description: "Disallow `void` operators", recommended: false, url: "https://eslint.org/docs/latest/rules/no-void" }, @@ -26,21 +28,19 @@ schema: [ { type: "object", properties: { allowAsStatement: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false } ] }, create(context) { - const allowAsStatement = - context.options[0] && context.options[0].allowAsStatement; + const [{ allowAsStatement }] = context.options; //-------------------------------------------------------------------------- // Public //--------------------------------------------------------------------------