From 43d3fe7fed71774817faeb402de7e3fe50e171cf Mon Sep 17 00:00:00 2001 From: Joshua May Date: Sun, 11 Feb 2024 01:16:09 +0100 Subject: Added exceptions to suppress noisy errors --- src/web/.eslintrc.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/web') diff --git a/src/web/.eslintrc.js b/src/web/.eslintrc.js index e1023708..044e87a4 100644 --- a/src/web/.eslintrc.js +++ b/src/web/.eslintrc.js @@ -1,3 +1,11 @@ +const overrides = { + 'id-length': 'off', // noisy + 'no-console': 'off', // noisy + 'react/forbid-component-props': 'off', // noisy + 'react/prop-types': 'off', // noisy + 'unicorn/no-array-reduce': 'off', // noisy +}; + /** @type {import('eslint').Linter.Config} */ module.exports = { extends: ['canonical/auto', 'canonical/browser', 'canonical/node'], @@ -20,6 +28,10 @@ module.exports = { }, }, }, + rules: { + ...overrides, + 'react/no-set-state': 'off', // only useful when using state libs + }, }, { extends: ['canonical/jest'], @@ -27,4 +39,14 @@ module.exports = { }, ], root: true, + rules: { + ...overrides, + + 'import/no-unassigned-import': [ + 'error', + { + allow: ['semantic-ui-less/semantic.less', '**/*.css'], + }, + ], + }, }; -- cgit v1.2.3