From 4724db63699dcc16aa2b123de87e786456e8ba12 Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Wed, 16 Nov 2022 00:08:20 +0200 Subject: [PATCH] test(eslint): Fix .project.eslintrc.js --- .project.eslintrc.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.project.eslintrc.js b/.project.eslintrc.js index cfefd89..765070f 100644 --- a/.project.eslintrc.js +++ b/.project.eslintrc.js @@ -1,7 +1,9 @@ const fs = require('fs'); const path = require('path'); -const projectRootPath = fs.realpathSync('./project'); // __dirname +const projectRootPath = fs.existsSync('./project') + ? fs.realpathSync('./project') + : fs.realpathSync('./../../../'); const packageJson = require(path.join(projectRootPath, 'package.json')); const jsConfig = require(path.join(projectRootPath, 'jsconfig.json')).compilerOptions; diff --git a/package.json b/package.json index caa2eac..dc33f43 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "react-color": "~2.18.1" }, "devDependencies": { - "@plone/scripts": "*", "@cypress/code-coverage": "^3.10.0", + "@plone/scripts": "*", "babel-plugin-transform-class-properties": "^6.24.1", "md5": "^2.3.0" },