forked from webdriverio-community/wdio-electron-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.33 KB
/
.eslintrc.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
{
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:import/warnings",
"plugin:n/recommended",
"plugin:wdio/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import", "n", "wdio"],
"env": {
"node": true
},
"rules": {
"no-unused-vars": "off",
"import/prefer-default-export": "off",
"n/no-unpublished-import": "error",
"n/no-missing-import": "off", // duped by import
"n/no-unsupported-features/es-syntax": ["error", { "ignores": ["modules"] }],
"import/no-extraneous-dependencies": "off",
"n/no-extraneous-import": "off",
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["capabilities", "cap"] }],
"class-methods-use-this": ["error", { "exceptMethods": ["afterTest"] }]
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"settings": {
"node": {
"tryExtensions": [".js", ".json", ".node", ".ts"]
},
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
}
}
}