forked from OpenEnergyDashboard/OED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
65 lines (64 loc) · 2.84 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-react"
],
// Rules for JavaScript code.
"jsRules": {
// We have to indent with tabs
"indent": [true, "tabs"],
// No lines longer than 150 are allowed
"max-line-length": [true, 150],
// In general, strings should be clean and single-quoted, with no templates where they aren't needed
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
// No trailing commas allowed anywhere
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
// Sometimes we want to seperate sections with multiple blank lines
"no-consecutive-blank-lines": [false],
// Arrow function style: arg => value or (arg1, arg2) => value
"arrow-parens": [true, "ban-single-arg-parens"],
// No need to put keys in alphabetical order
"object-literal-sort-keys": false,
// It's useless to specify radices in most cases
"radix": false,
// The order of imports is annoying and not useful
"ordered-imports": false
},
"rules": {
// We have to indent with tabs
"indent": [true, "tabs"],
// No lines longer than 150 are allowed
"max-line-length": [true, 150],
// In general, strings should be clean and single-quoted, with no templates where they aren't needed
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
// No trailing commas allowed anywhere
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
// Sometimes we want to seperate sections with multiple blank lines
"no-consecutive-blank-lines": [false],
// Arrow function style: arg => value or (arg1, arg2) => value
"arrow-parens": [true, "ban-single-arg-parens"],
// No need to put keys in alphabetical order
"object-literal-sort-keys": false,
// It's useless to specify radices in most cases
"radix": false,
// The order of imports is annoying and not useful
"ordered-imports": false,
// Interfaces don't need to start with the letter I.
"interface-name": false,
// This rule is buggy.
"jsx-wrap-multiline": false,
// We shouldn't need to be explicit about the value of a true boolean option
"jsx-boolean-value": [true, "never"],
// Long JavaScript (and TypeScript) code should be allowed in JSX/TSX XML
"jsx-no-multiline-js": false,
// We don't have issue with performance here
"jsx-no-lambda": false
},
"rulesDirectory": []
}