@bigbinary/neeto-playwright-commons 3.3.4 → 3.3.5

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 CHANGED
@@ -55,6 +55,15 @@ 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
+
58
67
  ### `dayjs`
59
68
 
60
69
  Dayjs is a JavaScript library that parses, validates, manipulates, and displays
@@ -85,7 +94,7 @@ yarn add playwright-i18next-fixture
85
94
  We can install all the above peer dependencies by running a single command.
86
95
 
87
96
  ```
88
- yarn add @bigbinary/neeto-cist @faker-js/faker @playwright/test nano-staged dayjs ramda playwright-i18next-fixture
97
+ yarn add @bigbinary/neeto-cist @faker-js/faker @playwright/test nano-staged dotenv-webpack dayjs ramda playwright-i18next-fixture
89
98
  ```
90
99
 
91
100
  ## External dependencies
@@ -3,8 +3,7 @@ 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 importXPlugin, { createNodeResolver } from "eslint-plugin-import-x";
7
- import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
6
+ import importPlugin from "eslint-plugin-import";
8
7
  import globals from "globals";
9
8
  import path from "path";
10
9
 
@@ -40,7 +39,7 @@ const commonEslintConfig = ({
40
39
  plugins: {
41
40
  "@typescript-eslint": tsEslint,
42
41
  playwright: playwrightPlugin,
43
- "import-x": importXPlugin,
42
+ import: importPlugin,
44
43
  "@bigbinary/neeto": neeto,
45
44
  },
46
45
  rules: {
@@ -90,7 +89,7 @@ const commonEslintConfig = ({
90
89
  "error",
91
90
  { ignoreTopLevelDescribe: true, allowedPrefixes: ["Step"] },
92
91
  ],
93
- "import-x/order": [
92
+ "import/order": [
94
93
  "error",
95
94
  {
96
95
  "newlines-between": "always",
@@ -111,13 +110,12 @@ const commonEslintConfig = ({
111
110
  ...overrideRules,
112
111
  },
113
112
  settings: {
114
- "import-x/resolver-next": [
115
- createTypeScriptImportResolver({
113
+ "import/resolver": {
114
+ typescript: {
116
115
  alwaysTryTypes: true,
117
116
  project: path.join(tsconfigRootDir, "tsconfig.json"),
118
- }),
119
- createNodeResolver(),
120
- ],
117
+ },
118
+ },
121
119
  },
122
120
  },
123
121
 
@@ -10,7 +10,7 @@ const hostEslintConfig = ({ rules = {}, tsconfigRootDir = "", ignores }) => {
10
10
  return eslintConfig({
11
11
  tsconfigRootDir,
12
12
  overrideRules: {
13
- "import-x/named": "off",
13
+ "import/named": "off",
14
14
  "react-hooks/rules-of-hooks": "off",
15
15
  "@bigbinary/neeto/no-missing-localization": [
16
16
  "warn",