Skip to content

Commit 5f67fe9

Browse files
committed
use tsdoc
1 parent 1b5fa38 commit 5f67fe9

File tree

11 files changed

+681
-443
lines changed

11 files changed

+681
-443
lines changed

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ module.exports = {
1919
sourceType: 'module',
2020
projectFolderIgnoreList: ['dist'],
2121
},
22-
plugins: ['jsdoc', '@typescript-eslint', 'prettier', 'jest'],
22+
plugins: ['jsdoc', 'tsdoc', '@typescript-eslint', 'prettier', 'jest'],
2323
rules: {
2424
'no-dupe-class-members': 'off', // Off due to conflict with typescript overload functions
2525
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
2626
'@typescript-eslint/array-type': ['warn', { default: 'array-simple' }],
2727
'@typescript-eslint/return-await': 'off',
2828
'jsdoc/check-alignment': 'error',
2929
'jsdoc/check-indentation': 'error',
30+
'jsdoc/no-types': 'error',
31+
'tsdoc/syntax': 'error',
3032
'@typescript-eslint/space-before-function-paren': 0,
3133
'@typescript-eslint/no-explicit-any': 'off',
3234
'@typescript-eslint/explicit-function-return-type': 'off',

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2+
"plugins": [
3+
"prettier-plugin-jsdoc"
4+
],
25
"singleQuote": true,
36
"arrowParens": "always",
47
"semi": false,
58
"bracketSpacing": true,
69
"trailingComma": "es5",
10+
"tsdoc": true,
711
"printWidth": 80
812
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,12 @@
8888
"eslint-config-standard-with-typescript": "^17.0.0",
8989
"eslint-plugin-import": "2",
9090
"eslint-plugin-jest": "^24.1.8",
91-
"eslint-plugin-jsdoc": "^32.2.0",
91+
"eslint-plugin-jsdoc": "^39.6.4",
9292
"eslint-plugin-node": "11",
9393
"eslint-plugin-prettier": "^3.1.4",
9494
"eslint-plugin-promise": "4",
9595
"eslint-plugin-standard": "5",
96+
"eslint-plugin-tsdoc": "^0.2.17",
9697
"gzip-size": "^6.0.0",
9798
"jest": "^26.6.3",
9899
"jest-fetch-mock": "^3.0.3",
@@ -101,6 +102,7 @@
101102
"lint-staged": "11.1.2",
102103
"nodemon": "^2.0.16",
103104
"prettier": "^2.2.1",
105+
"prettier-plugin-jsdoc": "^0.4.2",
104106
"pretty-bytes": "^5.6.0",
105107
"rollup": "^2.79.1",
106108
"rollup-plugin-terser": "^7.0.0",

0 commit comments

Comments
 (0)