File tree 7 files changed +1230
-103
lines changed
7 files changed +1230
-103
lines changed Original file line number Diff line number Diff line change
1
+ plugins:
2
+ - "./node_modules/prettier-plugin-jsdoc/dist/index.js"
Original file line number Diff line number Diff line change 6
6
7
7
import { themes as prismThemes } from "prism-react-renderer" ;
8
8
9
- /** @type {import(' @docusaurus/types' ).Config } */
9
+ /** @type {import(" @docusaurus/types" ).Config } */
10
10
const config = {
11
11
title : "v8r" ,
12
12
tagline : "A command-line validator that's on your wavelength" ,
@@ -39,7 +39,7 @@ const config = {
39
39
presets : [
40
40
[
41
41
"classic" ,
42
- /** @type {import(' @docusaurus/preset-classic' ).Options } */
42
+ /** @type {import(" @docusaurus/preset-classic" ).Options } */
43
43
( {
44
44
docs : {
45
45
sidebarPath : "./sidebars.js" ,
@@ -55,7 +55,7 @@ const config = {
55
55
] ,
56
56
57
57
themeConfig :
58
- /** @type {import(' @docusaurus/preset-classic' ).ThemeConfig } */
58
+ /** @type {import(" @docusaurus/preset-classic" ).ThemeConfig } */
59
59
( {
60
60
navbar : {
61
61
title : "v8r" ,
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Creating a sidebar enables you to:
3
- - create an ordered group of docs
4
- - render a sidebar for each doc of that group
5
- - provide next/previous navigation
6
-
7
- The sidebars can be generated from the filesystem, or explicitly defined here.
8
-
9
- Create as many sidebars as you want.
3
+ *
4
+ * - Create an ordered group of docs
5
+ * - Render a sidebar for each doc of that group
6
+ * - Provide next/previous navigation
7
+ *
8
+ * The sidebars can be generated from the filesystem, or explicitly defined
9
+ * here.
10
+ *
11
+ * Create as many sidebars as you want.
10
12
*/
11
13
12
14
// @ts -check
13
15
14
- /** @type {import(' @docusaurus/plugin-content-docs' ).SidebarsConfig } */
16
+ /** @type {import(" @docusaurus/plugin-content-docs" ).SidebarsConfig } */
15
17
const sidebars = {
16
18
// By default, Docusaurus generates a sidebar from the docs folder structure
17
19
docSidebar : [ { type : "autogenerated" , dirName : "." } ] ,
Original file line number Diff line number Diff line change 1
1
const globals = require ( "globals" ) ;
2
2
const js = require ( "@eslint/js" ) ;
3
+ const jsdocPlugin = require ( "eslint-plugin-jsdoc" ) ;
3
4
const prettierConfig = require ( "eslint-config-prettier" ) ;
4
5
const prettierPlugin = require ( "eslint-plugin-prettier" ) ;
5
6
const mochaPlugin = require ( "eslint-plugin-mocha" ) ;
@@ -11,10 +12,12 @@ module.exports = [
11
12
js . configs . recommended ,
12
13
mochaPlugin . configs . flat . recommended ,
13
14
prettierConfig ,
15
+ jsdocPlugin . configs [ "flat/recommended-error" ] ,
14
16
{
15
17
plugins : {
16
18
mocha : mochaPlugin ,
17
19
prettier : prettierPlugin ,
20
+ jsdoc : jsdocPlugin ,
18
21
} ,
19
22
languageOptions : {
20
23
ecmaVersion : 2022 ,
@@ -29,6 +32,8 @@ module.exports = [
29
32
"mocha/no-skipped-tests" : [ "error" ] ,
30
33
"mocha/no-exclusive-tests" : [ "error" ] ,
31
34
"mocha/max-top-level-suites" : [ "off" ] ,
35
+ "jsdoc/require-jsdoc" : [ "off" ] ,
36
+ "jsdoc/tag-lines" : [ "off" ] , // let prettier-plugin-jsdoc take care of this
32
37
} ,
33
38
} ,
34
39
] ;
You can’t perform that action at this time.
0 commit comments