mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00

The previous package was outdated, preventing us from updating TS. This one also lints YAML and JSON, and applies many more rules to the test files, explaining all the changes in this PR.
35 lines
779 B
JavaScript
35 lines
779 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
ignores: [ 'node_modules/', 'LICENSE.md', '.github/' ],
|
|
|
|
globs: [ '**/*.md' ],
|
|
|
|
config: {
|
|
// Enable all markdownlint rules
|
|
default: true,
|
|
|
|
// Set list indent level to 4 which mkdocs / Python-Markdown requires
|
|
MD007: { indent: 4 },
|
|
|
|
// Enable line length check but exclude tables and code blocks
|
|
MD013: {
|
|
line_length: 120,
|
|
tables: false,
|
|
code_blocks: false,
|
|
},
|
|
|
|
// Allow multiple subheadings with the same content
|
|
// across different section (#1 ##A ##B #2 ##A ##B)
|
|
MD024: {
|
|
allow_different_nesting: true,
|
|
},
|
|
|
|
// Set Ordered list item prefix to "ordered" (use 1. 2. 3. not 1. 1. 1.)
|
|
MD029: { style: 'ordered' },
|
|
|
|
// Allow inline HTML
|
|
MD033: false,
|
|
},
|
|
};
|