Skip to content

Commit 24f8008

Browse files
committed
initial structure
1 parent 44c36a9 commit 24f8008

5 files changed

Lines changed: 1009 additions & 0 deletions

File tree

.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 = crlf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
insert_final_newline = false
15+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 8,
4+
"ecmaFeatures": {
5+
"experimentalObjectRestSpread": true
6+
},
7+
"sourceType": "module"
8+
},
9+
10+
"env": {
11+
"es6": true,
12+
"node": true
13+
},
14+
15+
"plugins": [
16+
"import",
17+
"node",
18+
"promise",
19+
"standard"
20+
],
21+
22+
"globals": {
23+
24+
},
25+
26+
"rules": {
27+
"accessor-pairs": "error",
28+
"arrow-spacing": ["error", { "before": true, "after": true }],
29+
"block-spacing": ["error", "always"],
30+
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
31+
"camelcase": ["error", { "properties": "never" }],
32+
"comma-dangle": ["error", {
33+
"arrays": "never",
34+
"objects": "never",
35+
"imports": "never",
36+
"exports": "never",
37+
"functions": "never"
38+
}],
39+
"comma-spacing": ["error", { "before": false, "after": true }],
40+
"comma-style": ["error", "last"],
41+
"constructor-super": "error",
42+
"curly": ["error", "multi-line"],
43+
"dot-location": ["error", "property"],
44+
"eol-last": "error",
45+
"eqeqeq": ["error", "always", { "null": "ignore" }],
46+
"func-call-spacing": ["error", "never"],
47+
"generator-star-spacing": ["error", { "before": true, "after": true }],
48+
"handle-callback-err": ["error", "^(err|error)$" ],
49+
"indent": ["error", 2, { "SwitchCase": 1 }],
50+
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
51+
"new-cap": ["error", { "newIsCap": true, "capIsNew": false }],
52+
"new-parens": "error",
53+
"no-array-constructor": "error",
54+
"no-caller": "error",
55+
"no-class-assign": "error",
56+
"no-compare-neg-zero": "error",
57+
"no-cond-assign": "error",
58+
"no-const-assign": "error",
59+
"no-constant-condition": ["error", { "checkLoops": false }],
60+
"no-control-regex": "error",
61+
"no-debugger": "error",
62+
"no-delete-var": "error",
63+
"no-dupe-args": "error",
64+
"no-dupe-class-members": "error",
65+
"no-dupe-keys": "error",
66+
"no-duplicate-case": "error",
67+
"no-empty-character-class": "error",
68+
"no-empty-pattern": "error",
69+
"no-eval": "error",
70+
"no-ex-assign": "error",
71+
"no-extend-native": "error",
72+
"no-extra-bind": "error",
73+
"no-extra-boolean-cast": "error",
74+
"no-extra-parens": ["error", "functions"],
75+
"no-fallthrough": "error",
76+
"no-floating-decimal": "error",
77+
"no-func-assign": "error",
78+
"no-global-assign": "error",
79+
"no-implied-eval": "error",
80+
"no-inner-declarations": ["error", "functions"],
81+
"no-invalid-regexp": "error",
82+
"no-irregular-whitespace": "error",
83+
"no-iterator": "error",
84+
"no-label-var": "error",
85+
"no-labels": ["error", { "allowLoop": false, "allowSwitch": false }],
86+
"no-lone-blocks": "error",
87+
"no-mixed-operators": ["error", {
88+
"groups": [
89+
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
90+
["&&", "||"],
91+
["in", "instanceof"]
92+
],
93+
"allowSamePrecedence": true
94+
}],
95+
"no-mixed-spaces-and-tabs": "error",
96+
"no-multi-str": "error",
97+
"no-negated-in-lhs": "error",
98+
"no-new": "error",
99+
"no-new-func": "error",
100+
"no-new-object": "error",
101+
"no-new-require": "error",
102+
"no-new-symbol": "error",
103+
"no-new-wrappers": "error",
104+
"no-obj-calls": "error",
105+
"no-octal": "error",
106+
"no-octal-escape": "error",
107+
"no-path-concat": "error",
108+
"no-proto": "error",
109+
"no-redeclare": "error",
110+
"no-regex-spaces": "error",
111+
"no-return-assign": ["error", "except-parens"],
112+
"no-return-await": "error",
113+
"no-self-assign": "error",
114+
"no-self-compare": "error",
115+
"no-sequences": "error",
116+
"no-shadow-restricted-names": "error",
117+
"no-sparse-arrays": "error",
118+
"no-tabs": "error",
119+
"no-template-curly-in-string": "error",
120+
"no-this-before-super": "error",
121+
"no-throw-literal": "error",
122+
"no-undef": "error",
123+
"no-undef-init": "error",
124+
"no-unexpected-multiline": "error",
125+
"no-unmodified-loop-condition": "error",
126+
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
127+
"no-unreachable": "error",
128+
"no-unsafe-finally": "error",
129+
"no-unsafe-negation": "error",
130+
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }],
131+
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }],
132+
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": false }],
133+
"no-useless-call": "error",
134+
"no-useless-computed-key": "error",
135+
"no-useless-constructor": "error",
136+
"no-useless-escape": "error",
137+
"no-useless-rename": "error",
138+
"no-useless-return": "error",
139+
"no-whitespace-before-property": "error",
140+
"no-with": "error",
141+
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
142+
"one-var": ["error", { "initialized": "never" }],
143+
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
144+
"prefer-promise-reject-errors": "error",
145+
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
146+
"rest-spread-spacing": ["error", "never"],
147+
"semi": ["error", "always"],
148+
"semi-spacing": ["error", { "before": false, "after": true }],
149+
"space-in-parens": ["error", "never"],
150+
"space-infix-ops": "error",
151+
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
152+
"symbol-description": "error",
153+
"template-curly-spacing": ["error", "never"],
154+
"template-tag-spacing": ["error", "never"],
155+
"unicode-bom": ["error", "never"],
156+
"use-isnan": "error",
157+
"valid-typeof": ["error", { "requireStringLiterals": true }],
158+
"wrap-iife": ["error", "any", { "functionPrototypeMethods": true }],
159+
"yield-star-spacing": ["error", "both"],
160+
"yoda": ["error", "never"],
161+
162+
"import/export": "error",
163+
"import/first": "error",
164+
"import/no-duplicates": "error",
165+
"import/no-webpack-loader-syntax": "error",
166+
167+
"node/no-deprecated-api": "error",
168+
"node/process-exit-as-throw": "error",
169+
170+
"promise/param-names": "error",
171+
172+
"standard/array-bracket-even-spacing": ["error", "either"],
173+
"standard/computed-property-even-spacing": ["error", "even"],
174+
"standard/no-callback-literal": "error",
175+
"standard/object-curly-even-spacing": ["error", "either"]
176+
}
177+
}

0 commit comments

Comments
 (0)