Permalink
Browse files

ESLint: Add rules for restricting usage of sites-list and data-observe (

#9502)

I'm just using no-restricted-(imports|modules) at the moment. The error
message isn't great. Perhaps this is Good Enough™ for now.
  • Loading branch information...
1 parent af7e593 commit fdf2dce61db162659b9204af21ca30b5cfa8f865 @ehg ehg committed on GitHub Nov 18, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 .eslintrc.js
View
@@ -33,6 +33,8 @@ module.exports = {
'no-extra-semi': 1,
'no-multiple-empty-lines': [ 1, { max: 1 } ],
'no-multi-spaces': 1,
+ 'no-restricted-imports': [ 1, 'lib/sites-list', 'lib/mixins/data-observe' ],
+ 'no-restricted-modules': [ 1, 'lib/sites-list', 'lib/mixins/data-observe' ],
'no-shadow': 1,
'no-spaced-func': 1,
'no-trailing-spaces': 1,

0 comments on commit fdf2dce

Please sign in to comment.