Skip to content

Commit 1eab921

Browse files
committed
fix(eslint): adjusts to eslint config
1 parent e5fc8ab commit 1eab921

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

commitlint.config.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line no-undef
21
module.exports = {
32
extends: ['@commitlint/config-conventional'],
43
};

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workspaces/adapter/src/testing/test-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class TestAdapter<LogType extends Logger = Logger, SpyType = any> impleme
150150

151151
async progress<ReturnType>(
152152
fn: (progress: { step: (prefix: string, message: string, ...args: any[]) => void }) => ReturnType,
153-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
153+
154154
_options?: { disabled?: boolean | undefined; name?: string | undefined } | undefined,
155155
): Promise<void | ReturnType> {
156156
return fn({ step() {} });

workspaces/eslint/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,27 @@ export default [
2020
reportUnusedDisableDirectives: 'error',
2121
},
2222
},
23+
{
24+
files: ['*.cjs'],
25+
languageOptions: {
26+
globals: {
27+
...globals.es2022,
28+
...globals.node,
29+
},
30+
sourceType: 'commonjs',
31+
},
32+
},
2333
eslint.configs.recommended,
2434
...tseslint.configs.recommended,
2535
{ ignores: ['**/dist/**', '**/fixtures/**'] },
2636
{
2737
rules: {
2838
'@typescript-eslint/no-explicit-any': 'off',
39+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
2940
'no-await-in-loop': 'off',
30-
'sort-imports': ['error', { ignoreDeclarationSort: true }],
3141
'prefer-destructuring': 'error',
3242
'prefer-template': 'error',
43+
'sort-imports': ['error', { ignoreDeclarationSort: true }],
3344
},
3445
},
3546
prettier,

workspaces/eslint/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"peerDependencies": {
2424
"@eslint/js": "^9.9.1",
2525
"eslint": "^9.9.1",
26+
"eslint-config-prettier": "^9.1.0",
2627
"globals": "^15.9.0",
2728
"typescript-eslint": "^8.2.0"
2829
},

0 commit comments

Comments
 (0)