Configure no-unused-vars with argsIgnorePattern/varsIgnorePattern '^_' across the shared packages. Unused args/vars still error; an explicit underscore prefix is the opt-out (e.g. omitting a key via destructure, or skipping leading positional params).
21 lines
466 B
JavaScript
21 lines
466 B
JavaScript
import js from '@eslint/js';
|
|
import ts from 'typescript-eslint';
|
|
import prettier from 'eslint-config-prettier';
|
|
import globals from 'globals';
|
|
|
|
export default ts.config(
|
|
{ ignores: ['dist/', 'coverage/'] },
|
|
js.configs.recommended,
|
|
...ts.configs.recommended,
|
|
prettier,
|
|
{
|
|
languageOptions: { globals: { ...globals.node } },
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' }
|
|
]
|
|
}
|
|
}
|
|
);
|