paweldrozd / eslint-plugin-markdownlint

Eslint plugin which runs markdownlint. This is github mirror repository of https://gitlab.com/pawelbbdrozd/eslint-plugin-markdownlint
MIT License
23 stars 2 forks source link

feat: read .markdownlint.json config file and merge it with the defau… #11

Open neverbot opened 8 months ago

neverbot commented 8 months ago

First solution to read a config file (same file name as the markdownlint package: .markdownlint.json) and merges the options with the default ones used by this package.

Solves #6 I think.

Probably is not the best place to read the config file (the file is read multiple times, every time a rule is going to be checked), but it's the place where the markdownlint object is imported and used, and I didn't want to change more code, just make this feature available in an easy way.