Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8d62116

Browse filesBrowse files
watildegibfahn
authored andcommitted
tools: introduce remark-preset-lint-node
PR-URL: #12756 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent 3d499b3 commit 8d62116
Copy full SHA for 8d62116

File tree

Expand file treeCollapse file tree

2 files changed

+86
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+86
-0
lines changed
Open diff view settings
Collapse file
+44Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// @see https://github.com/nodejs/node/blob/master/doc/STYLE_GUIDE.md
2+
3+
'use strict';
4+
5+
module.exports.plugins = [
6+
require('remark-lint'),
7+
require('remark-lint-checkbox-content-indent'),
8+
require('remark-lint-definition-spacing'),
9+
require('remark-lint-fenced-code-flag'),
10+
require('remark-lint-final-definition'),
11+
require('remark-lint-final-newline'),
12+
require('remark-lint-hard-break-spaces'),
13+
require('remark-lint-no-auto-link-without-protocol'),
14+
require('remark-lint-no-blockquote-without-caret'),
15+
require('remark-lint-no-duplicate-definitions'),
16+
require('remark-lint-no-file-name-articles'),
17+
require('remark-lint-no-file-name-consecutive-dashes'),
18+
require('remark-lint-no-file-name-outer-dashes'),
19+
require('remark-lint-no-heading-content-indent'),
20+
require('remark-lint-no-heading-indent'),
21+
require('remark-lint-no-inline-padding'),
22+
require('remark-lint-no-multiple-toplevel-headings'),
23+
require('remark-lint-no-shell-dollars'),
24+
require('remark-lint-no-shortcut-reference-image'),
25+
require('remark-lint-no-table-indentation'),
26+
require('remark-lint-no-tabs'),
27+
require('remark-lint-no-unused-definitions'),
28+
require('remark-lint-rule-style'),
29+
require('remark-lint-table-pipes'),
30+
[require('remark-lint-blockquote-indentation'), 2],
31+
[
32+
require('remark-lint-checkbox-character-style'),
33+
{
34+
'checked': 'x', 'unchecked': ' '
35+
}
36+
],
37+
[require('remark-lint-code-block-style'), 'fenced'],
38+
[require('remark-lint-fenced-code-marker'), '`'],
39+
[require('remark-lint-file-extension'), 'md'],
40+
[require('remark-lint-first-heading-level'), 1],
41+
[require('remark-lint-heading-style'), 'atx'],
42+
[require('remark-lint-strong-marker'), '*'],
43+
[require('remark-lint-table-cell-padding'), 'padded']
44+
];
Collapse file
+42Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"private": true,
3+
"name": "remark-preset-lint-node",
4+
"version": "1.0.0",
5+
"description": "remark preset to configure remark-lint with settings for nodejs/node",
6+
"main": "index.js",
7+
"dependencies": {
8+
"remark-lint": "^6.0.0",
9+
"remark-lint-blockquote-indentation": "^1.0.0",
10+
"remark-lint-checkbox-character-style": "^1.0.0",
11+
"remark-lint-checkbox-content-indent": "^1.0.0",
12+
"remark-lint-code-block-style": "^1.0.0",
13+
"remark-lint-definition-spacing": "^1.0.0",
14+
"remark-lint-fenced-code-flag": "^1.0.0",
15+
"remark-lint-fenced-code-marker": "^1.0.0",
16+
"remark-lint-file-extension": "^1.0.0",
17+
"remark-lint-final-definition": "^1.0.0",
18+
"remark-lint-final-newline": "^1.0.0",
19+
"remark-lint-first-heading-level": "^1.0.0",
20+
"remark-lint-hard-break-spaces": "^1.0.1",
21+
"remark-lint-heading-style": "^1.0.0",
22+
"remark-lint-no-auto-link-without-protocol": "^1.0.0",
23+
"remark-lint-no-blockquote-without-caret": "^1.0.0",
24+
"remark-lint-no-duplicate-definitions": "^1.0.0",
25+
"remark-lint-no-file-name-articles": "^1.0.0",
26+
"remark-lint-no-file-name-consecutive-dashes": "^1.0.0",
27+
"remark-lint-no-file-name-outer-dashes": "^1.0.0",
28+
"remark-lint-no-heading-content-indent": "^1.0.0",
29+
"remark-lint-no-heading-indent": "^1.0.0",
30+
"remark-lint-no-inline-padding": "^1.0.0",
31+
"remark-lint-no-multiple-toplevel-headings": "^1.0.0",
32+
"remark-lint-no-shell-dollars": "^1.0.0",
33+
"remark-lint-no-shortcut-reference-image": "^1.0.0",
34+
"remark-lint-no-table-indentation": "^1.0.0",
35+
"remark-lint-no-tabs": "^1.0.0",
36+
"remark-lint-no-unused-definitions": "^1.0.0",
37+
"remark-lint-rule-style": "^1.0.0",
38+
"remark-lint-strong-marker": "^1.0.0",
39+
"remark-lint-table-cell-padding": "^1.0.0",
40+
"remark-lint-table-pipes": "^1.0.0"
41+
}
42+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.