Skip to content
Permalink
Browse files

build, doc, tools: add eslint-plugin-markdown

* Install eslint-plugin-markdown@1.0.0-beta.7
* Add doc/.eslintrc.yaml
* Add `plugins: [markdown]` to the main .eslintrc.yaml
* .js files in doc folder added to .eslintignore
* Update Makefile, vcbuild.bat, and tools/jslint.js

Refs: #12563
Refs: #12640
Refs: #14047

PR-URL: #14067
Reviewed-By: James Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information...
vsemozhetbyt authored and MylesBorins committed Jul 4, 2017
1 parent 95e0879 commit 8fef98577cbe6b221718688072d445d8e6a1ce23
Showing with 19,279 additions and 6 deletions.
  1. +1 −0 .eslintignore
  2. +3 −0 .eslintrc.yaml
  3. +3 −3 Makefile
  4. +12 −0 doc/.eslintrc.yaml
  5. +22 −0 tools/eslint/node_modules/bail/LICENSE
  6. +12 −0 tools/eslint/node_modules/bail/history.md
  7. +34 −0 tools/eslint/node_modules/bail/index.js
  8. +103 −0 tools/eslint/node_modules/bail/package.json
  9. +73 −0 tools/eslint/node_modules/bail/readme.md
  10. +22 −0 tools/eslint/node_modules/character-entities-legacy/LICENSE
  11. +108 −0 tools/eslint/node_modules/character-entities-legacy/index.json
  12. +97 −0 tools/eslint/node_modules/character-entities-legacy/package.json
  13. +54 −0 tools/eslint/node_modules/character-entities-legacy/readme.md
  14. +22 −0 tools/eslint/node_modules/character-entities/LICENSE
  15. +2,224 −0 tools/eslint/node_modules/character-entities/index.json
  16. +97 −0 tools/eslint/node_modules/character-entities/package.json
  17. +53 −0 tools/eslint/node_modules/character-entities/readme.md
  18. +22 −0 tools/eslint/node_modules/character-reference-invalid/LICENSE
  19. +30 −0 tools/eslint/node_modules/character-reference-invalid/index.json
  20. +101 −0 tools/eslint/node_modules/character-reference-invalid/package.json
  21. +51 −0 tools/eslint/node_modules/character-reference-invalid/readme.md
  22. +22 −0 tools/eslint/node_modules/collapse-white-space/LICENSE
  23. +8 −0 tools/eslint/node_modules/collapse-white-space/index.js
  24. +94 −0 tools/eslint/node_modules/collapse-white-space/package.json
  25. +45 −0 tools/eslint/node_modules/collapse-white-space/readme.md
  26. +21 −0 tools/eslint/node_modules/eslint-plugin-markdown/LICENSE
  27. +140 −0 tools/eslint/node_modules/eslint-plugin-markdown/README.md
  28. +8 −0 tools/eslint/node_modules/eslint-plugin-markdown/index.js
  29. +17 −0 tools/eslint/node_modules/eslint-plugin-markdown/lib/index.js
  30. +164 −0 tools/eslint/node_modules/eslint-plugin-markdown/lib/processor.js
  31. +80 −0 tools/eslint/node_modules/eslint-plugin-markdown/package.json
  32. +22 −0 tools/eslint/node_modules/extend/LICENSE
  33. +80 −0 tools/eslint/node_modules/extend/README.md
  34. +86 −0 tools/eslint/node_modules/extend/index.js
  35. +75 −0 tools/eslint/node_modules/extend/package.json
  36. +19 −0 tools/eslint/node_modules/function-bind/LICENSE
  37. +48 −0 tools/eslint/node_modules/function-bind/README.md
  38. +48 −0 tools/eslint/node_modules/function-bind/implementation.js
  39. +3 −0 tools/eslint/node_modules/function-bind/index.js
  40. +98 −0 tools/eslint/node_modules/function-bind/package.json
  41. +22 −0 tools/eslint/node_modules/has/LICENSE-MIT
  42. +18 −0 tools/eslint/node_modules/has/README.mkd
  43. +62 −0 tools/eslint/node_modules/has/package.json
  44. +3 −0 tools/eslint/node_modules/has/src/index.js
  45. +22 −0 tools/eslint/node_modules/is-alphabetical/LICENSE
  46. +6 −0 tools/eslint/node_modules/is-alphabetical/history.md
  47. +29 −0 tools/eslint/node_modules/is-alphabetical/index.js
  48. +110 −0 tools/eslint/node_modules/is-alphabetical/package.json
  49. +58 −0 tools/eslint/node_modules/is-alphabetical/readme.md
  50. +22 −0 tools/eslint/node_modules/is-alphanumerical/LICENSE
  51. +6 −0 tools/eslint/node_modules/is-alphanumerical/history.md
  52. +29 −0 tools/eslint/node_modules/is-alphanumerical/index.js
  53. +114 −0 tools/eslint/node_modules/is-alphanumerical/package.json
  54. +60 −0 tools/eslint/node_modules/is-alphanumerical/readme.md
  55. +21 −0 tools/eslint/node_modules/is-buffer/LICENSE
  56. +49 −0 tools/eslint/node_modules/is-buffer/README.md
  57. +21 −0 tools/eslint/node_modules/is-buffer/index.js
  58. +77 −0 tools/eslint/node_modules/is-buffer/package.json
  59. +22 −0 tools/eslint/node_modules/is-decimal/LICENSE
  60. +6 −0 tools/eslint/node_modules/is-decimal/history.md
  61. +28 −0 tools/eslint/node_modules/is-decimal/index.js
  62. +111 −0 tools/eslint/node_modules/is-decimal/package.json
  63. +58 −0 tools/eslint/node_modules/is-decimal/readme.md
  64. +22 −0 tools/eslint/node_modules/is-hexadecimal/LICENSE
  65. +6 −0 tools/eslint/node_modules/is-hexadecimal/history.md
  66. +30 −0 tools/eslint/node_modules/is-hexadecimal/index.js
  67. +109 −0 tools/eslint/node_modules/is-hexadecimal/package.json
  68. +58 −0 tools/eslint/node_modules/is-hexadecimal/readme.md
  69. +7 −0 tools/eslint/node_modules/is-plain-obj/index.js
  70. +21 −0 tools/eslint/node_modules/is-plain-obj/license
  71. +68 −0 tools/eslint/node_modules/is-plain-obj/package.json
  72. +35 −0 tools/eslint/node_modules/is-plain-obj/readme.md
  73. +22 −0 tools/eslint/node_modules/is-whitespace-character/LICENSE
  74. +6 −0 tools/eslint/node_modules/is-whitespace-character/history.md
  75. +33 −0 tools/eslint/node_modules/is-whitespace-character/index.js
  76. +111 −0 tools/eslint/node_modules/is-whitespace-character/package.json
  77. +63 −0 tools/eslint/node_modules/is-whitespace-character/readme.md
  78. +22 −0 tools/eslint/node_modules/is-word-character/LICENSE
  79. +6 −0 tools/eslint/node_modules/is-word-character/history.md
  80. +33 −0 tools/eslint/node_modules/is-word-character/index.js
  81. +109 −0 tools/eslint/node_modules/is-word-character/package.json
  82. +62 −0 tools/eslint/node_modules/is-word-character/readme.md
  83. +22 −0 tools/eslint/node_modules/markdown-escapes/LICENSE
  84. +6 −0 tools/eslint/node_modules/markdown-escapes/history.md
  85. +75 −0 tools/eslint/node_modules/markdown-escapes/index.js
  86. +109 −0 tools/eslint/node_modules/markdown-escapes/package.json
  87. +71 −0 tools/eslint/node_modules/markdown-escapes/readme.md
  88. +22 −0 tools/eslint/node_modules/parse-entities/LICENSE
  89. +473 −0 tools/eslint/node_modules/parse-entities/index.js
  90. +113 −0 tools/eslint/node_modules/parse-entities/package.json
  91. +157 −0 tools/eslint/node_modules/parse-entities/readme.md
  92. +14 −0 tools/eslint/node_modules/remark-parse/index.js
  93. +68 −0 tools/eslint/node_modules/remark-parse/lib/block-elements.json
  94. +71 −0 tools/eslint/node_modules/remark-parse/lib/decode.js
  95. +21 −0 tools/eslint/node_modules/remark-parse/lib/defaults.js
  96. +25 −0 tools/eslint/node_modules/remark-parse/lib/locate/break.js
  97. +15 −0 tools/eslint/node_modules/remark-parse/lib/locate/code-inline.js
  98. +15 −0 tools/eslint/node_modules/remark-parse/lib/locate/delete.js
  99. +26 −0 tools/eslint/node_modules/remark-parse/lib/locate/emphasis.js
  100. +15 −0 tools/eslint/node_modules/remark-parse/lib/locate/escape.js
  101. +24 −0 tools/eslint/node_modules/remark-parse/lib/locate/link.js
  102. +26 −0 tools/eslint/node_modules/remark-parse/lib/locate/strong.js
  103. +15 −0 tools/eslint/node_modules/remark-parse/lib/locate/tag.js
  104. +34 −0 tools/eslint/node_modules/remark-parse/lib/locate/url.js
  105. +53 −0 tools/eslint/node_modules/remark-parse/lib/parse.js
  106. +162 −0 tools/eslint/node_modules/remark-parse/lib/parser.js
  107. +59 −0 tools/eslint/node_modules/remark-parse/lib/set-options.js
  108. +151 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/auto-link.js
  109. +137 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/blockquote.js
  110. +51 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/break.js
  111. +245 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/code-fenced.js
  112. +106 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/code-indented.js
  113. +120 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/code-inline.js
  114. +287 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/definition.js
  115. +69 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/delete.js
  116. +94 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/emphasis.js
  117. +43 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/escape.js
  118. +194 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/footnote-definition.js
  119. +150 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/heading-atx.js
  120. +116 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/heading-setext.js
  121. +103 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/html-block.js
  122. +63 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/html-inline.js
  123. +399 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/link.js
  124. +494 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/list.js
  125. +55 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/newline.js
  126. +130 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/paragraph.js
  127. +219 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/reference.js
  128. +93 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/strong.js
  129. +276 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/table.js
  130. +67 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/text.js
  131. +79 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/thematic-break.js
  132. +153 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/url.js
  133. +74 −0 tools/eslint/node_modules/remark-parse/lib/tokenize/yaml.js
  134. +451 −0 tools/eslint/node_modules/remark-parse/lib/tokenizer.js
  135. +46 −0 tools/eslint/node_modules/remark-parse/lib/unescape.js
  136. +46 −0 tools/eslint/node_modules/remark-parse/lib/util/get-indentation.js
  137. +33 −0 tools/eslint/node_modules/remark-parse/lib/util/html.js
  138. +51 −0 tools/eslint/node_modules/remark-parse/lib/util/interrupt.js
  139. +29 −0 tools/eslint/node_modules/remark-parse/lib/util/normalize.js
  140. +102 −0 tools/eslint/node_modules/remark-parse/lib/util/remove-indentation.js
  141. +86 −0 tools/eslint/node_modules/remark-parse/package.json
  142. +448 −0 tools/eslint/node_modules/remark-parse/readme.md
  143. +21 −0 tools/eslint/node_modules/repeat-string/LICENSE
  144. +136 −0 tools/eslint/node_modules/repeat-string/README.md
  145. +70 −0 tools/eslint/node_modules/repeat-string/index.js
  146. +128 −0 tools/eslint/node_modules/repeat-string/package.json
  147. +21 −0 tools/eslint/node_modules/replace-ext/LICENSE
  148. +50 −0 tools/eslint/node_modules/replace-ext/README.md
  149. +18 −0 tools/eslint/node_modules/replace-ext/index.js
  150. +86 −0 tools/eslint/node_modules/replace-ext/package.json
  151. +22 −0 tools/eslint/node_modules/state-toggle/LICENSE
  152. +6 −0 tools/eslint/node_modules/state-toggle/history.md
  153. +45 −0 tools/eslint/node_modules/state-toggle/index.js
  154. +107 −0 tools/eslint/node_modules/state-toggle/package.json
  155. +83 −0 tools/eslint/node_modules/state-toggle/readme.md
  156. +22 −0 tools/eslint/node_modules/trim-trailing-lines/LICENSE
  157. +15 −0 tools/eslint/node_modules/trim-trailing-lines/index.js
  158. +96 −0 tools/eslint/node_modules/trim-trailing-lines/package.json
  159. +55 −0 tools/eslint/node_modules/trim-trailing-lines/readme.md
  160. +7 −0 tools/eslint/node_modules/trim/Makefile
  161. +69 −0 tools/eslint/node_modules/trim/Readme.md
  162. +14 −0 tools/eslint/node_modules/trim/index.js
  163. +49 −0 tools/eslint/node_modules/trim/package.json
  164. +21 −0 tools/eslint/node_modules/trough/LICENSE
  165. +6 −0 tools/eslint/node_modules/trough/history.md
  166. +176 −0 tools/eslint/node_modules/trough/index.js
  167. +122 −0 tools/eslint/node_modules/trough/package.json
  168. +281 −0 tools/eslint/node_modules/trough/readme.md
  169. +21 −0 tools/eslint/node_modules/unherit/LICENSE
  170. +67 −0 tools/eslint/node_modules/unherit/index.js
  171. +109 −0 tools/eslint/node_modules/unherit/package.json
  172. +66 −0 tools/eslint/node_modules/unherit/readme.md
  173. +21 −0 tools/eslint/node_modules/unified/LICENSE
  174. +460 −0 tools/eslint/node_modules/unified/index.js
  175. +117 −0 tools/eslint/node_modules/unified/package.json
  176. +919 −0 tools/eslint/node_modules/unified/readme.md
  177. +22 −0 tools/eslint/node_modules/unist-util-remove-position/LICENSE
  178. +19 −0 tools/eslint/node_modules/unist-util-remove-position/index.js
  179. +103 −0 tools/eslint/node_modules/unist-util-remove-position/package.json
  180. +77 −0 tools/eslint/node_modules/unist-util-remove-position/readme.md
  181. +22 −0 tools/eslint/node_modules/unist-util-stringify-position/LICENSE
  182. +50 −0 tools/eslint/node_modules/unist-util-stringify-position/index.js
  183. +102 −0 tools/eslint/node_modules/unist-util-stringify-position/package.json
  184. +85 −0 tools/eslint/node_modules/unist-util-stringify-position/readme.md
  185. +22 −0 tools/eslint/node_modules/unist-util-visit/LICENSE
  186. +53 −0 tools/eslint/node_modules/unist-util-visit/index.js
  187. +105 −0 tools/eslint/node_modules/unist-util-visit/package.json
  188. +117 −0 tools/eslint/node_modules/unist-util-visit/readme.md
  189. +22 −0 tools/eslint/node_modules/vfile-location/LICENSE
  190. +123 −0 tools/eslint/node_modules/vfile-location/index.js
  191. +109 −0 tools/eslint/node_modules/vfile-location/package.json
  192. +83 −0 tools/eslint/node_modules/vfile-location/readme.md
  193. +21 −0 tools/eslint/node_modules/vfile/LICENSE
  194. +261 −0 tools/eslint/node_modules/vfile/index.js
  195. +126 −0 tools/eslint/node_modules/vfile/package.json
  196. +290 −0 tools/eslint/node_modules/vfile/readme.md
  197. +21 −0 tools/eslint/node_modules/x-is-function/LICENSE
  198. +41 −0 tools/eslint/node_modules/x-is-function/README.md
  199. +3 −0 tools/eslint/node_modules/x-is-function/index.js
  200. +46 −0 tools/eslint/node_modules/x-is-function/package.json
  201. +19 −0 tools/eslint/node_modules/x-is-string/LICENCE
  202. +46 −0 tools/eslint/node_modules/x-is-string/README.md
  203. +7 −0 tools/eslint/node_modules/x-is-string/index.js
  204. +86 −0 tools/eslint/node_modules/x-is-string/package.json
  205. +736 −0 tools/eslint/package-lock.json
  206. +1 −0 tools/eslint/package.json
  207. +3 −1 tools/jslint.js
  208. +2 −2 vcbuild.bat
@@ -7,3 +7,4 @@ test/tmp*/
tools/eslint
node_modules
benchmark/tmp/
doc/**/*.js
@@ -1,5 +1,8 @@
root: true

plugins:
- markdown

env:
node: true
es6: true
@@ -751,13 +751,13 @@ bench-idle:

jslint:
@echo "Running JS linter..."
$(NODE) tools/eslint/bin/eslint.js --cache --rulesdir=tools/eslint-rules \
benchmark lib test tools
$(NODE) tools/eslint/bin/eslint.js --cache --rulesdir=tools/eslint-rules --ext=.js,.md \
benchmark doc lib test tools

jslint-ci:
@echo "Running JS linter..."
$(NODE) tools/jslint.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
benchmark lib test tools
benchmark doc lib test tools

CPPLINT_EXCLUDE ?=
CPPLINT_EXCLUDE += src/node_root_certs.h
@@ -0,0 +1,12 @@
## Docs-specific linter rules

rules:
# ease some restrictions in doc examples
no-restricted-properties: 0
no-undef: 0
no-unused-vars: 0
strict: 0

# add new ECMAScript features gradually
no-var: 2
prefer-const: 2

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

0 comments on commit 8fef985

Please sign in to comment.
You can’t perform that action at this time.