-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
45 lines (45 loc) · 1.31 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
{
"defaultSeverity": "error",
"extends": ["tslint:latest", "tslint-config-airbnb", "tslint-react", "tslint-config-prettier"],
"jsRules": {},
"rules": {
"import-name": [
true,
{
"app": "App",
"document": "Document",
"graphqlTag": "gql",
"isomorphicUnfetch": "fetch",
"head": "Head",
"link": "Link",
"nprogress": "NProgress",
"react": "React",
"qrcodeReact": "QRcode",
"reactDom": "ReactDOM",
"router": "Router",
"styledComponents": "styled"
}
],
"jsx-boolean-value": ["never"],
"jsx-no-lambda": [false],
"jsx-self-close": [true],
"interface-name": [false],
"no-submodule-imports": [
// Disabling submodule imports rule because Material-UI relies on submodules heavily
false,
"@material-ui/core/",
"@material-ui/core/CssBaseline",
"@material-ui/core/es",
"next/app",
"next/document",
"next/head",
"next/link",
"next/router"
],
// Unused variables are still not allowed, but the one checking for this is the Typescript compiler
"no-unused-variable": [false],
"quotemark": [true, "single", "jsx-double", "avoid-escape", "avoid-template"],
"variable-name": [true, "allow-pascal-case"]
},
"rulesDirectory": []
}