Skip to content

Commit 03c2de1

Browse files
committed
Refactor api, purpose
* Remove textom dependency; * Add support for other nodes, such as mdast.
1 parent 739a929 commit 03c2de1

20 files changed

+588
-681
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,mdastrc,eslintrc,sh}]
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+
retext-inspect.js
6+
retext-inspect.min.js

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
bower_components/
44
build/
55
components/
6-
node_modules/
76
coverage/
7+
node_modules/
8+
build.js

.jscs.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
{
2-
"plugins": [
3-
"jscs-jsdoc"
2+
"excludeFiles": [
3+
"build/",
4+
"components/",
5+
"coverage/",
6+
"node_modules/",
7+
"build.js",
8+
"retext-inspect.js",
9+
"retext-inspect.min.js"
410
],
511
"jsDoc": {
612
"checkAnnotations": "jsdoc3",
713
"checkParamNames": true,
8-
"requireParamTypes": true,
14+
"checkRedundantAccess": true,
915
"checkRedundantParams": true,
10-
"checkReturnTypes": true,
1116
"checkRedundantReturns": true,
12-
"requireReturnTypes": true,
17+
"checkReturnTypes": true,
1318
"checkTypes": "strictNativeCase",
14-
"checkRedundantAccess": true,
1519
"enforceExistence": true,
16-
"requireHyphenBeforeDescription": true
20+
"requireHyphenBeforeDescription": true,
21+
"requireNewlineAfterDescription": true,
22+
"requireParamTypes": true,
23+
"requireReturnTypes": true
1724
},
1825
"requireCurlyBraces": [
1926
"if",
@@ -38,6 +45,9 @@
3845
"requireSpaceBeforeBlockStatements": true,
3946
"requireParenthesesAroundIIFE": true,
4047
"requireSpacesInConditionalExpression": true,
48+
"requireSpacesInFunctionExpression": {
49+
"beforeOpeningCurlyBrace": true
50+
},
4151
"requireSpacesInAnonymousFunctionExpression": {
4252
"beforeOpeningRoundBrace": true,
4353
"beforeOpeningCurlyBrace": true
@@ -46,12 +56,7 @@
4656
"beforeOpeningRoundBrace": true,
4757
"beforeOpeningCurlyBrace": true
4858
},
49-
"requireSpacesInFunctionExpression": {
50-
"beforeOpeningCurlyBrace": true
51-
},
52-
"requireMultipleVarDecl": true,
5359
"requireBlocksOnNewline": true,
54-
"disallowPaddingNewlinesInBlocks": true,
5560
"disallowEmptyBlocks": true,
5661
"disallowSpacesInsideObjectBrackets": true,
5762
"disallowSpacesInsideArrayBrackets": true,
@@ -135,10 +140,5 @@
135140
"requireCapitalizedConstructors": true,
136141
"safeContextKeyword": "self",
137142
"requireDotNotation": true,
138-
"disallowYodaConditions": true,
139-
"validateJSDoc": {
140-
"checkParamNames": true,
141-
"checkRedundantParams": true,
142-
"requireParamTypes": true
143-
}
143+
"disallowYodaConditions": true
144144
}

.mdastignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
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+
}

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ script: npm run-script test-travis
33
node_js:
44
- '0.10'
55
- '0.11'
6-
after_script: npm install [email protected] && cat ./coverage/lcov.info | coveralls
7-
deploy:
8-
provider: npm
9-
10-
api_key:
11-
secure: jOr/lchlBGy6sk9ppt+/xrCpN2CP2bkaZReHHsOCWIMGjVZKwPmJ/O0z/o6KknMPMEu5UjNbMhaW7yxVvK7+044JUvUhgyxSwqR3/8gaKLf0/GH6w/uepWoLs3O4MIcLkjaAnYz8exv7w/dOzErDF7wa+mRlbZCOPC2pvDKFKlE=
12-
on:
13-
repo: wooorm/retext-inspect
6+
- '0.12'
7+
- iojs
8+
sudo: false
9+
after_script: npm install codecov.io && cat ./coverage/lcov.info | codecov

History.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

Readme.md

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)