Skip to content

Commit f56b076

Browse files
chore: allow underscore _ for lint (#67)
* chore: allow underscore _ for lint * 🤖 Documentation auto-update --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a98d446 commit f56b076

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Parameters:
168168
- `params.entries`: The entries of the documentation (functions, constants and classes).
169169
- `params.options`: Optional configuration to render the Markdown content. See `types.ts` for details.
170170

171-
[:link: Source](https://github.com/peterpeterparker/tsdoc-markdown/tree/main/src/lib/markdown.ts#L361)
171+
[:link: Source](https://github.com/peterpeterparker/tsdoc-markdown/tree/main/src/lib/markdown.ts#L365)
172172

173173
### :gear: generateDocumentation
174174

eslint.config.mjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import love from 'eslint-config-love';
22
import eslintConfigPrettier from 'eslint-config-prettier';
33
import globals from 'globals';
4+
import tseslint from 'typescript-eslint';
45

56
export default [
67
{
@@ -24,6 +25,10 @@ export default [
2425
parserOptions: {
2526
project: ['tsconfig.json']
2627
}
28+
},
29+
30+
plugins: {
31+
'@typescript-eslint': tseslint.plugin
2732
}
2833
},
2934

@@ -35,7 +40,15 @@ export default [
3540
'@typescript-eslint/no-unsafe-type-assertion': 'off',
3641
'@typescript-eslint/strict-boolean-expressions': 'off',
3742
'@typescript-eslint/no-unnecessary-condition': 'off',
38-
'@typescript-eslint/no-non-null-assertion': 'off'
43+
'@typescript-eslint/no-non-null-assertion': 'off',
44+
'@typescript-eslint/no-unused-vars': [
45+
'warn',
46+
{
47+
argsIgnorePattern: '^_',
48+
varsIgnorePattern: '^_',
49+
caughtErrorsIgnorePattern: '^_'
50+
}
51+
]
3952
}
4053
}
4154
];

0 commit comments

Comments
 (0)