You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/dynamic-import-chunkname.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,15 @@ This rule enforces naming of webpack chunks in dynamic imports. When you don't e
11
11
This rule runs against`import()` by default, but can be configured to also run against an alternative dynamic-import function, e.g. 'dynamicImport.'
12
12
You can also configure the regex format you'd like to accept for the webpackChunkName - for example, if we don't want the number 6 to show up in our chunk names:
By default, this rule only detects cycles for ES6 imports, but see the[`no-unresolved` options](./no-unresolved.md#options) as this rule also supports the same`commonjs` and`amd` flags. However, these flags only impact which import types are_linted_; the
32
46
import/export infrastructure only registers`import` statements in dependencies, so
33
47
cycles created by`require` within imported modules may not be detected.
Copy file name to clipboardExpand all lines: docs/rules/no-duplicates.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,17 @@ The motivation is that this is likely a result of two developers importing diffe
42
42
names from the same module at different times (and potentially largely different
43
43
locations in the file.) This rule brings both (or n-many) to attention.
44
44
45
+
##Options
46
+
47
+
<!-- begin auto-generated rule options list-->
48
+
49
+
| Name| Type| Default|
50
+
| :--------------------| :------| :------|
51
+
|`considerQueryString`| Boolean|`false`|
52
+
|`prefer-inline`| Boolean|`false`|
53
+
54
+
<!-- end auto-generated rule options list-->
55
+
45
56
###Query Strings
46
57
47
58
By default, this rule ignores query strings (i.e. paths followed by a question mark), and thus imports from`./mod?a` and`./mod?b` will be considered as duplicates. However you can use the option`considerQueryString` to handle them as different (primarily because browsers will resolve those imports differently).
|`exceptions`| An array of globs. The rule will be omitted from any file that matches a globin theoptions array. For example,`"**/*/some-file.js"` will omit the rule in the`some-file.js` file.| Array|