forked from politics-rewired/switchboard-rewired
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
48 lines (43 loc) · 1.18 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
{
"extends": [
"tslint:latest",
"tslint-config-airbnb",
"tslint-config-prettier"
],
"linterOptions": {
"exclude": ["typings/@bandwidth/numbers/*", "src/lib/db-types.ts"]
},
"rules": {
"interface-name": [true, "never-prefix"],
// TODO: allow devDependencies only in **/*.spec.ts files:
// waiting on https://github.com/palantir/tslint/pull/3708
"no-implicit-dependencies": [true, "dev"],
/* Rewired Rules */
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-leading-underscore",
"require-const-for-all-caps"
]
},
"import-name": {
"options": [
true,
{
"airtable": "Airtable",
"pgCursor": "Cursor",
"ioredisMock": "RedisMock",
"ioredis": "Redis",
"map": "usZips"
}
]
},
"no-submodule-imports": [true, "lodash", "us-zips"],
"prefer-array-literal": [true, { "allow-type-parameters": true }],
// https://github.com/palantir/tslint/pull/3607#issuecomment-355713503
"object-literal-sort-keys": false,
"object-shorthand-properties-first": false
/* End Rewired Rules */
}
}