Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
3 changes: 1 addition & 2 deletions src/dependency-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions src/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down