Skip to content

Commit

Permalink
Add TSDoc linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoSanchez committed Oct 29, 2024
1 parent dff8b1f commit 2c311b9
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 39 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
'plugins': [
'react',
'@typescript-eslint',
'eslint-plugin-tsdoc',
'import'
],
'rules': {
Expand Down Expand Up @@ -63,5 +64,11 @@ module.exports = {
'import/no-self-import': 'error',
'import/no-default-export': 'error',
}
}, {
// Enable TSDoc rules for TypeScript files, allowing the use of JSDoc in JS files.
'files': ['**/*.ts', '**/*.tsx'],
'rules': {
'tsdoc/syntax': 'warn'
}
}]
}
Loading

0 comments on commit 2c311b9

Please sign in to comment.