diff options
| author | Joshua May <git@hotdog.horse> | 2024-02-11 01:16:09 +0100 |
|---|---|---|
| committer | Joshua May <git@hotdog.horse> | 2024-02-11 01:16:09 +0100 |
| commit | 43d3fe7fed71774817faeb402de7e3fe50e171cf (patch) | |
| tree | 08fff182d7c6d2d81ec9adba6e64a35fed521788 /src | |
| parent | 25f595414ea51388aacca7269f9949ffe6db1151 (diff) | |
| download | slskd-43d3fe7fed71774817faeb402de7e3fe50e171cf.tar.gz | |
Added exceptions to suppress noisy errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/.eslintrc.js | 22 |
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'], + }, + ], + }, }; |
