Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2fde783

Browse files
committedJun 28, 2022
chore: add tsdoc linting
1 parent c85ea04 commit 2fde783

File tree

5 files changed

+39
-2
lines changed

5 files changed

+39
-2
lines changed
 

‎.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ indent_style = space
77
indent_size = 2
88
end_of_line = lf
99
charset = utf-8
10-
trim_trailing_whitespace = false # FIX: disabled for markdown in TSDoc comments
10+
trim_trailing_whitespace = false
1111
insert_final_newline = true
1212

1313
[**/Makefile]

‎configs/.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ indent_style = space
77
indent_size = 2
88
end_of_line = lf
99
charset = utf-8
10-
trim_trailing_whitespace = true
10+
trim_trailing_whitespace = false # FIXME: disabled for markdown in TSDoc comments
1111
insert_final_newline = true
1212

1313
[**/Makefile]

‎configs/.eslintrc.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ module.exports = {
1616
// 'plugin:prettier/recommended',
1717
],
1818

19+
plugins: ['eslint-plugin-tsdoc'],
20+
1921
rules: {
2022
'no-restricted-syntax': 0,
23+
'tsdoc/syntax': 'warn',
2124
// 'import/extensions': ['error', 'always'],
2225
// 'prettier/prettier': ['error'],
2326
},

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"eslint-plugin-prettier": "^4.0.0",
4343
"eslint-plugin-react": "^7.30.0",
4444
"eslint-plugin-react-hooks": "^4.6.0",
45+
"eslint-plugin-tsdoc": "^0.2.16",
4546
"eslint-plugin-vue": "^9.1.1",
4647
"husky": "^8.0.1",
4748
"lerna": "^5.1.4",

‎pnpm-lock.yaml

+33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.