aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJoshua May <git@hotdog.horse>2024-02-11 01:16:09 +0100
committerJoshua May <git@hotdog.horse>2024-02-11 01:16:09 +0100
commit43d3fe7fed71774817faeb402de7e3fe50e171cf (patch)
tree08fff182d7c6d2d81ec9adba6e64a35fed521788 /src/web
parent25f595414ea51388aacca7269f9949ffe6db1151 (diff)
downloadslskd-43d3fe7fed71774817faeb402de7e3fe50e171cf.tar.gz
Added exceptions to suppress noisy errors
Diffstat (limited to 'src/web')
-rw-r--r--src/web/.eslintrc.js22
1 files changed, 22 insertions, 0 deletions
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'],
+ },
+ ],
+ },
};