This repository has been archived by the owner on Sep 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
require CallExpressions inside MemberExpressions trick group-imports rule #94
Labels
Comments
Similar problem here: https://github.com/liferay/liferay-js-themes-toolkit/pull/393/files#diff-5688ba5971f6c2d3bdf9cf4265442a01 diff --git a/packages/liferay-theme-tasks/tasks/build.js b/packages/liferay-theme-tasks/tasks/build.js
index 5e06621..8fa8470 100644
--- a/packages/liferay-theme-tasks/tasks/build.js
+++ b/packages/liferay-theme-tasks/tasks/build.js
@@ -8,12 +8,13 @@
const del = require('del');
const fs = require('fs-extra');
-const _ = require('lodash');
-const path = require('path');
-const plugins = require('gulp-load-plugins')();
const replace = require('gulp-replace-task');
-const through = require('through2');
+const _ = require('lodash');
+const plugins = require('gulp-load-plugins')();
+
+const path = require('path');
const PluginError = require('plugin-error');
+const through = require('through2');
const getBaseThemeDependencies = require('../lib/getBaseThemeDependencies');
const lfrThemeConfig = require('../lib/liferay_theme_config'); This time the |
I think the fix here will be two (or maybe three parts):
|
Crude fix for "1." is up at #97 Will look at "2." (and maybe "3.") later on. |
wincent
added a commit
that referenced
this issue
Sep 24, 2019
wincent
added a commit
that referenced
this issue
Sep 24, 2019
wincent
added a commit
that referenced
this issue
Sep 24, 2019
wincent
added a commit
that referenced
this issue
Sep 24, 2019
New "destructure-requires" rule to address "2." is up at: #98 |
wincent
added a commit
that referenced
this issue
Sep 24, 2019
feat: add 'destructure-requires' rule (#94)
wincent
added a commit
that referenced
this issue
Sep 24, 2019
New "no-require-and-call" rule to address "3." is up at: #99 |
wincent
added a commit
that referenced
this issue
Sep 24, 2019
feat!: add no-require-and-call rule (#94)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Just noticed this while looking at https://github.com/liferay/liferay-js-themes-toolkit/pull/393/files#diff-607f89928a61f2489713663b891f76aa
Looks like the
Gulp
require is tricking the group-imports rule into starting a new group.The text was updated successfully, but these errors were encountered: