@nx/playwright 0.0.0-pr-27404-9b7456c → 0.0.0-pr-27809-4160bae
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/package.json +6 -6
- package/src/utils/add-linter.js +13 -24
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/playwright",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-27809-4160bae",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"homepage": "https://nx.dev",
|
|
6
6
|
"private": false,
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
38
|
-
"@nx/devkit": "0.0.0-pr-
|
|
39
|
-
"@nx/eslint": "0.0.0-pr-
|
|
40
|
-
"@nx/webpack": "0.0.0-pr-
|
|
41
|
-
"@nx/vite": "0.0.0-pr-
|
|
42
|
-
"@nx/js": "0.0.0-pr-
|
|
38
|
+
"@nx/devkit": "0.0.0-pr-27809-4160bae",
|
|
39
|
+
"@nx/eslint": "0.0.0-pr-27809-4160bae",
|
|
40
|
+
"@nx/webpack": "0.0.0-pr-27809-4160bae",
|
|
41
|
+
"@nx/vite": "0.0.0-pr-27809-4160bae",
|
|
42
|
+
"@nx/js": "0.0.0-pr-27809-4160bae",
|
|
43
43
|
"tslib": "^2.3.0",
|
|
44
44
|
"minimatch": "9.0.3"
|
|
45
45
|
},
|
package/src/utils/add-linter.js
CHANGED
|
@@ -6,7 +6,6 @@ const eslint_1 = require("@nx/eslint");
|
|
|
6
6
|
const global_eslint_config_1 = require("@nx/eslint/src/generators/init/global-eslint-config");
|
|
7
7
|
const versions_1 = require("./versions");
|
|
8
8
|
const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
9
|
-
const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
|
|
10
9
|
async function addLinterToPlaywrightProject(tree, options) {
|
|
11
10
|
if (options.linter === eslint_1.Linter.None) {
|
|
12
11
|
return () => { };
|
|
@@ -34,30 +33,20 @@ async function addLinterToPlaywrightProject(tree, options) {
|
|
|
34
33
|
: () => { });
|
|
35
34
|
if ((0, eslint_file_1.isEslintConfigSupported)(tree, projectConfig.root) ||
|
|
36
35
|
(0, eslint_file_1.isEslintConfigSupported)(tree)) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
(0, eslint_file_1.
|
|
40
|
-
|
|
41
|
-
rules: {},
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const addExtendsTask = (0, eslint_file_1.addExtendsToLintConfig)(tree, projectConfig.root, 'plugin:playwright/recommended');
|
|
46
|
-
tasks.push(addExtendsTask);
|
|
47
|
-
if (options.rootProject) {
|
|
48
|
-
(0, eslint_file_1.addPluginsToLintConfig)(tree, projectConfig.root, '@nx');
|
|
49
|
-
(0, eslint_file_1.addOverrideToLintConfig)(tree, projectConfig.root, global_eslint_config_1.javaScriptOverride);
|
|
50
|
-
}
|
|
51
|
-
(0, eslint_file_1.addOverrideToLintConfig)(tree, projectConfig.root, {
|
|
52
|
-
files: [`${options.directory}/**/*.{ts,js,tsx,jsx}`],
|
|
53
|
-
parserOptions: !options.setParserOptionsProject
|
|
54
|
-
? undefined
|
|
55
|
-
: {
|
|
56
|
-
project: `${projectConfig.root}/tsconfig.*?.json`,
|
|
57
|
-
},
|
|
58
|
-
rules: {},
|
|
59
|
-
});
|
|
36
|
+
(0, eslint_file_1.addExtendsToLintConfig)(tree, projectConfig.root, 'plugin:playwright/recommended');
|
|
37
|
+
if (options.rootProject) {
|
|
38
|
+
(0, eslint_file_1.addPluginsToLintConfig)(tree, projectConfig.root, '@nx');
|
|
39
|
+
(0, eslint_file_1.addOverrideToLintConfig)(tree, projectConfig.root, global_eslint_config_1.javaScriptOverride);
|
|
60
40
|
}
|
|
41
|
+
(0, eslint_file_1.addOverrideToLintConfig)(tree, projectConfig.root, {
|
|
42
|
+
files: [`${options.directory}/**/*.{ts,js,tsx,jsx}`],
|
|
43
|
+
parserOptions: !options.setParserOptionsProject
|
|
44
|
+
? undefined
|
|
45
|
+
: {
|
|
46
|
+
project: `${projectConfig.root}/tsconfig.*?.json`,
|
|
47
|
+
},
|
|
48
|
+
rules: {},
|
|
49
|
+
});
|
|
61
50
|
}
|
|
62
51
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
63
52
|
}
|
package/src/utils/versions.d.ts
CHANGED
package/src/utils/versions.js
CHANGED
|
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.eslintPluginPlaywrightVersion = exports.playwrightVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
5
|
exports.playwrightVersion = '^1.36.0';
|
|
6
|
-
exports.eslintPluginPlaywrightVersion = '^
|
|
6
|
+
exports.eslintPluginPlaywrightVersion = '^0.15.3';
|