-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
38 lines (38 loc) · 973 Bytes
/
.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
{
"extends": [
"prettier",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "prefer-arrow"],
"rules": {
"prettier/prettier": ["error"],
"prefer-arrow/prefer-arrow-functions": "error",
"array-callback-return": "off",
"prefer-const": "error",
"no-var": "error",
"@typescript-eslint/no-unused-vars": "warn"
},
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"overrides": [
{
"files": ["./playwright/*.ts", "./playwright/tests/*.ts"],
"extends": "plugin:playwright/recommended",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": ["./tsconfig.json"]
},
"rules": {
"playwright/expect-expect": "off",
"@typescript-eslint/no-floating-promises": "error"
}
}
]
}