-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and require Node.js 6 (#22)
Fixes #21
- Loading branch information
1 parent
f2f4f63
commit c5c87d8
Showing
6 changed files
with
126 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ language: node_js | |
node_js: | ||
- '8' | ||
- '6' | ||
- '4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,59 @@ | ||
'use strict'; | ||
const path = require('path'); | ||
|
||
// Rules per remark-lint 4.0.2 | ||
exports.plugins = [ | ||
require('remark-lint'), | ||
|
||
module.exports = { | ||
reset: true, | ||
'blockquote-indentation': 2, | ||
'checkbox-character-style': { | ||
// Official plugins | ||
[require('remark-lint-blockquote-indentation'), 2], | ||
[require('remark-lint-checkbox-character-style'), { | ||
checked: 'x', | ||
unchecked: ' ' | ||
}, | ||
'checkbox-content-indent': true, | ||
'code-block-style': 'fenced', | ||
'definition-case': true, | ||
'definition-spacing': true, | ||
'emphasis-marker': '*', | ||
'fenced-code-marker': '`', | ||
'file-extension': true, | ||
'final-newline': true, | ||
// TODO: because of https://github.com/wooorm/remark-lint/issues/77 | ||
// 'first-heading-level': 1, | ||
'hard-break-spaces': true, | ||
'heading-style': 'atx', | ||
'link-title-style': '\'', | ||
'list-item-bullet-indent': true, | ||
'list-item-content-indent': true, | ||
'list-item-indent': 'space', | ||
// TODO: because of https://github.com/wooorm/remark-lint/issues/78 | ||
// 'list-item-spacing': true, | ||
'no-auto-link-without-protocol': true, | ||
'no-blockquote-without-caret': true, | ||
'no-duplicate-definitions': true, | ||
// TODO: because of https://github.com/wooorm/remark-lint/issues/84 | ||
// 'no-duplicate-headings': true, | ||
'no-emphasis-as-heading': true, | ||
'no-file-name-articles': true, | ||
'no-file-name-consecutive-dashes': true, | ||
'no-file-name-irregular-characters': true, | ||
'no-file-name-mixed-case': true, | ||
'no-file-name-outer-dashes': true, | ||
'no-heading-content-indent': true, | ||
'no-heading-indent': true, | ||
'no-heading-punctuation': true, | ||
'no-inline-padding': true, | ||
'no-literal-urls': true, | ||
// TODO: because of https://github.com/wooorm/remark-lint/issues/79 | ||
// 'no-missing-blank-lines': true, | ||
'no-multiple-toplevel-headings': 1, | ||
'no-shell-dollars': true, | ||
'no-table-indentation': true, | ||
'no-undefined-references': true, | ||
'no-unused-definitions': true, | ||
'ordered-list-marker-style': '.', | ||
'ordered-list-marker-value': 'ordered', | ||
'rule-style': '---', | ||
'strong-marker': '*', | ||
'table-cell-padding': 'padded', | ||
'table-pipe-alignment': true, | ||
'table-pipes': true, | ||
'unordered-list-marker-style': '-', | ||
}], | ||
require('remark-lint-checkbox-content-indent'), | ||
[require('remark-lint-code-block-style'), 'fenced'], | ||
require('remark-lint-definition-case'), | ||
require('remark-lint-definition-spacing'), | ||
[require('remark-lint-emphasis-marker'), '*'], | ||
[require('remark-lint-fenced-code-marker'), '`'], | ||
require('remark-lint-file-extension'), | ||
require('remark-lint-final-newline'), | ||
require('remark-lint-hard-break-spaces'), | ||
[require('remark-lint-heading-style'), 'atx'], | ||
[require('remark-lint-link-title-style'), '\''], | ||
require('remark-lint-list-item-bullet-indent'), | ||
require('remark-lint-list-item-content-indent'), | ||
[require('remark-lint-list-item-indent'), 'space'], | ||
require('remark-lint-no-auto-link-without-protocol'), | ||
require('remark-lint-no-blockquote-without-marker'), | ||
require('remark-lint-no-emphasis-as-heading'), | ||
require('remark-lint-no-file-name-articles'), | ||
require('remark-lint-no-file-name-consecutive-dashes'), | ||
require('remark-lint-no-file-name-irregular-characters'), | ||
require('remark-lint-no-file-name-mixed-case'), | ||
require('remark-lint-no-file-name-outer-dashes'), | ||
require('remark-lint-no-heading-content-indent'), | ||
require('remark-lint-no-heading-indent'), | ||
require('remark-lint-no-heading-punctuation'), | ||
require('remark-lint-no-inline-padding'), | ||
require('remark-lint-no-literal-urls'), | ||
[require('remark-lint-no-multiple-toplevel-headings'), 1], | ||
require('remark-lint-no-shell-dollars'), | ||
require('remark-lint-no-table-indentation'), | ||
require('remark-lint-no-undefined-references'), | ||
require('remark-lint-no-unused-definitions'), | ||
[require('remark-lint-ordered-list-marker-style'), '.'], | ||
[require('remark-lint-ordered-list-marker-value'), 'ordered'], | ||
[require('remark-lint-rule-style'), '---'], | ||
[require('remark-lint-strong-marker'), '*'], | ||
[require('remark-lint-table-cell-padding'), 'padded'], | ||
require('remark-lint-table-pipe-alignment'), | ||
require('remark-lint-table-pipes'), | ||
[require('remark-lint-unordered-list-marker-style'), '-'], | ||
|
||
// Plugins | ||
external: [ | ||
'remark-lint-no-empty-sections', | ||
'remark-lint-no-url-trailing-slash', | ||
// 'remark-lint-are-links-valid', | ||
path.join(__dirname, 'rules') | ||
], | ||
'empty-sections': true, | ||
'trailing-slash': true, | ||
// This rule is a good idea, but in reality it's way too slow and has too many false positives | ||
// 'are-links-valid': { | ||
// // TODO: The error message is too unclear here. Make a rule that disallows redirects | ||
// // allowRedirects: false, | ||
// timeout: 2000 | ||
// }, | ||
'awesome/badge': true | ||
}; | ||
// Third-party plugins | ||
require('remark-lint-no-empty-sections'), | ||
require('remark-lint-no-url-trailing-slash'), | ||
|
||
// Custom plugins | ||
...require('./rules') | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
'awesome/badge': require('./badge') | ||
}; | ||
module.exports = [ | ||
require('./badge') | ||
]; |