Skip to content

Commit 42755d1

Browse files
committed
Add base repo files
1 parent 428528f commit 42755d1

File tree

7 files changed

+219
-0
lines changed

7 files changed

+219
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Full documentation can be found at editorconfig.org
2+
# This requires a plugin to be installed in the editor of choice
3+
# Link to info on plugins can be found here - http://editorconfig.org/#download
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 2
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "eslint-config-tc"
3+
}

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
* text eol=lf
4+
5+
# Denote all files that are truly binary and should not be modified.
6+
*.png binary
7+
*.eot binary
8+
*.woff binary

.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
####################################
2+
####################################
3+
### OS Files
4+
####################################
5+
####################################
6+
Thumbs.db
7+
.DS_Store
8+
9+
10+
11+
12+
####################################
13+
####################################
14+
### Git
15+
####################################
16+
####################################
17+
*.orig
18+
19+
20+
21+
22+
####################################
23+
####################################
24+
### Sublime Text
25+
####################################
26+
####################################
27+
# cache files for sublime text
28+
*.tmlanguage.cache
29+
*.tmPreferences.cache
30+
*.stTheme.cache
31+
32+
# workspace files are user-specific
33+
*.sublime-workspace
34+
35+
# sublime project files
36+
*.sublime-project
37+
38+
# sftp configuration file
39+
sftp-config.json
40+
41+
42+
43+
44+
####################################
45+
####################################
46+
### Node
47+
####################################
48+
####################################
49+
# Logs
50+
logs
51+
*.log
52+
53+
# Coverage directory used by tools like istanbul
54+
coverage
55+
56+
# Compiled binary addons (http://nodejs.org/api/addons.html)
57+
build/Release
58+
59+
# Dependency directory
60+
node_modules
61+
62+
63+
64+
65+
####################################
66+
####################################
67+
### Mocha
68+
####################################
69+
####################################
70+
mocha.json

.jscsrc

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"disallowEmptyBlocks": true,
3+
"disallowKeywordsOnNewLine": ["else"],
4+
"disallowMixedSpacesAndTabs": true,
5+
"disallowMultipleLineStrings": true,
6+
"disallowMultipleVarDecl": true,
7+
"disallowNewlineBeforeBlockStatements": true,
8+
"disallowQuotedKeysInObjects": "allButReserved",
9+
"disallowSpaceAfterObjectKeys": true,
10+
"disallowSpaceAfterPrefixUnaryOperators": true,
11+
"disallowSpaceBeforePostfixUnaryOperators": true,
12+
"disallowSpacesInAnonymousFunctionExpression": {
13+
"beforeOpeningRoundBrace": true
14+
},
15+
"disallowSpacesInCallExpression": true,
16+
"disallowSpacesInFunction": {
17+
"beforeOpeningRoundBrace": true
18+
},
19+
"disallowSpacesInFunctionDeclaration": {
20+
"beforeOpeningRoundBrace": true
21+
},
22+
"disallowSpacesInNamedFunctionExpression": {
23+
"beforeOpeningRoundBrace": true
24+
},
25+
"disallowSpacesInsideArrayBrackets": "all",
26+
"disallowSpacesInsideObjectBrackets": "all",
27+
"disallowSpacesInsideParentheses": true,
28+
"disallowTrailingComma": true,
29+
"disallowYodaConditions": true,
30+
"requireBlocksOnNewline": true,
31+
"requireCapitalizedConstructors": true,
32+
"requireCommaBeforeLineBreak": true,
33+
"requireCurlyBraces": [
34+
"if",
35+
"else",
36+
"for",
37+
"while",
38+
"do",
39+
"try",
40+
"catch",
41+
"case",
42+
"default"
43+
],
44+
"requireDotNotation": true,
45+
"requireOperatorBeforeLineBreak": true,
46+
"requirePaddingNewlinesBeforeKeywords": [
47+
"do",
48+
"for",
49+
"switch",
50+
"case",
51+
"try",
52+
"void",
53+
"while",
54+
"with"
55+
],
56+
"requireParenthesesAroundIIFE": true,
57+
"requireSpaceAfterBinaryOperators": true,
58+
"requireSpaceAfterKeywords": [
59+
"do",
60+
"for",
61+
"else",
62+
"switch",
63+
"case",
64+
"try",
65+
"catch",
66+
"void",
67+
"while",
68+
"with",
69+
"return",
70+
"typeof"
71+
],
72+
"requireSpaceBeforeBinaryOperators": true,
73+
"requireSpaceBeforeBlockStatements": true,
74+
"requireSpaceBeforeKeywords": [
75+
"else",
76+
"while",
77+
"catch"
78+
],
79+
"requireSpaceBeforeObjectValues": true,
80+
"requireSpaceBetweenArguments": true,
81+
"requireSpacesInAnonymousFunctionExpression": {
82+
"beforeOpeningCurlyBrace": true
83+
},
84+
"requireSpacesInConditionalExpression": true,
85+
"requireSpacesInForStatement": true,
86+
"requireSpacesInFunction": {
87+
"beforeOpeningCurlyBrace": true
88+
},
89+
"requireSpacesInFunctionDeclaration": {
90+
"beforeOpeningCurlyBrace": true
91+
},
92+
"requireSpacesInNamedFunctionExpression": {
93+
"beforeOpeningCurlyBrace": true
94+
},
95+
"safeContextKeyword": [],
96+
"validateIndentation": 2,
97+
"validateParameterSeparator": ", ",
98+
"validateQuoteMarks": { "mark": "'", "escape": true }
99+
}

.npmignore

Whitespace-only changes.

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
git:
2+
depth: 1
3+
4+
branches:
5+
only:
6+
- master
7+
8+
sudo: false
9+
10+
language: node_js
11+
12+
node_js:
13+
- "4"
14+
- "5"
15+
- "6"
16+
- "7"
17+
18+
cache:
19+
directories:
20+
- node_modules
21+
22+
before_script:
23+
- npm prune
24+
25+
script:
26+
- npm run lint
27+
- npm test

0 commit comments

Comments
 (0)