Skip to content

Commit f8cbb06

Browse files
committed
Initial commit
0 parents  commit f8cbb06

18 files changed

+827
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build/
2+
components/
3+
coverage/
4+
build.js
5+
unist-util-find-before.js
6+
unist-util-find-before.min.js

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"rules": {
4+
"quotes": [2, "single"]
5+
}
6+
}

.gitignore

Lines changed: 8 additions & 0 deletions
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

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

.mdastignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bower_components/
2+
components/

.mdastrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"output": true,
3+
"plugins": [
4+
"lint",
5+
"github",
6+
"comment-config",
7+
"slug",
8+
"validate-links"
9+
],
10+
"settings": {
11+
"bullet": "*"
12+
}
13+
}

.travis.yml

Lines changed: 9 additions & 0 deletions
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 codecov.io && cat ./coverage/lcov.info | codecov

LICENSE

Lines changed: 22 additions & 0 deletions
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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "unist-util-find-before",
3+
"main": "unist-util-find-before.js",
4+
"description": "Utility to find a node before another node",
5+
"license": "MIT",
6+
"keywords": [
7+
"unist",
8+
"mdast",
9+
"markdown",
10+
"retext",
11+
"natural",
12+
"language",
13+
"node",
14+
"find",
15+
"before",
16+
"util",
17+
"utility"
18+
],
19+
"repository": {
20+
"type": "git",
21+
"url": "https://github.com/wooorm/unist-util-find-before.git"
22+
},
23+
"authors": [
24+
"Titus Wormer <[email protected]>"
25+
],
26+
"ignore": [
27+
".*",
28+
"*.log",
29+
"*.md",
30+
"build/",
31+
"components/",
32+
"coverage/",
33+
"node_modules/",
34+
"build.js",
35+
"index.js",
36+
"test.js",
37+
"component.json",
38+
"package.json"
39+
]
40+
}

component.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "unist-util-find-before",
3+
"version": "0.0.0",
4+
"description": "Utility to find a node before another node",
5+
"license": "MIT",
6+
"keywords": [
7+
"unist",
8+
"mdast",
9+
"markdown",
10+
"retext",
11+
"natural",
12+
"language",
13+
"node",
14+
"find",
15+
"before",
16+
"util",
17+
"utility"
18+
],
19+
"repository": "wooorm/unist-util-find-before",
20+
"scripts": [
21+
"index.js"
22+
]
23+
}

history.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!--mdast setext-->
2+
3+
<!--lint disable no-multiple-toplevel-headings-->
4+
5+
0.0.0 / 2015-09-01
6+
==================

0 commit comments

Comments
 (0)