@davidsneighbour/remark-config
TypeScript icon, indicating that this package has built-in type declarations

2024.3.11 • Public • Published

Remark Lint

Why?

This package contains configuration for remark-lint to lint markdown code styles. It bundles standard presets and sets some opinionated rules.. It is used by @davidsneighbour to lint markdown files in all projects.

Configuration

Method 1: add it as JSON structure in .remarkrc at the root of your project:

{
  "plugins": ["@davidsneighbour/remark-config"]
}

Method 2: add it as a configuration object under remarkConfig in package.json:

{
  "remarkConfig": {
    "plugins": ["@davidsneighbour/remark-config"]
  }
}

Method 3: add it as a JavaScript object in .remarkrc.js at the root of your project. This package is ESM only now:

import defaultRemarkConfig from "@davidsneighbour/remark-config";

const localRemarkConfig = [
    // add your changes here
];

const mergedConfiguration = {
    ...defaultRemarkConfig,
    ...localRemarkConfig,
};

export default mergedConfiguration;

Or without changes:

import defaultRemarkConfig from "@davidsneighbour/remark-config";
export default defaultRemarkConfig;

Configuration rules in this package

The davidsneighbour ruleset for remark-lint uses the following two presets:

The following plugins are added:

The following rules have different settings than the presets:

Scripts in package.json

"scripts": {
 "lint:remark": "remark",
 "lint:remark2": "remark ."
}

All configurations

Configurations
Build Tools
Babel Webpack
Testing
Cypress HTML Validate
Linters and Formatters
Browserslist ESLint PostCSS
Prettier Stylelint
Project Management
Commitlint Release
Markdown and Writing
Markdownlint Remark Lint
Other Tools
Bootstrap Tools

Package Sidebar

Install

npm i @davidsneighbour/remark-config

Weekly Downloads

196

Version

2024.3.11

License

MIT

Unpacked Size

17.4 kB

Total Files

7

Last publish

Collaborators

  • davidsneighbour