xojs / xo

❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
MIT License
7.7k stars 289 forks source link

Try to lint code in markdown files #45

Open arthurvr opened 9 years ago

arthurvr commented 9 years ago

For cases like https://github.com/sindresorhus/load-grunt-tasks/commit/e758ed4a667cab0ed02246e8a9b5d20f0bbe30eb

It's easy to miss things while writing up example code and it may be worth investigating how we could lint those.

gaboesquivel commented 9 years ago

there's a plugin for eslint that adds support for markdown, however it does not seem ready yet. Anyways... I can help on this one.

gaboesquivel commented 9 years ago

hey @sindresorhus, would it be a good a idea to make eslint/eslint-plugin-markdown a default plugin and then call xo --ext .js --ext .md to lint markdown?

gaboesquivel commented 8 years ago

fyi, eslint-plugin-markdown v1.0.0-beta.1 was just published to npm

LitoMore commented 7 years ago

fyi, standard-markdown

LitoMore commented 7 years ago

BTW, I don't recommend using tab indentation in code block, because tab is not conducive to reading.

Like this project -> listr

Tip: Tab indentation is XO's default code style.