forked from artsy/eigen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
32 lines (32 loc) · 1.11 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
{
"extends": [
"tslint:recommended",
"tslint-react",
"react",
"tslint-config-prettier",
"tslint-plugin-relay"
],
"rulesDirectory": "./tslint-rules",
"linterOptions": {
"exclude": ["src/palette/**/*test.*", "dangerfile.ts"]
},
"rules": {
"arrow-parens": false,
"import-blacklist": [true, { "react-test-renderer": ["create"] }],
"interface-name": [true, "never-prefix"],
"jsx-safe-conditionals": true,
"max-classes-per-file": false,
"member-access": [false, "check-accessor", "check-constructor"],
"no-console": [true, ["error", ["warn", "error"]]],
"object-literal-sort-keys": false,
"ordered-imports": true,
"switch-default": false,
"use-wrapped-components": true,
"variable-name": [true, "allow-pascal-case", "allow-leading-underscore"],
"jsx-curly-brace-presence": { "options": { "props": "never" } },
"jsx-no-lambda": false,
"jsx-boolean-value": [true, "never"],
"jsx-space-before-trailing-slash": true,
"jsx-no-bind": false // we still have some class components, they are old, don't bother with linting them too much.
}
}