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

Commit deb5122

Browse files
author
Will Monk
committed
Update Tslint
1 parent 9135f06 commit deb5122

File tree

2 files changed

+104
-2
lines changed

2 files changed

+104
-2
lines changed

packages/react-scripts/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-scripts-ts",
3-
"version": "0.8.4",
3+
"version": "0.8.5",
44
"description": "Configuration and scripts for Create React App.",
55
"repository": "wmonk/create-react-app",
66
"license": "BSD-3-Clause",
@@ -49,6 +49,10 @@
4949
"strip-ansi": "3.0.1",
5050
"style-loader": "0.13.1",
5151
"ts-loader": "^1.3.1",
52+
"tslint": "^4.0.2",
53+
"tslint-loader": "^3.3.0",
54+
"tslint-microsoft-contrib": "^2.0.14",
55+
"tslint-react": "^2.0.0",
5256
"typescript": "^2.1.4",
5357
"url-loader": "0.5.7",
5458
"webpack": "1.14.0",
+99-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,99 @@
1-
{}
1+
{
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": false,
18+
"forin": true,
19+
"indent": [ true, "spaces" ],
20+
"interface-name": [true, "never-prefix"],
21+
"jsdoc-format": true,
22+
"jsx-no-lambda": false,
23+
"jsx-no-multiline-js": false,
24+
"label-position": true,
25+
"max-line-length": [ true, 120 ],
26+
"member-ordering": [
27+
true,
28+
"public-before-private",
29+
"static-before-instance",
30+
"variables-before-functions"
31+
],
32+
"no-any": true,
33+
"no-arg": true,
34+
"no-bitwise": true,
35+
"no-console": [
36+
true,
37+
"log",
38+
"error",
39+
"debug",
40+
"info",
41+
"time",
42+
"timeEnd",
43+
"trace"
44+
],
45+
"no-consecutive-blank-lines": true,
46+
"no-construct": true,
47+
"no-debugger": true,
48+
"no-duplicate-variable": true,
49+
"no-empty": true,
50+
"no-eval": true,
51+
"no-shadowed-variable": true,
52+
"no-string-literal": true,
53+
"no-switch-case-fall-through": true,
54+
"no-trailing-whitespace": false,
55+
"no-unused-expression": true,
56+
"no-use-before-declare": true,
57+
"one-line": [
58+
true,
59+
"check-catch",
60+
"check-else",
61+
"check-open-brace",
62+
"check-whitespace"
63+
],
64+
"quotemark": [true, "single", "jsx-double"],
65+
"radix": true,
66+
"semicolon": [true, "always"],
67+
"switch-default": true,
68+
69+
"trailing-comma": false,
70+
71+
"triple-equals": [ true, "allow-null-check" ],
72+
"typedef": [
73+
true,
74+
"parameter",
75+
"property-declaration"
76+
],
77+
"typedef-whitespace": [
78+
true,
79+
{
80+
"call-signature": "nospace",
81+
"index-signature": "nospace",
82+
"parameter": "nospace",
83+
"property-declaration": "nospace",
84+
"variable-declaration": "nospace"
85+
}
86+
],
87+
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
88+
"whitespace": [
89+
true,
90+
"check-branch",
91+
"check-decl",
92+
"check-module",
93+
"check-operator",
94+
"check-separator",
95+
"check-type",
96+
"check-typecast"
97+
]
98+
}
99+
}

0 commit comments

Comments
 (0)