Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7005475

Browse files
committed
[WIP] ESLint hotfix
1 parent 35433fe commit 7005475

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/gulpfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ gulp.task('doc-gen', ['bower'], function() {
122122
// Lint the example and protractor test files
123123
gulp.task('eslint', ['doc-gen'], function() {
124124
var examplesConfig = getMergedEslintConfig('../docs/app/test/.eslintrc.json');
125+
// While in source we don't want to assume the browser environment so that we're
126+
// compatible with non-browser window implementations like jsdom, it's not necessary
127+
// in examples and may look weird to casual readers.
128+
examplesConfig.envs = ['browser'];
125129

126130
var protractorConfig = getMergedEslintConfig('../docs/app/e2e/.eslintrc.json');
127131
protractorConfig.rules['no-unused-vars'] = ['error', {

0 commit comments

Comments
 (0)