wikimedia / eslint-docgen

Automatically generate ESLint plugin documentation from rule metadata and test cases.
MIT License
10 stars 7 forks source link

Ensure config.docPath exists before writing output path. #88

Closed raineorshine closed 4 years ago

raineorshine commented 4 years ago

Thanks for the great library!

When the docPath directory does not already exist, it throws an ENOENT error. This PR uses mkdirp to ensure the directory is created before writing the path.

edg2s commented 4 years ago

Thanks! This looks good, just need to fix the whitespace issues mentioned here: https://github.com/wikimedia/eslint-docgen/pull/88/files

raineorshine commented 4 years ago

Okay, should be good to go now!