tslint.json 1.2 KB
Newer Older
E
Erich Gamma 已提交
1
{
2 3 4
	"rulesDirectory": [
		"build/lib/tslint"
	],
E
Erich Gamma 已提交
5
	"rules": {
E
Erich Gamma 已提交
6
		"no-unused-expression": true,
7
		"no-duplicate-variable": true,
E
Erich Gamma 已提交
8 9 10
		"no-unused-variable": true,
		"curly": true,
		"class-name": true,
11 12 13
		"semicolon": [
			"always"
		],
14 15 16 17
		"triple-equals": true,
		"no-unexternalized-strings": [
			true,
			{
18 19 20 21
				"signatures": [
					"localize",
					"nls.localize"
				],
22 23 24
				"keyIndex": 0,
				"messageIndex": 1
			}
25 26
		],
		"layering": [
27
			true,
28 29 30 31 32 33 34 35
			{
				"common": [],
				"node": [
					"common"
				],
				"browser": [
					"common"
				],
J
Johannes Rieken 已提交
36
				"electron-main": [
37
					"common",
J
Johannes Rieken 已提交
38
					"node"
39 40 41 42 43 44 45
				],
				"electron-browser": [
					"common",
					"browser",
					"node"
				]
			}
46 47
		],
		"import-patterns": [
48
			true,
49
			{
J
Johannes Rieken 已提交
50
				"target": "**/{node,electron-browser,electron-main,extensions}/**",
51 52
				"restrictions": "**/*"
			},
53
			{
J
Johannes Rieken 已提交
54
				"target": "{**/**.test.ts,**/test/**}",
55 56
				"restrictions": "{**/vs/**,assert,sinon}"
			},
57 58
			{
				"target": "**/{common,browser,workbench}/**",
J
Johannes Rieken 已提交
59
				"restrictions": "**/vs/**"
60
			}
J
Joao Moreno 已提交
61
		],
62 63 64 65 66 67 68
		"duplicate-imports": true,
		"allow-async": [
			true,
			[
				"node",
				"electron-main",
				"electron-browser",
69 70
				"extensions",
				"smoke"
71 72
			]
		]
E
Erich Gamma 已提交
73
	}
74
}