Linter for Awesome lists
Intended to make it easier to create and maintain Awesome lists.
Includes a bunch of general Markdown rules and some Awesome specific rules.
$ npm install --global awesome-lint
❯ awesome-lint
readme.md:1:1
✖ 1:1 Missing Awesome badge after the main heading awesome-badge
✖ 12:1 Marker style should be - unordered-list-marker-style
✖ 199:3 Remove trailing slash (https://sindresorhus.com) trailing-slash
3 errors
Add it as a test
script in package.json and activate Travis CI to lint on new commits and pull requests.
{
"scripts": {
"test": "awesome-lint"
},
"devDependencies": {
"awesome-lint": "*"
}
}
language: node_js
node_js:
- 'node'
$ npm install awesome-lint
const awesomeLint = require('awesome-lint');
awesomeLint.report();
Returns a Promise
for a VFile
.
Show the lint output. This can be custom reported by setting options.reporter=<function>
and passing in options
as a parameter.
MIT