-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc
46 lines (46 loc) · 1.06 KB
/
.eslintrc
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
{
"root": true,
"extends": ["airbnb", "airbnb-typescript"],
"ignorePatterns": [
"jest.config.*",
"rollup.config.*",
"node_modules/",
"dist/",
"**sample-app**/",
"**playground**/",
"*.cjs",
"tests/func-tests/"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.base.json",
"tsconfigRootDir": "."
},
"rules": {
"import/prefer-default-export": ["off"],
"no-plusplus": ["off"],
"max-classes-per-file": ["off"],
"max-len": [
"error",
{ "code": 120, "ignoreComments": true, "ignoreTrailingComments": true }
],
"react/button-has-type": ["off"],
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"import/no-extraneous-dependencies": ["off"],
"@typescript-eslint/return-await": ["off"]
},
"overrides": [
{
"files": ["./examples/passport/**"],
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"no-underscore-dangle": "warn"
}
}
]
}