-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes GH-81. This adds proper support for presets in **remark-lint**. This is a big one: **remark-lint** no longer does anything without you telling it to. * Update internals, docs, examples, to turn `reset` on by default; * Refactor project to monorepo; * Move library to `./packages/remark-lint`; * Add the following preset packages: * `remark-preset-lint-consistent`; * `remark-preset-lint-recommended`; * `remark-preset-lint-legacy`. If you’re using the CLI, please add one or more of these presets to your configuration file. On the API, note that presets are node modules, so it’s possible to `require` them as well.
- Loading branch information
Showing
77 changed files
with
458 additions
and
132 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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"lerna": "2.0.0-beta.26", | ||
"version": "independent" | ||
} |
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "remark-lint", | ||
"version": "4.2.0", | ||
"description": "Lint markdown with remark", | ||
"license": "MIT", | ||
"keywords": [ | ||
"markdown", | ||
"lint", | ||
"validate", | ||
"remark" | ||
], | ||
"repository": "https://github.com/wooorm/remark-lint/tree/master/packages/remark-lint", | ||
"bugs": "https://github.com/wooorm/remark-lint/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"Stephan Schneider <stephanschndr@gmail.com>", | ||
"Ben Balter <ben.balter@github.com>", | ||
"Danny Arnold <despair.blue@gmail.com>", | ||
"Tony Brix <tony@brix.ninja>", | ||
"Michael Mior <michael.mior@gmail.com>", | ||
"Patrick Gilday <pcgilday@gmail.com>", | ||
"Yoshua Wuyts <yoshuawuyts@gmail.com>", | ||
"YJ Yang <chcokr@gmail.com>", | ||
"Burak Yiğit Kaya <ben@byk.im>" | ||
], | ||
"files": [ | ||
"index.js", | ||
"lib/" | ||
], | ||
"dependencies": { | ||
"decamelize": "^1.0.0", | ||
"load-plugin": "^2.0.0", | ||
"mdast-util-heading-style": "^1.0.0", | ||
"mdast-util-to-string": "^1.0.0", | ||
"plur": "^2.0.0", | ||
"remark-message-control": "^2.0.0", | ||
"trough": "^1.0.0", | ||
"unist-util-position": "^2.0.1", | ||
"unist-util-visit": "^1.0.0", | ||
"vfile-location": "^2.0.0", | ||
"vfile-sort": "^1.0.0", | ||
"wrapped": "^1.0.1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @author Titus Wormer | ||
* @copyright 2016 Titus Wormer | ||
* @license MIT | ||
* @module remark:preset:lint-recommended | ||
* @fileoverview remark preset to configure remark-lint with | ||
* settings that enforce consistency. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports.plugins = { | ||
lint: { | ||
blockquoteIndentation: 'consistent', | ||
checkboxCharacterStyle: 'consistent', | ||
codeBlockStyle: 'consistent', | ||
emphasisMarker: 'consistent', | ||
fencedCodeMarker: 'consistent', | ||
headingStyle: 'consistent', | ||
linkTitleStyle: 'consistent', | ||
listItemContentIndent: true, | ||
orderedListMarkerStyle: 'consistent', | ||
ruleStyle: 'consistent', | ||
strongMarker: 'consistent', | ||
tableCellPadding: 'consistent' | ||
} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "remark-preset-lint-consistent", | ||
"version": "0.0.0", | ||
"description": "remark preset to configure remark-lint with settings that enforce consistency", | ||
"license": "MIT", | ||
"keywords": [ | ||
"remark", | ||
"preset", | ||
"consistent", | ||
"consistency" | ||
], | ||
"repository": "https://github.com/wooorm/remark-lint/tree/master/packages/remark-preset-lint-recommended", | ||
"bugs": "https://github.com/wooorm/remark-lint/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
], | ||
"files": [ | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"remark-lint": "^4.2.0" | ||
} | ||
} |
Oops, something went wrong.