-
Notifications
You must be signed in to change notification settings - Fork 33
/
tslint.json
59 lines (59 loc) · 2.12 KB
/
tslint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"extends": [
"tslint-react",
"tslint-microsoft-contrib/latest",
"tslint-config-prettier"
],
"jsRules": {},
"linterOptions": {
"exclude": ["node_modules/**/*.ts"]
},
"rules": {
"completed-docs": false,
// We want to be able to export from index.ts
"export-name": false,
// import-name has a bug where we can't import index.sass
// https://github.com/Microsoft/tslint-microsoft-contrib/issues/667 <issue>
// https://github.com/Microsoft/tslint-microsoft-contrib/issues/671 <issue>
// https://github.com/Microsoft/tslint-microsoft-contrib/pull/669 <pr>
"import-name": false,
"interface-name": { "options": ["never-prefix"], "severity": "default" },
"jsx-boolean-value": { "options": ["never"], "severity": "default" },
"jsx-no-multiline-js": false,
// We want dynamic test generation
// https://github.com/Microsoft/tslint-microsoft-contrib/issues/85
"mocha-no-side-effect-code": false,
// Too strict:
// https://github.com/palantir/tslint/issues/3646
"newline-per-chained-call": false,
"no-angle-bracket-type-assertion": true,
// We want to support Overrides interfaces
"no-empty-interface": false,
"no-implicit-dependencies": {
"options": ["dev", ["src", "docs", "classNames"]],
"severity": "default"
},
"no-import-side-effect": {
"options": { "ignore-module": "(\\.sass)$" },
"severity": "default"
},
"no-relative-imports": false,
// We want to allow JSDoc
// https://github.com/Microsoft/tslint-microsoft-contrib/issues/385
"no-single-line-block-comment": false,
"no-submodule-imports": {
"options": ["src", "docs"],
"severity": "default"
},
// We want `as` as a typecast instead of using <brackets>
// https://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#new-tsx-file-extension-and-as-operator
"prefer-type-cast": false,
// This is insanely strict
"typedef": false,
"variable-name": {
"options": ["check-format", "allow-pascal-case"],
"severity": "default"
}
},
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"]
}