@bigbinary/neeto-playwright-commons 3.3.3 → 3.3.4
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 +1 -10
- package/configs/eslint/common.js +9 -7
- package/configs/eslint/host.js +1 -1
- package/index.cjs.js +42 -1496
- package/index.cjs.js.map +1 -1
- package/index.js +46 -1500
- package/index.js.map +1 -1
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -55,15 +55,6 @@ Run linters against staged git files.
|
|
|
55
55
|
yarn add nano-staged
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
### `dotenv-webpack`
|
|
59
|
-
|
|
60
|
-
`dotenv-webpack` is a secure webpack plugin that supports
|
|
61
|
-
[dotenv](https://www.npmjs.com/package/dotenv) and other environment variables.
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
yarn add dotenv-webpack
|
|
65
|
-
```
|
|
66
|
-
|
|
67
58
|
### `dayjs`
|
|
68
59
|
|
|
69
60
|
Dayjs is a JavaScript library that parses, validates, manipulates, and displays
|
|
@@ -94,7 +85,7 @@ yarn add playwright-i18next-fixture
|
|
|
94
85
|
We can install all the above peer dependencies by running a single command.
|
|
95
86
|
|
|
96
87
|
```
|
|
97
|
-
yarn add @bigbinary/neeto-cist @faker-js/faker @playwright/test nano-staged
|
|
88
|
+
yarn add @bigbinary/neeto-cist @faker-js/faker @playwright/test nano-staged dayjs ramda playwright-i18next-fixture
|
|
98
89
|
```
|
|
99
90
|
|
|
100
91
|
## External dependencies
|
package/configs/eslint/common.js
CHANGED
|
@@ -3,7 +3,8 @@ import js from "@eslint/js";
|
|
|
3
3
|
import tsEslint from "@typescript-eslint/eslint-plugin";
|
|
4
4
|
import tsParser from "@typescript-eslint/parser";
|
|
5
5
|
import playwrightPlugin from "eslint-plugin-playwright";
|
|
6
|
-
import
|
|
6
|
+
import importXPlugin, { createNodeResolver } from "eslint-plugin-import-x";
|
|
7
|
+
import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
|
|
7
8
|
import globals from "globals";
|
|
8
9
|
import path from "path";
|
|
9
10
|
|
|
@@ -39,7 +40,7 @@ const commonEslintConfig = ({
|
|
|
39
40
|
plugins: {
|
|
40
41
|
"@typescript-eslint": tsEslint,
|
|
41
42
|
playwright: playwrightPlugin,
|
|
42
|
-
import:
|
|
43
|
+
"import-x": importXPlugin,
|
|
43
44
|
"@bigbinary/neeto": neeto,
|
|
44
45
|
},
|
|
45
46
|
rules: {
|
|
@@ -89,7 +90,7 @@ const commonEslintConfig = ({
|
|
|
89
90
|
"error",
|
|
90
91
|
{ ignoreTopLevelDescribe: true, allowedPrefixes: ["Step"] },
|
|
91
92
|
],
|
|
92
|
-
"import/order": [
|
|
93
|
+
"import-x/order": [
|
|
93
94
|
"error",
|
|
94
95
|
{
|
|
95
96
|
"newlines-between": "always",
|
|
@@ -110,12 +111,13 @@ const commonEslintConfig = ({
|
|
|
110
111
|
...overrideRules,
|
|
111
112
|
},
|
|
112
113
|
settings: {
|
|
113
|
-
"import/resolver":
|
|
114
|
-
|
|
114
|
+
"import-x/resolver-next": [
|
|
115
|
+
createTypeScriptImportResolver({
|
|
115
116
|
alwaysTryTypes: true,
|
|
116
117
|
project: path.join(tsconfigRootDir, "tsconfig.json"),
|
|
117
|
-
},
|
|
118
|
-
|
|
118
|
+
}),
|
|
119
|
+
createNodeResolver(),
|
|
120
|
+
],
|
|
119
121
|
},
|
|
120
122
|
},
|
|
121
123
|
|
package/configs/eslint/host.js
CHANGED
|
@@ -10,7 +10,7 @@ const hostEslintConfig = ({ rules = {}, tsconfigRootDir = "", ignores }) => {
|
|
|
10
10
|
return eslintConfig({
|
|
11
11
|
tsconfigRootDir,
|
|
12
12
|
overrideRules: {
|
|
13
|
-
"import/named": "off",
|
|
13
|
+
"import-x/named": "off",
|
|
14
14
|
"react-hooks/rules-of-hooks": "off",
|
|
15
15
|
"@bigbinary/neeto/no-missing-localization": [
|
|
16
16
|
"warn",
|