Skip to content

Commit fbfff3e

Browse files
authored
Merge pull request #64 from xmtp/gen-docs
Generate docs with typedoc
2 parents 6b7e8e8 + 7f1c135 commit fbfff3e

10 files changed

+300
-42
lines changed

.eslintrc.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,28 @@ module.exports = {
66
'prettier',
77
'plugin:@typescript-eslint/recommended',
88
'eslint-config-prettier',
9+
'plugin:jsdoc/recommended',
910
],
1011
parserOptions: {
1112
sourceType: 'module',
1213
warnOnUnsupportedTypeScriptVersion: false,
1314
},
1415
rules: {
1516
'prettier/prettier': 'error',
17+
'jsdoc/require-jsdoc': 'off',
18+
'jsdoc/require-description': 'off',
19+
'jsdoc/require-param': 'off',
20+
'jsdoc/require-param-type': 'off',
21+
'jsdoc/require-returns': 'off',
1622
},
17-
plugins: ['@typescript-eslint', 'prettier'],
18-
ignorePatterns: ['dist', 'node_modules', 'examples', 'scripts', 'src/types'],
23+
plugins: ['@typescript-eslint', 'prettier', 'jsdoc'],
24+
ignorePatterns: [
25+
'dist',
26+
'node_modules',
27+
'examples',
28+
'scripts',
29+
'src/types',
30+
'docs',
31+
'tmp',
32+
],
1933
}

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,7 @@ dist
116116
.yarn/install-state.gz
117117
.pnp.*
118118
scratch
119+
120+
# generated docs
121+
docs/
122+
tmp/

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
^16.9
1+
16.9

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
dist
22
coverage
3+
docs
4+
tmp

0 commit comments

Comments
 (0)