Linter for Awesome lists. Version 2.3.0, requires Node.js >=20. Actively maintained by Sindre Sorhus. Combines general Markdown rules with Awesome-specific rules (badge, ToC, list item format, etc.). Can lint local files or remote URLs via CLI. Integrates with GitHub Actions and pre-commit. Based on remark-lint. Different from generic linters by enforcing the Awesome list conventions, including spell-checking technology terms and community guidelines.
npm install awesome-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing awesome-lint, linting a local directory, using the report method, and linting a remote URL.
Update Node.js to v20 or later. Use nvm or download from nodejs.org.
Use import instead of require(). For scripts, add type: module to package.json or rename file to .mjs.
No action required, but be aware that they don't fail the lint step by default. Use --error-level to change.
Use FORCE_COLOR=0 environment variable or other color control.
Clone with full history (git clone --depth=0 or set fetch-depth: 0 in GitHub Actions).
Use import awesomeLint from 'awesome-lint' instead of require('awesome-lint').Use import awesomeLint from 'awesome-lint' then call awesomeLint.lint().
Run npm install remark to install the peer dependency.
Initialize a git repo (git init) or use a remote URL.