-
Notifications
You must be signed in to change notification settings - Fork 1
/
naming.js
62 lines (56 loc) · 1.33 KB
/
naming.js
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
60
61
62
"use strict";
/**
* Rules that enforce naming conventions
*/
module.exports = {
rules: {
/**
* Enforces PascalCased class and interface names.
*
* @see https://palantir.github.io/tslint/rules/class-name/
*/
"class-name": true,
/**
* Enforces a consistent file naming convention
*
* @see https://palantir.github.io/tslint/rules/file-name-casing/
*/
"file-name-casing": {
severity: "default",
options: [
"kebab-case"
]
},
/**
* Requires interface names to begin with a capital `I`
*
* @see https://palantir.github.io/tslint/rules/interface-name/
*/
"interface-name": {
severity: "default",
options: [
"never-prefix"
]
},
/**
* Requires that a default import have the same name as the declaration it imports.
* Does nothing for anonymous default exports.
*
* @see https://palantir.github.io/tslint/rules/match-default-export-name/
*/
"match-default-export-name": true,
/**
* Checks variable names for various errors.
*
* @see https://palantir.github.io/tslint/rules/variable-name/
*/
"variable-name": {
severity: "default",
options: [
"ban-keywords",
"check-format",
"allow-leading-underscore",
]
},
}
};