From 9285c9497023c007727d148199e6a98377425176 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Sat, 20 Apr 2024 15:24:56 +0200 Subject: [PATCH] chore: add empty meta.schema to no-option rules --- .eslintrc.json | 1 - lib/rules/no-async-before.js | 1 + lib/rules/no-async-tests.js | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9a7bed71..5c433f50 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,7 +15,6 @@ "plugin:mocha/recommended" ], "rules": { - "eslint-plugin/require-meta-schema": "off", "n/no-extraneous-require": [ "error", { diff --git a/lib/rules/no-async-before.js b/lib/rules/no-async-before.js index b8f45052..d83144f1 100644 --- a/lib/rules/no-async-before.js +++ b/lib/rules/no-async-before.js @@ -8,6 +8,7 @@ module.exports = { category: 'Possible Errors', recommended: true, }, + schema: [], messages: { unexpected: 'Avoid using async functions with Cypress before / beforeEach functions', }, diff --git a/lib/rules/no-async-tests.js b/lib/rules/no-async-tests.js index 9b505260..bb155479 100644 --- a/lib/rules/no-async-tests.js +++ b/lib/rules/no-async-tests.js @@ -8,6 +8,7 @@ module.exports = { category: 'Possible Errors', recommended: true, }, + schema: [], messages: { unexpected: 'Avoid using async functions with Cypress tests', },