Skip to content

Commit f5ce44f

Browse files
authored
chore: Add remark-lint + CI (#977)
* chore: Add initial remark-lint setup
1 parent c3dada0 commit f5ce44f

File tree

6 files changed

+2082
-0
lines changed

6 files changed

+2082
-0
lines changed

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: github-actions
9+
directory: "/"
10+
schedule:
11+
interval: weekly
12+
open-pull-requests-limit: 10

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on:
3+
push:
4+
branches-ignore:
5+
- "dependabot/**"
6+
paths:
7+
- "package*.json"
8+
- "**/*.md"
9+
- ".github/workflows/ci.yml"
10+
11+
pull_request:
12+
paths:
13+
- "package*.json"
14+
- "**/*.md"
15+
- ".github/workflows/ci.yml"
16+
17+
jobs:
18+
lint:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v2
24+
25+
- name: Set up Node.js
26+
uses: actions/setup-node@v2.1.5
27+
28+
- name: Install npm dependencies
29+
run: npm ci
30+
31+
- name: Test
32+
run: npm test

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

.remarkrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"plugins": [
3+
"remark-gfm",
4+
"remark-preset-lint-node",
5+
["remark-lint-fenced-code-flag", false],
6+
["remark-lint-final-definition", false],
7+
["remark-lint-final-newline", false],
8+
["remark-lint-first-heading-level", false],
9+
["remark-lint-hard-break-spaces", false],
10+
["remark-lint-heading-style", false],
11+
["remark-lint-list-item-bullet-indent", false],
12+
["remark-lint-list-item-indent", false],
13+
["remark-lint-maximum-line-length", false],
14+
["remark-lint-no-consecutive-blank-lines", false],
15+
["remark-lint-no-heading-content-indent", false],
16+
["remark-lint-no-literal-urls", false],
17+
["remark-lint-no-multiple-toplevel-headings", false],
18+
["remark-lint-no-shortcut-reference-link", false],
19+
["remark-lint-no-trailing-spaces", false],
20+
["remark-lint-no-undefined-references", false],
21+
["remark-lint-no-unused-definitions", false],
22+
["remark-lint-prohibited-strings", false],
23+
["remark-lint-strong-marker", false],
24+
["remark-lint-table-cell-padding", false],
25+
["remark-lint-unordered-list-marker-style", false]
26+
]
27+
}

0 commit comments

Comments
 (0)