Skip to content

Commit

Permalink
Add eslint rule for enforcing correct TSDoc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
draperunner committed Apr 30, 2021
1 parent cef43d2 commit 5eb6cfd
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ module.exports = {
env: {
node: true,
},
plugins: ['@typescript-eslint', 'prettier'],
plugins: ['@typescript-eslint', 'prettier', 'eslint-plugin-tsdoc'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/member-delimiter-style': 'off',
'prettier/prettier': 'error',
'tsdoc/syntax': 'error',
},
}
67 changes: 67 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"eslint-plugin-flowtype": "^4.7.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.2.0",
"eslint-plugin-tsdoc": "^0.2.14",
"firebase-tools": "^8.17.0",
"gatsby-theme-docz": "^2.3.1",
"prettier": "^2.2.1",
Expand Down

0 comments on commit 5eb6cfd

Please sign in to comment.