diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 14ccc9b..84dcb12 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -1,4 +1,3 @@ -// eslint-disable-next-line no-undef module.exports = { extends: ['@commitlint/config-conventional'], }; diff --git a/package-lock.json b/package-lock.json index 7e4dd2c..cbe2906 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5317,7 +5317,6 @@ "version": "9.1.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", - "dev": true, "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" @@ -12082,6 +12081,7 @@ "peerDependencies": { "@eslint/js": "^9.9.1", "eslint": "^9.9.1", + "eslint-config-prettier": "^9.1.0", "globals": "^15.9.0", "typescript-eslint": "^8.2.0" } diff --git a/workspaces/adapter/src/testing/test-adapter.ts b/workspaces/adapter/src/testing/test-adapter.ts index f335526..4aa43a5 100644 --- a/workspaces/adapter/src/testing/test-adapter.ts +++ b/workspaces/adapter/src/testing/test-adapter.ts @@ -150,7 +150,7 @@ export class TestAdapter impleme async progress( fn: (progress: { step: (prefix: string, message: string, ...args: any[]) => void }) => ReturnType, - // eslint-disable-next-line @typescript-eslint/no-unused-vars + _options?: { disabled?: boolean | undefined; name?: string | undefined } | undefined, ): Promise { return fn({ step() {} }); diff --git a/workspaces/eslint/index.js b/workspaces/eslint/index.js index 9bbbacf..bff5bb5 100644 --- a/workspaces/eslint/index.js +++ b/workspaces/eslint/index.js @@ -20,16 +20,27 @@ export default [ reportUnusedDisableDirectives: 'error', }, }, + { + files: ['*.cjs'], + languageOptions: { + globals: { + ...globals.es2022, + ...globals.node, + }, + sourceType: 'commonjs', + }, + }, eslint.configs.recommended, ...tseslint.configs.recommended, { ignores: ['**/dist/**', '**/fixtures/**'] }, { rules: { '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], 'no-await-in-loop': 'off', - 'sort-imports': ['error', { ignoreDeclarationSort: true }], 'prefer-destructuring': 'error', 'prefer-template': 'error', + 'sort-imports': ['error', { ignoreDeclarationSort: true }], }, }, prettier, diff --git a/workspaces/eslint/package.json b/workspaces/eslint/package.json index 137ae37..96c29d1 100644 --- a/workspaces/eslint/package.json +++ b/workspaces/eslint/package.json @@ -23,6 +23,7 @@ "peerDependencies": { "@eslint/js": "^9.9.1", "eslint": "^9.9.1", + "eslint-config-prettier": "^9.1.0", "globals": "^15.9.0", "typescript-eslint": "^8.2.0" },