Skip to content

Commit 5b21994

Browse files
committed
Allow use of devDependencies in gulpfile.js
Packages based on this template are expected to only use gulpfile for building before publishing, not during install. So it is not required for installation. Signed-off-by: Kevin Locke <[email protected]>
1 parent 897ea39 commit 5b21994

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.eslintrc.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,14 @@ rules:
101101
arrow-parens: [2, "always"]
102102

103103
# eslint-plugin-import
104-
## Allow requiring devDependencies in test, test-bin, and test-lib
105-
import/no-extraneous-dependencies: [2, {"devDependencies": ["test/**", "test-bin/**", "test-lib/**"]}]
104+
## Allow requiring devDependencies for build and test
105+
import/no-extraneous-dependencies: [2, {
106+
"devDependencies": [
107+
"gulpfile.js",
108+
"test-bin/**",
109+
"test-lib/**",
110+
"test/**"
111+
]
112+
}]
106113

107114
# vi: set sts=2 sw=2 et ft=yaml:

0 commit comments

Comments
 (0)