diff --git a/README.md b/README.md index dd250c1e7..972b7d22c 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ It bundles config for standard tools such as eslint, mocha, etc and lets you con } ``` - You can find the complete default config [here](https://github.com/ipfs/aegir/blob/main/src/config/user.js#L12) and the types [here](https://github.com/ipfs/aegir/blob/main/src/types.d.ts). + You can find the complete default config [here](https://github.com/ipfs/aegir/blob/main/src/config/user.js#L12) and the types [here](https://github.com/ipfs/aegir/blob/main/src/types.ts). ## Continuous Integration diff --git a/eslint.config.js b/eslint.config.js index 9e1b6edf8..404961387 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -116,10 +116,6 @@ setParser('neostandard/ts', eslintParser, { ecmaVersion: 'latest' }) -// TODO: not compatible with ESLint 9x yet -// addPlugin('neostandard/ts', 'etc', etc) -// addRule('neostandard/ts', 'etc/prefer-interface', 'error') // https://ncjamieson.com/prefer-interfaces/ - addRule('neostandard/ts', 'no-return-await', 'off') // disable this rule to use @typescript-eslint/return-await instead addRule('neostandard/ts', '@typescript-eslint/no-use-before-define', [ 'error', { diff --git a/src/dependency-check.js b/src/dependency-check.js index 0e9aaa0dd..8f0a93dbe 100644 --- a/src/dependency-check.js +++ b/src/dependency-check.js @@ -39,9 +39,8 @@ const tasks = new Listr( title: 'dependency-check', /** * @param {GlobalOptions & DependencyCheckOptions} ctx - * @param {Task} task */ - task: async (ctx, task) => { + task: async (ctx) => { let missingOrUnusedPresent = false // check production dependencies diff --git a/src/lint.js b/src/lint.js index d02669581..10e6c2440 100644 --- a/src/lint.js +++ b/src/lint.js @@ -27,9 +27,8 @@ const tasks = new Listr( /** * * @param {GlobalOptions & LintOptions} ctx - * @param {Task} task */ - task: async (ctx, task) => { + task: async (ctx) => { const eslint = new ESLint({ fix: ctx.fix, overrideConfigFile: fromAegir('eslint.config.js') @@ -64,10 +63,7 @@ const tasks = new Listr( }, { title: 'tsc', - /** - * @param {GlobalOptions & LintOptions} ctx - */ - enabled: ctx => hasTsconfig && !isTypescript, + enabled: () => hasTsconfig && !isTypescript, /** * @param {GlobalOptions & LintOptions} ctx * @param {Task} task