Skip to content

Commit 6ca086b

Browse files
committed
Add .editorconfig
1 parent e17b2c3 commit 6ca086b

File tree

3 files changed

+124
-111
lines changed

3 files changed

+124
-111
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[src/{**.js,**.ts,**.tsx,**.css,**.scss}]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[{*.json,*.yml}]
14+
indent_style = space
15+
indent_size = 2

src/components/parts/UserMenu.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ const mapDispatchToProps = (dispatch: Dispatch<State>) => ({
8181
}
8282
});
8383

84-
export default withRouter(
85-
connect(
86-
mapStateToProps,
87-
mapDispatchToProps
88-
)(UserMenu)
89-
);
84+
export default withRouter(connect(
85+
mapStateToProps,
86+
mapDispatchToProps
87+
)(UserMenu));

tslint.json

+105-105
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
11
{
2-
"extends": ["tslint-react"],
3-
"rules": {
4-
"align": [
5-
true,
6-
"parameters",
7-
"arguments",
8-
"statements"
9-
],
10-
"ban": false,
11-
"class-name": true,
12-
"comment-format": [
13-
true,
14-
"check-space"
15-
],
16-
"curly": true,
17-
"eofline": true,
18-
"forin": true,
19-
"indent": [true, "spaces"],
20-
"interface-name": [true, "never-prefix"],
21-
"jsdoc-format": true,
22-
"jsx-no-bind": true,
23-
"jsx-no-lambda": true,
24-
"jsx-no-multiline-js": false,
25-
"jsx-boolean-value": [true, "never"],
26-
"jsx-space-before-trailing-slash": true,
27-
"label-position": true,
28-
"max-line-length": [true, 120],
29-
"member-ordering": [
30-
true,
31-
"public-before-private",
32-
"static-before-instance",
33-
"variables-before-functions"
34-
],
35-
"no-any": true,
36-
"no-arg": true,
37-
"no-bitwise": true,
38-
"no-console": [
39-
true,
40-
"log",
41-
"error",
42-
"debug",
43-
"info",
44-
"time",
45-
"timeEnd",
46-
"trace"
47-
],
48-
"no-consecutive-blank-lines": true,
49-
"no-construct": true,
50-
"no-debugger": true,
51-
"no-duplicate-variable": true,
52-
"no-empty": true,
53-
"no-eval": true,
54-
"no-shadowed-variable": true,
55-
"no-string-literal": true,
56-
"no-switch-case-fall-through": true,
57-
"no-trailing-whitespace": true,
58-
"no-unused-expression": true,
59-
"no-use-before-declare": true,
60-
"one-line": [
61-
true,
62-
"check-catch",
63-
"check-else",
64-
"check-open-brace",
65-
"check-whitespace"
66-
],
67-
"quotemark": [true, "single", "jsx-double"],
68-
"radix": true,
69-
"semicolon": [true, "always", "strict-bound-class-methods"],
70-
"switch-default": true,
71-
"trailing-comma": [
72-
true,
73-
{
74-
"singleline": "never",
75-
"multiline": "never",
76-
"esSpecCompliant": true
77-
}
78-
],
79-
"triple-equals": [true, "allow-null-check"],
80-
"typedef": [
81-
true,
82-
"parameter",
83-
"property-declaration"
84-
],
85-
"typedef-whitespace": [
86-
true,
87-
{
88-
"call-signature": "nospace",
89-
"index-signature": "nospace",
90-
"parameter": "nospace",
91-
"property-declaration": "nospace",
92-
"variable-declaration": "nospace"
93-
}
94-
],
95-
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
96-
"whitespace": [
97-
true,
98-
"check-branch",
99-
"check-decl",
100-
"check-module",
101-
"check-operator",
102-
"check-separator",
103-
"check-type",
104-
"check-typecast"
105-
]
106-
}
2+
"extends": ["tslint-react"],
3+
"rules": {
4+
"align": [
5+
true,
6+
"parameters",
7+
"arguments",
8+
"statements"
9+
],
10+
"ban": false,
11+
"class-name": true,
12+
"comment-format": [
13+
true,
14+
"check-space"
15+
],
16+
"curly": true,
17+
"eofline": true,
18+
"forin": true,
19+
"indent": [true, "spaces"],
20+
"interface-name": [true, "never-prefix"],
21+
"jsdoc-format": true,
22+
"jsx-no-bind": true,
23+
"jsx-no-lambda": true,
24+
"jsx-no-multiline-js": false,
25+
"jsx-boolean-value": [true, "never"],
26+
"jsx-space-before-trailing-slash": true,
27+
"label-position": true,
28+
"max-line-length": [true, 120],
29+
"member-ordering": [
30+
true,
31+
"public-before-private",
32+
"static-before-instance",
33+
"variables-before-functions"
34+
],
35+
"no-any": true,
36+
"no-arg": true,
37+
"no-bitwise": true,
38+
"no-console": [
39+
true,
40+
"log",
41+
"error",
42+
"debug",
43+
"info",
44+
"time",
45+
"timeEnd",
46+
"trace"
47+
],
48+
"no-consecutive-blank-lines": true,
49+
"no-construct": true,
50+
"no-debugger": true,
51+
"no-duplicate-variable": true,
52+
"no-empty": true,
53+
"no-eval": true,
54+
"no-shadowed-variable": true,
55+
"no-string-literal": true,
56+
"no-switch-case-fall-through": true,
57+
"no-trailing-whitespace": true,
58+
"no-unused-expression": true,
59+
"no-use-before-declare": true,
60+
"one-line": [
61+
true,
62+
"check-catch",
63+
"check-else",
64+
"check-open-brace",
65+
"check-whitespace"
66+
],
67+
"quotemark": [true, "single", "jsx-double"],
68+
"radix": true,
69+
"semicolon": [true, "always", "strict-bound-class-methods"],
70+
"switch-default": true,
71+
"trailing-comma": [
72+
true,
73+
{
74+
"singleline": "never",
75+
"multiline": "never",
76+
"esSpecCompliant": true
77+
}
78+
],
79+
"triple-equals": [true, "allow-null-check"],
80+
"typedef": [
81+
true,
82+
"parameter",
83+
"property-declaration"
84+
],
85+
"typedef-whitespace": [
86+
true,
87+
{
88+
"call-signature": "nospace",
89+
"index-signature": "nospace",
90+
"parameter": "nospace",
91+
"property-declaration": "nospace",
92+
"variable-declaration": "nospace"
93+
}
94+
],
95+
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
96+
"whitespace": [
97+
true,
98+
"check-branch",
99+
"check-decl",
100+
"check-module",
101+
"check-operator",
102+
"check-separator",
103+
"check-type",
104+
"check-typecast"
105+
]
106+
}
107107
}

0 commit comments

Comments
 (0)