@davidsneighbour/remark-config v2024.3.6
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:
remark-preset-lint-styleguide
- a preset to maintain good quality readable markdown files.remark-preset-lint-consistent
- a preset that enforces consistency and helps avoid common known pitfalls in markdown parsers (consistency rules may override the styleguide rules).
The following plugins are added:
- remark-frontmatter to support frontmatter in markdown files
The following rules have different settings than the presets:
- remark-lint-linebreak-style - prefer unix linebreak
\n
. - remark-lint-maximum-line-length - removes any limit to line length.
- remark-lint-no-file-name-irregular-characters - lint filenames for irregular characters.
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 |
6 days ago
6 days ago
7 days ago
8 days ago
14 days ago
14 days ago
17 days ago
18 days ago
17 days ago
19 days ago
20 days ago
20 days ago
20 days ago
22 days ago
22 days ago
30 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
7 months ago
7 months ago
7 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
5 months ago
9 months ago
9 months ago
6 months ago
6 months ago
10 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago