Skip to content

Commit c572794

Browse files
committed
Initial commit
0 parents  commit c572794

18 files changed

+1235
-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,svg,mdastrc,eslintrc}]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build/
2+
components/
3+
coverage/
4+
build.js
5+
example.js
6+
nlcst-is-literal.js
7+
nlcst-is-literal.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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
*.log
3+
build/
4+
components/
5+
coverage/
6+
node_modules/
7+
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+
"example.js",
9+
"nlcst-is-literal.js",
10+
"nlcst-is-literal.min.js"
11+
],
12+
"jsDoc": {
13+
"checkAnnotations": "jsdoc3",
14+
"checkParamNames": true,
15+
"checkRedundantAccess": true,
16+
"checkRedundantParams": true,
17+
"checkRedundantReturns": true,
18+
"checkReturnTypes": true,
19+
"checkTypes": "strictNativeCase",
20+
"enforceExistence": true,
21+
"requireHyphenBeforeDescription": true,
22+
"requireNewlineAfterDescription": true,
23+
"requireParamTypes": true,
24+
"requireParamDescription": true,
25+
"requireReturnTypes": 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+
"requireSpacesInFunctionExpression": {
51+
"beforeOpeningCurlyBrace": true
52+
},
53+
"requireSpacesInAnonymousFunctionExpression": {
54+
"beforeOpeningRoundBrace": true,
55+
"beforeOpeningCurlyBrace": true
56+
},
57+
"requireSpacesInNamedFunctionExpression": {
58+
"beforeOpeningRoundBrace": true,
59+
"beforeOpeningCurlyBrace": true
60+
},
61+
"requireBlocksOnNewline": true,
62+
"disallowEmptyBlocks": true,
63+
"disallowSpacesInsideObjectBrackets": true,
64+
"disallowSpacesInsideArrayBrackets": true,
65+
"disallowSpacesInsideParentheses": true,
66+
"requireSpacesInsideObjectBrackets": "all",
67+
"disallowDanglingUnderscores": true,
68+
"disallowSpaceAfterObjectKeys": true,
69+
"requireCommaBeforeLineBreak": true,
70+
"requireOperatorBeforeLineBreak": [
71+
"?",
72+
"+",
73+
"-",
74+
"/",
75+
"*",
76+
"=",
77+
"==",
78+
"===",
79+
"!=",
80+
"!==",
81+
">",
82+
">=",
83+
"<",
84+
"<="
85+
],
86+
"requireSpaceBeforeBinaryOperators": [
87+
"+",
88+
"-",
89+
"/",
90+
"*",
91+
"=",
92+
"==",
93+
"===",
94+
"!=",
95+
"!=="
96+
],
97+
"requireSpaceAfterBinaryOperators": [
98+
"+",
99+
"-",
100+
"/",
101+
"*",
102+
"=",
103+
"==",
104+
"===",
105+
"!=",
106+
"!=="
107+
],
108+
"disallowSpaceAfterPrefixUnaryOperators": [
109+
"++",
110+
"--",
111+
"+",
112+
"-",
113+
"~",
114+
"!"
115+
],
116+
"disallowSpaceBeforePostfixUnaryOperators": [
117+
"++",
118+
"--"
119+
],
120+
"disallowImplicitTypeConversion": [
121+
"numeric",
122+
"boolean",
123+
"binary",
124+
"string"
125+
],
126+
"requireCamelCaseOrUpperCaseIdentifiers": true,
127+
"disallowKeywords": [
128+
"with"
129+
],
130+
"disallowMultipleLineStrings": true,
131+
"disallowMultipleLineBreaks": true,
132+
"validateLineBreaks": "LF",
133+
"validateQuoteMarks": "'",
134+
"disallowMixedSpacesAndTabs": true,
135+
"disallowTrailingWhitespace": true,
136+
"disallowTrailingComma": true,
137+
"disallowKeywordsOnNewLine": [
138+
"else"
139+
],
140+
"requireLineFeedAtFileEnd": true,
141+
"requireCapitalizedConstructors": true,
142+
"safeContextKeyword": "self",
143+
"requireDotNotation": true,
144+
"disallowYodaConditions": true
145+
}

.mdastignore

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

.mdastrc

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

.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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "nlcst-is-literal",
3+
"main": "nlcst-is-literal.js",
4+
"description": "Check whether an NLCST node is meant literally",
5+
"license": "MIT",
6+
"keywords": [
7+
"nlcst",
8+
"retext",
9+
"util",
10+
"utility",
11+
"literal",
12+
"word"
13+
],
14+
"repository": {
15+
"type": "git",
16+
"url": "https://github.com/wooorm/nlcst-is-literal.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+
"example.js",
31+
"index.js",
32+
"test.js",
33+
"component.json",
34+
"package.json"
35+
]
36+
}

0 commit comments

Comments
 (0)