Skip to content

Commit

Permalink
fix rule override
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamlangford committed Oct 18, 2024
1 parent fdf9ad9 commit adb677d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @file These additional rules are meant for tests in order to make it stricter as well as simplify it */

const a11yRules = Object.keys(
require("eslint-plugin-jsx-a11y").rules
).map((rule) => [`jsx-a11y/${rule}`, "off"]);
const a11yRules = Object.keys(require("eslint-plugin-jsx-a11y").rules).map(
(rule) => [`jsx-a11y/${rule}`, "off"],
);

module.exports = {
env: {
Expand All @@ -18,7 +18,7 @@ module.exports = {
rules: {
// Enable more testing rules
"jest/prefer-expect-resolves": "error",
"@shopify/jest/no-snapshots": "warn",
"@shopify/jest-no-snapshots": "warn",

// Loosen types a bit to facilitate testing
"@typescript-eslint/no-explicit-any": "off",
Expand Down

0 comments on commit adb677d

Please sign in to comment.