Skip to content

Commit c797f6a

Browse files
committed
start with Typescript and our new monorepo for v3 release.
0 parents  commit c797f6a

29 files changed

Lines changed: 1880 additions & 0 deletions

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
insert_final_newline = false
15+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
module.exports = {
2+
env: {
3+
node: true,
4+
commonjs: true
5+
},
6+
extends: 'eslint:recommended',
7+
rules: {
8+
eqeqeq: [
9+
"error",
10+
"smart"
11+
],
12+
indent: [
13+
'error',
14+
2
15+
],
16+
'linebreak-style': [
17+
'error',
18+
'unix'
19+
],
20+
'lines-around-comment': [
21+
'error',
22+
{
23+
beforeLineComment: true
24+
}
25+
],
26+
'spaced-comment': [
27+
'error',
28+
'always'
29+
],
30+
'new-parens': 'error',
31+
'newline-per-chained-call': [
32+
'error',
33+
{
34+
ignoreChainWithDepth: 3
35+
}
36+
],
37+
quotes: [
38+
'error',
39+
'single',
40+
{
41+
avoidEscape: true
42+
}
43+
],
44+
semi: [
45+
'error',
46+
'always'
47+
],
48+
'semi-spacing': [
49+
'error',
50+
{
51+
before: false,
52+
after: true
53+
}
54+
],
55+
'brace-style': [
56+
'error',
57+
'1tbs',
58+
{
59+
allowSingleLine: true
60+
}
61+
],
62+
camelcase: [
63+
'error',
64+
{
65+
properties: 'always'
66+
}
67+
],
68+
"no-console": 0,
69+
"no-extra-semi": "error",
70+
"no-lonely-if": "error",
71+
"no-underscore-dangle": "error",
72+
"no-spaced-func": "error",
73+
"space-before-function-paren": [
74+
2,
75+
"never"
76+
],
77+
'comma-style': [
78+
'error',
79+
'last'
80+
],
81+
'comma-spacing': [
82+
'error',
83+
{
84+
before: false,
85+
after: true
86+
}
87+
],
88+
'computed-property-spacing': [
89+
'error',
90+
'never'
91+
],
92+
'func-style': [
93+
'error',
94+
'declaration',
95+
{
96+
allowArrowFunctions: true
97+
}
98+
],
99+
'consistent-this': [
100+
'error',
101+
'self'
102+
],
103+
'new-cap': [
104+
'error',
105+
{
106+
capIsNewExceptions: ['Q']
107+
}
108+
],
109+
'no-console': 0,
110+
'array-bracket-spacing': [
111+
'error',
112+
'never'
113+
],
114+
'object-curly-spacing': [
115+
'error',
116+
'always'
117+
],
118+
'max-len': [
119+
'error',
120+
120,
121+
4,
122+
{
123+
ignoreUrls: true
124+
}
125+
],
126+
'no-new-object': 'error',
127+
'quote-props': [
128+
'error',
129+
'as-needed'
130+
],
131+
'block-spacing': 'error',
132+
'handle-callback-err': 'error',
133+
'no-new-require': 'error',
134+
'no-path-concat': 'error',
135+
'callback-return': 'error',
136+
'no-array-constructor': 'error',
137+
'no-useless-escape': 'error',
138+
'no-extra-semi': 'error',
139+
'no-lonely-if': 'error',
140+
'no-underscore-dangle': 'error',
141+
'no-spaced-func': 'error',
142+
'no-plusplus': 'error',
143+
'one-var-declaration-per-line': [
144+
'error',
145+
'always'
146+
],
147+
'no-multiple-empty-lines': [
148+
'error',
149+
{
150+
max: 2
151+
}
152+
],
153+
'guard-for-in': 'error',
154+
'keyword-spacing': [
155+
'error',
156+
{
157+
before: true,
158+
after: true
159+
}
160+
],
161+
'space-before-function-paren': [
162+
2,
163+
'never'
164+
],
165+
'space-before-blocks': [
166+
2,
167+
'always'
168+
],
169+
'space-in-parens': [
170+
'error',
171+
'never'
172+
],
173+
'space-infix-ops': 'error'
174+
}
175+
};
176+

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CRLF
2+
* text eol=lf

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.sw*
2+
*.cookies
3+
node_modules/
4+
.idea/
5+
.vscode/
6+
coverage/
7+
.coveralls.yml
8+
npm-debug.log
9+
10+
dist

0 commit comments

Comments
 (0)