Skip to content

Commit a0ebe25

Browse files
committed
chore: allow tslint.json config in sub folders
angular/angular-cli#5770
1 parent 5f31fed commit a0ebe25

File tree

2 files changed

+131
-2
lines changed

2 files changed

+131
-2
lines changed

angular.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"lint": {
108108
"builder": "@angular-devkit/build-angular:tslint",
109109
"options": {
110-
"tslintConfig": "client/tslint.json",
111110
"tsConfig": [
112111
"client/src/tsconfig.app.json",
113112
"client/src/tsconfig.spec.json"
@@ -133,7 +132,6 @@
133132
"lint": {
134133
"builder": "@angular-devkit/build-angular:tslint",
135134
"options": {
136-
"tslintConfig": "client/tslint.json",
137135
"tsConfig": [
138136
"client/e2e/tsconfig.e2e.json"
139137
],

tslint.json

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"rulesDirectory": [
3+
"node_modules/codelyzer"
4+
],
5+
"rules": {
6+
"arrow-return-shorthand": true,
7+
"callable-types": true,
8+
"class-name": true,
9+
"comment-format": [
10+
true,
11+
"check-space"
12+
],
13+
"curly": true,
14+
"deprecation": {
15+
"severity": "warn"
16+
},
17+
"eofline": true,
18+
"forin": true,
19+
"import-blacklist": [
20+
true,
21+
"rxjs/Rx"
22+
],
23+
"import-spacing": true,
24+
"indent": [
25+
true,
26+
"spaces"
27+
],
28+
"interface-over-type-literal": true,
29+
"label-position": true,
30+
"max-line-length": [
31+
true,
32+
140
33+
],
34+
"member-access": false,
35+
"member-ordering": [
36+
true,
37+
{
38+
"order": [
39+
"static-field",
40+
"instance-field",
41+
"static-method",
42+
"instance-method"
43+
]
44+
}
45+
],
46+
"no-arg": true,
47+
"no-bitwise": true,
48+
"no-console": [
49+
true,
50+
"debug",
51+
"info",
52+
"time",
53+
"timeEnd",
54+
"trace"
55+
],
56+
"no-construct": true,
57+
"no-debugger": true,
58+
"no-duplicate-super": true,
59+
"no-empty": false,
60+
"no-empty-interface": true,
61+
"no-eval": true,
62+
"no-inferrable-types": [
63+
true,
64+
"ignore-params"
65+
],
66+
"no-misused-new": true,
67+
"no-non-null-assertion": true,
68+
"no-redundant-jsdoc": true,
69+
"no-shadowed-variable": true,
70+
"no-string-literal": false,
71+
"no-string-throw": true,
72+
"no-switch-case-fall-through": true,
73+
"no-trailing-whitespace": true,
74+
"no-unnecessary-initializer": true,
75+
"no-unused-expression": true,
76+
"no-use-before-declare": true,
77+
"no-var-keyword": true,
78+
"object-literal-sort-keys": false,
79+
"one-line": [
80+
true,
81+
"check-open-brace",
82+
"check-catch",
83+
"check-else",
84+
"check-whitespace"
85+
],
86+
"prefer-const": true,
87+
"quotemark": [
88+
true,
89+
"single"
90+
],
91+
"radix": true,
92+
"semicolon": [
93+
true,
94+
"always"
95+
],
96+
"triple-equals": [
97+
true,
98+
"allow-null-check"
99+
],
100+
"typedef-whitespace": [
101+
true,
102+
{
103+
"call-signature": "nospace",
104+
"index-signature": "nospace",
105+
"parameter": "nospace",
106+
"property-declaration": "nospace",
107+
"variable-declaration": "nospace"
108+
}
109+
],
110+
"unified-signatures": true,
111+
"variable-name": false,
112+
"whitespace": [
113+
true,
114+
"check-branch",
115+
"check-decl",
116+
"check-operator",
117+
"check-separator",
118+
"check-type"
119+
],
120+
"no-output-on-prefix": true,
121+
"use-input-property-decorator": true,
122+
"use-output-property-decorator": true,
123+
"use-host-property-decorator": true,
124+
"no-input-rename": true,
125+
"no-output-rename": true,
126+
"use-life-cycle-interface": true,
127+
"use-pipe-transform-interface": true,
128+
"component-class-suffix": true,
129+
"directive-class-suffix": true
130+
}
131+
}

0 commit comments

Comments
 (0)