-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
50 lines (50 loc) · 1.57 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
{
"defaultSeverity": "warning",
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"],
"extends": ["tslint:recommended", "tslint-microsoft-contrib/recommended"],
"linterOptions": {
"exclude": ["node_modules/**"]
},
"rules": {
"quotemark": [true, "single"],
"indent": [true, "tabs", 4],
"interface-name": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"no-consecutive-blank-lines": false,
"no-relative-imports": true,
"no-var-keyword": true,
"class-name": true,
"import-name": [false],
"export-name": false,
"no-backbone-get-set-outside-model": false,
"function-name": false,
"no-shadowed-variable": false,
"variable-name": false,
"no-useless-files": false,
"arrow-parens": false,
"ban": [
true,
{
"name": ["localStorage", "setItem"],
"message": "Use SecureStorage instead by importing with `import SecureStorage from '@/utils/secure-storage'`"
},
{
"name": ["localStorage", "getItem"],
"message": "Use SecureStorage instead by importing with `import SecureStorage from '@/utils/secure-storage'`"
},
{
"name": ["localStorage", "clear"],
"message": "Use SecureStorage instead by importing with `import SecureStorage from '@/utils/secure-storage'`"
},
{
"name": ["localStorage", "removeItem"],
"message": "Use SecureStorage instead by importing with `import SecureStorage from '@/utils/secure-storage'`"
},
{
"name": ["localStorage", "key"],
"message": "Use SecureStorage instead by importing with `import SecureStorage from '@/utils/secure-storage'`"
}
]
}
}