From 8373c5c62337b77827d76b3628c87e9237c94210 Mon Sep 17 00:00:00 2001 From: rakeshkumar1019 Date: Mon, 31 Jul 2023 11:19:09 +0530 Subject: [PATCH] WEBUI-1227: lint issue 30x --- packages/nuxeo-designer-catalog/gulpfile.js | 4 ++-- packages/nuxeo-designer-catalog/src/elements.js | 2 +- packages/nuxeo-designer-catalog/src/utils/analyze.js | 2 +- .../features/step_definitions/support/screenshots.js | 3 +-- packages/nuxeo-web-ui-ftest/scripts/test.js | 2 +- packages/nuxeo-web-ui-ftest/wdio.conf.js | 2 +- scripts/merge-messages.js | 4 ++-- 7 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/nuxeo-designer-catalog/gulpfile.js b/packages/nuxeo-designer-catalog/gulpfile.js index 4b5af485d0..388dff8e91 100755 --- a/packages/nuxeo-designer-catalog/gulpfile.js +++ b/packages/nuxeo-designer-catalog/gulpfile.js @@ -17,14 +17,14 @@ limitations under the License. */ // Include Gulp & tools we'll use +const path = require('path'); +const { spawn } = require('child_process'); const gulp = require('gulp'); const gutil = require('gulp-util'); const git = require('gulp-git'); const del = require('del'); -const { spawn } = require('child_process'); const runSequence = require('gulp4-run-sequence'); const merge = require('merge-stream'); -const path = require('path'); const bower = require('gulp-bower'); const fs = require('fs-extra'); const stream = require('./src/utils/stream').obj; diff --git a/packages/nuxeo-designer-catalog/src/elements.js b/packages/nuxeo-designer-catalog/src/elements.js index ff7d79d355..c0dc3effb2 100644 --- a/packages/nuxeo-designer-catalog/src/elements.js +++ b/packages/nuxeo-designer-catalog/src/elements.js @@ -15,9 +15,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +const path = require('path'); const fs = require('fs-extra'); const gutil = require('gulp-util'); -const path = require('path'); const _ = require('lodash'); const async = require('async'); diff --git a/packages/nuxeo-designer-catalog/src/utils/analyze.js b/packages/nuxeo-designer-catalog/src/utils/analyze.js index 20bb170fef..1c483ffcc3 100644 --- a/packages/nuxeo-designer-catalog/src/utils/analyze.js +++ b/packages/nuxeo-designer-catalog/src/utils/analyze.js @@ -15,9 +15,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +const path = require('path'); const _ = require('lodash'); const fs = require('fs-extra'); -const path = require('path'); const { Analyzer, FsUrlLoader, PackageUrlResolver, generateAnalysis, Analysis } = require('polymer-analyzer'); module.exports = (pkg, sourcePaths, libraries, pkgManagement, callback) => { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js index d4dfce9eed..a62901ec65 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js @@ -1,7 +1,6 @@ -import { After, Status } from '@cucumber/cucumber'; - import * as path from 'path'; import * as mkdirp from 'mkdirp'; +import { After, Status } from '@cucumber/cucumber'; After(function(scenario) { const { status } = scenario.result; diff --git a/packages/nuxeo-web-ui-ftest/scripts/test.js b/packages/nuxeo-web-ui-ftest/scripts/test.js index 9153c784bb..b1a536aa79 100755 --- a/packages/nuxeo-web-ui-ftest/scripts/test.js +++ b/packages/nuxeo-web-ui-ftest/scripts/test.js @@ -29,8 +29,8 @@ const fs = require('fs'); const path = require('path'); const { spawn } = require('child_process'); -const chromeLauncher = require('chrome-launcher'); const { execSync } = require('child_process'); +const chromeLauncher = require('chrome-launcher'); const fetch = require('node-fetch'); const wdioBin = require.resolve('@wdio/cli/bin/wdio'); diff --git a/packages/nuxeo-web-ui-ftest/wdio.conf.js b/packages/nuxeo-web-ui-ftest/wdio.conf.js index a035751144..2ab805c665 100644 --- a/packages/nuxeo-web-ui-ftest/wdio.conf.js +++ b/packages/nuxeo-web-ui-ftest/wdio.conf.js @@ -1,5 +1,5 @@ -const chai = require('chai'); const path = require('path'); +const chai = require('chai'); const htmlReporter = require('multiple-cucumber-html-reporter'); const CompatService = require('./wdio-compat-plugin'); diff --git a/scripts/merge-messages.js b/scripts/merge-messages.js index 4647d3724e..f8157349f1 100644 --- a/scripts/merge-messages.js +++ b/scripts/merge-messages.js @@ -1,6 +1,6 @@ -const glob = require('glob'); -const { mkdirSync, existsSync, writeFileSync } = require('fs'); const path = require('path'); +const { mkdirSync, existsSync, writeFileSync } = require('fs'); +const glob = require('glob'); const DEST = '.tmp/i18n'; const CWD = process.cwd();