-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtslint.json
More file actions
76 lines (76 loc) · 2.67 KB
/
tslint.json
File metadata and controls
76 lines (76 loc) · 2.67 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"project": "./tsconfig.json",
"defaultSeverity": "warning",
"extends": [
"tslint:recommended",
"tslint-config-airbnb",
"tslint-react",
"tslint-react-hooks"
],
"linterOptions": {
"exclude": [
"node_modules/**/*",
"**/__test__/**"
]
},
"rules": {
"eofline": true,
"no-empty": false,
"export-name": false,
"import-name": false,
"no-console": false,
"no-return-await": false,
"no-default-export": false,
"no-duplicate-imports": false,
"member-access": [true, "no-public"],
"member-ordering": false,
"ordered-imports": false,
"no-boolean-literal-compare": true,
"object-literal-sort-keys": false,
"jsx-alignment": true,
"jsx-no-bind": true,
"jsx-no-lambda": false,
"jsx-wrap-multiline": false,
"jsx-boolean-value": false,
"jsx-no-multiline-js": false,
"interface-name": [true, "never-prefix"],
"quotemark": [true, "single", "jsx-double", "avoid-escape"],
"arrow-parens": [true, "ban-single-arg-parens"],
"semicolon": [true, "always", "ignore-interfaces"],
"max-line-length": [true, 120],
"no-empty-interface": false,
"no-shadowed-variable": false,
"no-submodule-imports": false,
"no-floating-promises": [false],
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-implicit-dependencies": [true, "dev", ["src", "@/*", "@/i18n", "@/core", "@/modules", "@/components", "@/resources", "@/navigation", "@/utils", "@/stores", "@/routes", "@/configs", "@/screens"]],
"no-constant-condition": false,
"trailing-comma": [true, {
"singleline": "never",
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "never",
"typeLiterals": "ignore"
}
}],
"function-name": [true, {
"method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"private-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"protected-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"static-method-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$",
"function-regex": "^\\*?\\[?[a-zA-Z][\\w\\d\\.]*\\]?$"
}],
"typedef": [true, "parameter", "property-declaration"],
"triple-equals": [true, "allow-undefined-check"],
"ter-indent": [true, 2, {
"SwitchCase": 1
}],
"variable-name": [true, "ban-keywords", "check-format", "allow-pascal-case"],
"max-classes-per-file": false,
"no-import-side-effect": [true, { "ignore-module": "(\\.html|\\.css|\\.test.tsx?)$" }],
"space-before-function-paren": [true, {"anonymous": "always", "named": "always", "asyncArrow": "always"}],
"object-shorthand-properties-first": false
},
"exclude": ["node_modules"]
}