Skip to content

Commit 52015de

Browse files
committed
Initial commit
0 parents  commit 52015de

18 files changed

+790
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.{json,html,svg,css,mdastrc,eslintrc}]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build/
2+
components/
3+
coverage/
4+
build.js
5+
mdast-util-definitions.js
6+
mdast-util-definitions.min.js

.eslintrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"browser": true
5+
},
6+
"rules": {
7+
"quotes": [2, "single"]
8+
}
9+
}

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
*.log
3+
bower_components/
4+
build/
5+
components/
6+
coverage/
7+
node_modules/
8+
build.js

.jscs.json

+152
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"excludeFiles": [
3+
"build/",
4+
"components/",
5+
"coverage/",
6+
"node_modules/",
7+
"build.js",
8+
"mdast-util-definitions.js",
9+
"mdast-util-definitions.min.js"
10+
],
11+
"plugins": [
12+
"jscs-jsdoc"
13+
],
14+
"jsDoc": {
15+
"checkAnnotations": "jsdoc3",
16+
"checkParamNames": true,
17+
"requireParamTypes": true,
18+
"checkRedundantParams": true,
19+
"checkReturnTypes": true,
20+
"checkRedundantReturns": true,
21+
"requireReturnTypes": true,
22+
"checkTypes": "strictNativeCase",
23+
"checkRedundantAccess": true,
24+
"enforceExistence": true,
25+
"requireHyphenBeforeDescription": true
26+
},
27+
"requireCurlyBraces": [
28+
"if",
29+
"else",
30+
"for",
31+
"while",
32+
"do",
33+
"try",
34+
"catch"
35+
],
36+
"requireSpaceAfterKeywords": [
37+
"if",
38+
"else",
39+
"for",
40+
"while",
41+
"do",
42+
"switch",
43+
"return",
44+
"try",
45+
"catch"
46+
],
47+
"requireSpaceBeforeBlockStatements": true,
48+
"requireParenthesesAroundIIFE": true,
49+
"requireSpacesInConditionalExpression": true,
50+
"requireSpacesInAnonymousFunctionExpression": {
51+
"beforeOpeningRoundBrace": true,
52+
"beforeOpeningCurlyBrace": true
53+
},
54+
"requireSpacesInNamedFunctionExpression": {
55+
"beforeOpeningRoundBrace": true,
56+
"beforeOpeningCurlyBrace": true
57+
},
58+
"requireSpacesInFunctionExpression": {
59+
"beforeOpeningCurlyBrace": true
60+
},
61+
"requireBlocksOnNewline": true,
62+
"disallowPaddingNewlinesInBlocks": true,
63+
"disallowEmptyBlocks": true,
64+
"disallowSpacesInsideObjectBrackets": true,
65+
"disallowSpacesInsideArrayBrackets": true,
66+
"disallowSpacesInsideParentheses": true,
67+
"requireSpacesInsideObjectBrackets": "all",
68+
"disallowDanglingUnderscores": true,
69+
"disallowSpaceAfterObjectKeys": true,
70+
"requireCommaBeforeLineBreak": true,
71+
"requireOperatorBeforeLineBreak": [
72+
"?",
73+
"+",
74+
"-",
75+
"/",
76+
"*",
77+
"=",
78+
"==",
79+
"===",
80+
"!=",
81+
"!==",
82+
">",
83+
">=",
84+
"<",
85+
"<="
86+
],
87+
"requireSpaceBeforeBinaryOperators": [
88+
"+",
89+
"-",
90+
"/",
91+
"*",
92+
"=",
93+
"==",
94+
"===",
95+
"!=",
96+
"!=="
97+
],
98+
"requireSpaceAfterBinaryOperators": [
99+
"+",
100+
"-",
101+
"/",
102+
"*",
103+
"=",
104+
"==",
105+
"===",
106+
"!=",
107+
"!=="
108+
],
109+
"disallowSpaceAfterPrefixUnaryOperators": [
110+
"++",
111+
"--",
112+
"+",
113+
"-",
114+
"~",
115+
"!"
116+
],
117+
"disallowSpaceBeforePostfixUnaryOperators": [
118+
"++",
119+
"--"
120+
],
121+
"disallowImplicitTypeConversion": [
122+
"numeric",
123+
"boolean",
124+
"binary",
125+
"string"
126+
],
127+
"requireCamelCaseOrUpperCaseIdentifiers": true,
128+
"disallowKeywords": [
129+
"with"
130+
],
131+
"disallowMultipleLineStrings": true,
132+
"disallowMultipleLineBreaks": true,
133+
"validateLineBreaks": "LF",
134+
"validateQuoteMarks": "'",
135+
"disallowMixedSpacesAndTabs": true,
136+
"disallowTrailingWhitespace": true,
137+
"disallowTrailingComma": true,
138+
"disallowKeywordsOnNewLine": [
139+
"else"
140+
],
141+
"requireLineFeedAtFileEnd": true,
142+
"maximumLineLength": 78,
143+
"requireCapitalizedConstructors": true,
144+
"safeContextKeyword": "self",
145+
"requireDotNotation": true,
146+
"disallowYodaConditions": true,
147+
"validateJSDoc": {
148+
"checkParamNames": true,
149+
"checkRedundantParams": true,
150+
"requireParamTypes": true
151+
}
152+
}

.mdastignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bower_components/
2+
components/

.mdastrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"plugins": [
3+
"lint",
4+
"github",
5+
"yaml-config"
6+
],
7+
"settings": {
8+
"bullet": "*"
9+
}
10+
}

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
script: npm run-script test-travis
3+
node_js:
4+
- '0.10'
5+
- '0.11'
6+
- '0.12'
7+
- iojs
8+
sudo: false
9+
after_script: npm install [email protected] && cat ./coverage/lcov.info | coveralls

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(The MIT License)
2+
3+
Copyright (c) 2015 Titus Wormer <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
'Software'), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bower.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "mdast-util-definitions",
3+
"main": "mdast-util-definitions.js",
4+
"description": "Find definition nodes in mdast nodes",
5+
"license": "MIT",
6+
"keywords": [
7+
"mdast",
8+
"markdown",
9+
"node",
10+
"definition",
11+
"find",
12+
"cache"
13+
],
14+
"repository": {
15+
"type": "git",
16+
"url": "https://github.com/wooorm/mdast-util-definitions.git"
17+
},
18+
"authors": [
19+
"Titus Wormer <[email protected]>"
20+
],
21+
"ignore": [
22+
".*",
23+
"*.log",
24+
"*.md",
25+
"build/",
26+
"components/",
27+
"coverage/",
28+
"node_modules/",
29+
"build.js",
30+
"index.js",
31+
"test.js",
32+
"component.json",
33+
"package.json"
34+
]
35+
}

component.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "mdast-util-definitions",
3+
"version": "0.0.0",
4+
"description": "Find definition nodes in mdast nodes",
5+
"license": "MIT",
6+
"keywords": [
7+
"mdast",
8+
"markdown",
9+
"node",
10+
"definition",
11+
"find",
12+
"cache"
13+
],
14+
"dependencies": {
15+
"wooorm/mdast-util-visit": "~0.1.1"
16+
},
17+
"repository": "wooorm/mdast-util-definitions",
18+
"scripts": [
19+
"index.js"
20+
]
21+
}

history.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
mdast:
3+
setext: true
4+
---
5+
6+
<!--lint disable no-multiple-toplevel-headings-->
7+
8+
0.1.0 / 2015-07-17
9+
==================

0 commit comments

Comments
 (0)