Skip to content

Commit

Permalink
Clean up plugins handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronMoat committed Sep 25, 2024
1 parent b6a2a46 commit 2450487
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
7 changes: 1 addition & 6 deletions packages/eslint-config-skuba/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
const base = require('eslint-config-seek/base');
const extensions = require('eslint-config-seek/extensions');
const jestPlugin = require('eslint-plugin-jest');
const tsdoc = require('eslint-plugin-tsdoc');
const eslintPluginYml = require('eslint-plugin-yml');
const tseslint = require('typescript-eslint');

const { js: jsExtensions, ts: tsExtensions } = extensions;

module.exports = [
{ plugins: { jest: jestPlugin } },
{
ignores: [
// Gantry resource files support non-standard syntax (Go templating)
Expand All @@ -29,10 +27,7 @@ module.exports = [
'tmp*/',
],
},
...base.map(({ plugins: { jest: _jest, ...restPlugins } = {}, ...conf }) => ({
...conf,
plugins: restPlugins,
})),
...base,
{
rules: {
'import-x/no-duplicates': 'error',
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config-skuba/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"skuba": "node --experimental-vm-modules ../../lib/skuba"
},
"dependencies": {
"eslint-config-seek": "^14.0.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-config-seek": "^14.0.1",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint-plugin-yml": "^1.14.0",
"typescript-eslint": "^8.6.0"
Expand Down
13 changes: 5 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2450487

Please sign in to comment.