Skip to content

Commit

Permalink
ah geez, bumping babel-eslint breaks no-amd/no-cjs
Browse files Browse the repository at this point in the history
also left my debug console in :-(
  • Loading branch information
Ben Mosher authored and ljharb committed Jan 15, 2019
1 parent acfb6e9 commit f165237
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
},
"homepage": "https://github.com/benmosher/eslint-plugin-import",
"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-eslint": "^8.2.6",
"babel-plugin-istanbul": "^4.1.6",
"babel-preset-es2015-argon": "latest",
"babel-register": "^6.26.0",
Expand Down
2 changes: 0 additions & 2 deletions src/rules/no-amd.js
Expand Up @@ -22,8 +22,6 @@ module.exports = {
'CallExpression': function (node) {
if (context.getScope().type !== 'module') return

console.log("got scope", context.getScope().type)

if (node.callee.type !== 'Identifier') return
if (node.callee.name !== 'require' &&
node.callee.name !== 'define') return
Expand Down

0 comments on commit f165237

Please sign in to comment.