@repodog/eslint-config 1.1.6 → 1.1.8
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 +39 -1
- package/package.json +2 -1
- package/playwright.cjs +5 -0
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm install @repodog/eslint-config --save-dev
|
|
|
16
16
|
|
|
17
17
|
```shell
|
|
18
18
|
# terminal
|
|
19
|
-
npm install @babel/eslint-parser @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-sort-class-members eslint-plugin-sort-destructure-keys eslint-plugin-sort-keys-fix eslint-plugin-typescript-sort-keys eslint-plugin-unicorn --save-dev
|
|
19
|
+
npm install @babel/eslint-parser @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-playwright eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-sort-class-members eslint-plugin-sort-destructure-keys eslint-plugin-sort-keys-fix eslint-plugin-typescript-sort-keys eslint-plugin-unicorn --save-dev
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Use package
|
|
@@ -31,3 +31,41 @@ module.exports = {
|
|
|
31
31
|
root: true,
|
|
32
32
|
};
|
|
33
33
|
```
|
|
34
|
+
|
|
35
|
+
### With Jest
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
// .eslintrc.cjs
|
|
39
|
+
module.exports = {
|
|
40
|
+
extends: ['@repodog/eslint-config'],
|
|
41
|
+
overrides: [
|
|
42
|
+
{
|
|
43
|
+
extends: ['@repodog/eslint-config/jest.cjs'],
|
|
44
|
+
files: ['**/*.{spec,test}.*'],
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
parserOptions: {
|
|
48
|
+
tsconfigRootDir: __dirname,
|
|
49
|
+
},
|
|
50
|
+
root: true,
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### With Playwright
|
|
55
|
+
|
|
56
|
+
```javascript
|
|
57
|
+
// .eslintrc.cjs
|
|
58
|
+
module.exports = {
|
|
59
|
+
extends: ['@repodog/eslint-config'],
|
|
60
|
+
overrides: [
|
|
61
|
+
{
|
|
62
|
+
extends: ['@repodog/eslint-config/playwright.cjs'],
|
|
63
|
+
files: ['**/*.{spec,test}.*'],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
parserOptions: {
|
|
67
|
+
tsconfigRootDir: __dirname,
|
|
68
|
+
},
|
|
69
|
+
root: true,
|
|
70
|
+
};
|
|
71
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repodog/eslint-config",
|
|
3
3
|
"description": "The RepoDog ESLint config module.",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.8",
|
|
5
5
|
"author": "Dylan Aubrey",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/repodog",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"eslint-plugin-import": "<3",
|
|
26
26
|
"eslint-plugin-jest": "<28",
|
|
27
27
|
"eslint-plugin-jsx-a11y": "<7",
|
|
28
|
+
"eslint-plugin-playwright": "<1",
|
|
28
29
|
"eslint-plugin-prettier": "<5",
|
|
29
30
|
"eslint-plugin-react": "<8",
|
|
30
31
|
"eslint-plugin-react-hooks": "<5",
|