Skip to content

Commit

Permalink
Add back no-restricted-modules and no-restricted-imports ESLint rules (
Browse files Browse the repository at this point in the history
…#12446)

They were removed in #6945 inadvertently.
  • Loading branch information
nosolosw authored Mar 23, 2017
1 parent af79ae3 commit ea68492
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ module.exports = {
},
rules: {
camelcase: 0, // REST API objects include underscores
'no-unused-expressions': 0, // Allows Chai `expect` expressions
'max-len': [ 2, { code: 140 } ],
'no-restricted-imports': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ],
'no-restricted-modules': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ],
'no-unused-expressions': 0, // Allows Chai `expect` expressions
}
};

0 comments on commit ea68492

Please sign in to comment.