diff --git a/eslint.config.js b/eslint.config.js index ef0c187dd..79a37bd19 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -14,20 +14,17 @@ const tseslintConfigs = tseslint.config( languageOptions: { parserOptions: { project: './tsconfig.js.json' }, }, - extends: [ - ...tseslint.configs.recommended, - ], + extends: [...tseslint.configs.recommended], rules: { '@typescript-eslint/no-var-requires': 'off', // (tseslint does not autodetect commonjs context ) }, - }, { + }, + { files: tsconfigTsFiles, languageOptions: { parserOptions: { project: './tsconfig.ts.json' }, }, - extends: [ - ...tseslint.configs.recommended, - ], + extends: [...tseslint.configs.recommended], }, ); @@ -59,17 +56,20 @@ module.exports = [ files: ['**/*.test.{js,mjs,cjs}'], rules: { 'no-unused-vars': 'off', // lots in tests, minimise churn for now - } + }, }, { files: [...tsconfigTsFiles, ...tsconfigJsFiles], rules: { - '@typescript-eslint/ban-ts-comment': ['error', { - 'ts-expect-error': 'allow-with-description', - 'ts-ignore': 'allow-with-description', - 'ts-nocheck': true, - 'ts-check': true, - }], + '@typescript-eslint/ban-ts-comment': [ + 'error', + { + 'ts-expect-error': 'allow-with-description', + 'ts-ignore': 'allow-with-description', + 'ts-nocheck': true, + 'ts-check': true, + }, + ], }, }, ]; diff --git a/esm.mjs b/esm.mjs index e7190a1b8..796ec3a58 100644 --- a/esm.mjs +++ b/esm.mjs @@ -12,5 +12,5 @@ export const { Command, Argument, Option, - Help + Help, } = commander; diff --git a/examples/action-this.js b/examples/action-this.js index 9229ce3b1..d6ac722ee 100644 --- a/examples/action-this.js +++ b/examples/action-this.js @@ -9,7 +9,7 @@ program .command('serve') .argument('