Skip to content

Commit

Permalink
chore: fix generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matzkoh committed Sep 10, 2023
1 parent 050b25a commit 05c6ff8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .eslint-doc-generatorrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const prettier = require('prettier')

/** @type {import('eslint-doc-generator').GenerateOptions} */
module.exports = {
postprocess: async (content, filepath) => {
const configFile = await prettier.resolveConfigFile()
const config = require(configFile)
const resolvedConfig = await prettier.resolveConfig(filepath, config)

return prettier.format(content, {
...resolvedConfig,
filepath,
})
},
}
9 changes: 7 additions & 2 deletions prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
/** @type {import('prettier').Options} */
/** @type {import('prettier').Config} */
module.exports = {
plugins: ['prettier-plugin-packagejson'],
arrowParens: 'avoid',
printWidth: 100,
semi: false,
singleQuote: true,
trailingComma: 'all',
overrides: [
{
files: 'package.json',
options: {
plugins: ['prettier-plugin-packagejson'],
},
},
{
files: '*.{md,yaml,yml}',
options: {
Expand Down

0 comments on commit 05c6ff8

Please sign in to comment.