Skip to content

Commit

Permalink
Issue #474 requirejs's require.config hits angular/module-getter rule
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed May 27, 2017
1 parent 54fd935 commit ee57435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rules/utils/false-values.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

module.exports = {
config: [/Provider$/, /$route/],
config: [/Provider$/, /$route/, 'require'],
run: [/mocha/, /Service$/]
};
1 change: 1 addition & 0 deletions test/module-getter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var commonFalsePositives = require('./utils/commonFalsePositives');
var eslintTester = new RuleTester();
eslintTester.run('module-getter', rule, {
valid: [
'require.config({});',
'angular.module("module").config(function(jwtOptionsProvider){' +
'jwtOptionsProvider.config({' +
'whiteListedDomains: []' +
Expand Down

0 comments on commit ee57435

Please sign in to comment.