mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: update eslint rule (#1027)
This commit is contained in:
1 parent
05c3b8f2bd
commit
cee3c00ddb
150 files changed
+1069
-1043
No files matched your search
@@ -21,7 +21,7 @@ const start = new Date();
|
||||
|
||||
function buildSequence(pages, type) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (['before', 'after'].indexOf(type) === -1) {
|
||||
if (!['before', 'after'].includes(type)) {
|
||||
throw new Error("'type' should be one of 'before' or 'after'");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user