Skip to content

Commit

Permalink
Rename .eslintrc to .eslintrc.yml;
Browse files Browse the repository at this point in the history
Change the rule used when testing plugin configuration, as "strict" is ignored by eslint@2.0.0-beta.2 in this test case;
  • Loading branch information
adametry committed Jan 24, 2016
1 parent e7ba0f2 commit 5851668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions test/linting.js
Expand Up @@ -16,7 +16,7 @@ describe('gulp-eslint plugin', function() {
eslint({
parser: 'babel-eslint',
useEslintrc: false,
rules: {strict: [2, 'global']}
rules: {'arrow-parens': 2}
})
.on('error', done)
.on('data', function(file) {
Expand All @@ -31,13 +31,13 @@ describe('gulp-eslint plugin', function() {

file.eslint.messages[0]
.should.have.properties('message', 'line', 'column')
.and.have.property('ruleId', 'strict');
.and.have.property('ruleId', 'arrow-parens');

done();
})
.end(new File({
path: 'test/fixtures/es6.js',
contents: new Buffer('(() => {\n\treturn (a) => `${a}b`; }());')
contents: new Buffer('(a=>`${a}b`)("a");')
}));
});

Expand Down

0 comments on commit 5851668

Please sign in to comment.