Skip to content

Commit

Permalink
Add remark-lint configuration (#418)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Dietrich <[email protected]>
  • Loading branch information
Thomas Dietrich authored Jun 29, 2017
1 parent 453ae0f commit d8efac0
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _site
.sass-cache
.jekyll-metadata
.vagrant
node_modules
project.pbxproj
*.xcworkspacedata
*.xcscmblueprint
Expand Down
64 changes: 64 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "openhab-docs",
"version": "0.0.0",
"description": "(this npm package file is currently only used for remark-lint)",
"main": "index.html",
"repository": {
"type": "git",
"url": "git+https://github.com/openhab/openhab-docs.git"
},
"bugs": {
"url": "https://github.com/openhab/openhab-docs/issues"
},
"homepage": "https://github.com/openhab/openhab-docs#readme",
"scripts": {
"lint-md": "remark ."
},
"dependencies": {
"remark-cli": "^3.0.1",
"remark-lint-code-block-style": "^1.0.0",
"remark-lint-fenced-code-flag": "^1.0.0",
"remark-lint-list-item-indent": "^1.0.0",
"remark-lint-no-tabs": "^1.0.0",
"remark-lint-sentence-newline": "^2.0.0",
"remark-lint-unordered-list-marker-style": "^1.0.0",
"remark-preset-lint-consistent": "^2.0.0",
"remark-preset-lint-recommended": "^2.0.0"
},
"remarkConfig": {
"plugins": [
[
"remark-preset-lint-recommended",
true
],
[
"remark-preset-lint-consistent",
true
],
[
"remark-lint-list-item-indent",
"mixed"
],
[
"remark-lint-fenced-code-flag",
true
],
[
"remark-lint-no-tabs",
true
],
[
"remark-lint-unordered-list-marker-style",
"*"
],
[
"remark-lint-code-block-style",
"fenced"
],
[
"remark-lint-sentence-newline",
true
]
]
}
}

0 comments on commit d8efac0

Please sign in to comment.