Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 7454424

Browse files
committed
Add editorconfig and eslintrc
1 parent bdd5973 commit 7454424

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
tab_width = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

.eslintrc

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"env": {
3+
"jasmine": true,
4+
"node": true,
5+
"mocha": true,
6+
"browser": true,
7+
"builtin": true
8+
},
9+
"globals": {},
10+
"rules": {
11+
"block-scoped-var": 2,
12+
"camelcase": 0,
13+
"curly": [
14+
2,
15+
"all"
16+
],
17+
"dot-notation": [
18+
2,
19+
{
20+
"allowKeywords": true
21+
}
22+
],
23+
"eqeqeq": [
24+
2,
25+
"allow-null"
26+
],
27+
"global-strict": [
28+
2,
29+
"never"
30+
],
31+
"guard-for-in": 2,
32+
"new-cap": 0,
33+
"no-bitwise": 2,
34+
"no-caller": 2,
35+
"no-cond-assign": [
36+
2,
37+
"except-parens"
38+
],
39+
"no-debugger": 2,
40+
"no-empty": 2,
41+
"no-eval": 2,
42+
"no-extend-native": 2,
43+
"no-extra-parens": 0,
44+
"no-irregular-whitespace": 2,
45+
"no-iterator": 2,
46+
"no-loop-func": 2,
47+
"no-multi-str": 2,
48+
"no-new": 2,
49+
"no-proto": 2,
50+
"no-script-url": 2,
51+
"no-sequences": 2,
52+
"no-shadow": 2,
53+
"no-undef": 2,
54+
"no-unused-vars": 2,
55+
"no-with": 2,
56+
"quotes": [
57+
0,
58+
"single"
59+
],
60+
"semi": [
61+
0,
62+
"never"
63+
],
64+
"strict": 2,
65+
"valid-typeof": 2,
66+
"wrap-iife": [
67+
2,
68+
"inside"
69+
]
70+
}
71+
}

0 commit comments

Comments
 (0)