@nx/playwright 19.1.0-canary.20240515-a2a7d7e → 19.1.0-canary.20240516-d581cef
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/src/utils/add-linter.js +2 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/playwright",
|
3
|
-
"version": "19.1.0-canary.
|
3
|
+
"version": "19.1.0-canary.20240516-d581cef",
|
4
4
|
"type": "commonjs",
|
5
5
|
"homepage": "https://nx.dev",
|
6
6
|
"private": false,
|
@@ -33,9 +33,9 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
36
|
-
"@nx/devkit": "19.1.0-canary.
|
37
|
-
"@nx/eslint": "19.1.0-canary.
|
38
|
-
"@nx/js": "19.1.0-canary.
|
36
|
+
"@nx/devkit": "19.1.0-canary.20240516-d581cef",
|
37
|
+
"@nx/eslint": "19.1.0-canary.20240516-d581cef",
|
38
|
+
"@nx/js": "19.1.0-canary.20240516-d581cef",
|
39
39
|
"tslib": "^2.3.0",
|
40
40
|
"minimatch": "9.0.3"
|
41
41
|
},
|
package/src/utils/add-linter.js
CHANGED
@@ -31,7 +31,8 @@ async function addLinterToPlaywrightProject(tree, options) {
|
|
31
31
|
tasks.push(!options.skipPackageJson
|
32
32
|
? (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { 'eslint-plugin-playwright': versions_1.eslintPluginPlaywrightVersion })
|
33
33
|
: () => { });
|
34
|
-
if ((0, eslint_file_1.isEslintConfigSupported)(tree)
|
34
|
+
if ((0, eslint_file_1.isEslintConfigSupported)(tree, projectConfig.root) ||
|
35
|
+
(0, eslint_file_1.isEslintConfigSupported)(tree)) {
|
35
36
|
(0, eslint_file_1.addExtendsToLintConfig)(tree, projectConfig.root, 'plugin:playwright/recommended');
|
36
37
|
if (options.rootProject) {
|
37
38
|
(0, eslint_file_1.addPluginsToLintConfig)(tree, projectConfig.root, '@nx');
|