Skip to content

Commit

Permalink
migrated to tsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
pinpong committed Sep 16, 2023
1 parent f055c8e commit 0f79751
Show file tree
Hide file tree
Showing 86 changed files with 2,321 additions and 1,578 deletions.
15 changes: 13 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:import/errors',
'plugin:jsdoc/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'jsdoc'],
root: true,
env: {
es6: true,
Expand All @@ -35,5 +34,17 @@ module.exports = {
],
'import/no-unresolved': ['error'],
'no-undef': ['error'],
'tsdoc/syntax': 'error',
'require-jsdoc': 'error',
/// TODO: https://github.com/microsoft/tsdoc/issues/209
'jsdoc/require-param': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-description': 'error',
'jsdoc/require-param-name': 'error',
'jsdoc/require-throws': 'error',
'jsdoc/no-bad-blocks': 'error',
'jsdoc/empty-tags': 'error',
'jsdoc/require-jsdoc': 'error',
'jsdoc/check-syntax': 1,
},
};
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install
run: yarn install
- name: Build
run: npx typedoc --plugin typedoc-plugin-missing-exports
run: yarn docs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
yarn lint-staged --
4 changes: 2 additions & 2 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
'*.{cjs,js,ts,json,md}': 'yarn format',
'!*.{cjs,md}': 'yarn lint',
'*.{cjs,js,ts,json,md}': ['yarn format'],
'*.{cjs,md}': [() => 'yarn lint'],
};
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"prepack": "pinst --disable",
"postpack": "pinst --enable",
"build": "rm -rf ./dist && tsc",
"docs": "typedoc",
"test": "jest",
"format": "yarn prettier . --write",
"lint": "eslint . --fix"
Expand All @@ -34,15 +35,15 @@
"eslint": "8.49.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsdoc": "46.8.0",
"eslint-plugin-jsdoc": "^46.8.1",
"eslint-plugin-tsdoc": "0.2.17",
"husky": "8.0.3",
"jest": "29.7.0",
"lint-staged": "14.0.1",
"pinst": "3.0.0",
"prettier": "3.0.3",
"ts-jest": "29.1.1",
"typedoc": "0.25.1",
"typedoc-plugin-missing-exports": "2.1.0",
"typescript": "5.2.2"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 0f79751

Please sign in to comment.