eslint-plugin-wdio 9.0.5 → 9.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@ npm install eslint-plugin-wdio --save-dev
|
|
|
22
22
|
|
|
23
23
|
This plugin export a recommended configuration that enforce good practices.
|
|
24
24
|
|
|
25
|
+
### With Eslint v8 and below
|
|
26
|
+
|
|
25
27
|
To enable this configuration use the extends property in your `.eslintrc` config file:
|
|
26
28
|
|
|
27
29
|
```json
|
|
@@ -34,7 +36,25 @@ To enable this configuration use the extends property in your `.eslintrc` config
|
|
|
34
36
|
}
|
|
35
37
|
```
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
### With Eslint v9 and Flat Config
|
|
40
|
+
|
|
41
|
+
If you are using the latest version of Eslint with the [flat configuration](https://eslint.org/docs/latest/use/configure/migration-guide), you can embed this plugin as follows:
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
// eslint.config.mjs
|
|
45
|
+
import { config as wdioConfig } from "eslint-plugin-wdio";
|
|
46
|
+
|
|
47
|
+
export default [
|
|
48
|
+
{
|
|
49
|
+
extends: [
|
|
50
|
+
wdioConfig['flat/recommended'],
|
|
51
|
+
// ...
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
See [ESLint documentation](https://eslint.org/docs/latest/use/configure/configuration-files) for more information about extending configuration files.
|
|
38
58
|
|
|
39
59
|
## List of supported rules
|
|
40
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-wdio",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.11",
|
|
4
4
|
"description": "Eslint rules for WebdriverIO",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/eslint-plugin-wdio",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"typeScriptVersion": "3.8.3",
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=18"
|
|
21
|
+
"node": ">=18.20.0"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@types/estree": "^1.0.1",
|
|
40
40
|
"eslint": "^9.0.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0525efdad783af9d6f96ade9d8a3ada8454ad5c6"
|
|
43
43
|
}
|