ESLint errors after update to v3.26.1

Hi Everyone,

I wanted to upgrade my ember projet to the latest version and I started getting this es lint error:

➜  gis-collective git:(master) ✗ yarn run lint:js    
yarn run v1.22.10
$ eslint . --cache
AssertionError [ERR_ASSERTION]: `getSourceModuleName` should only be called on a `CallExpression`, `MemberExpression` or `Identifier`
    at getSourceModuleName (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/eslint-plugin-ember/lib/utils/import.js:45:5)
    at getSourceModuleName (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/eslint-plugin-ember/lib/utils/import.js:39:12)
    at getSourceModuleNameForIdentifier (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/eslint-plugin-ember/lib/utils/import.js:26:28)
    at ClassDeclaration[superClass] (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/eslint-plugin-ember/lib/rules/require-tagless-components.js:141:13)
    at /home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/broccoli-lint-eslint/node_modules/eslint/lib/util/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/broccoli-lint-eslint/node_modules/eslint/lib/util/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/broccoli-lint-eslint/node_modules/eslint/lib/util/node-event-generator.js:251:26)
    at NodeEventGenerator.applySelectors (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/broccoli-lint-eslint/node_modules/eslint/lib/util/node-event-generator.js:280:22)
    at NodeEventGenerator.enterNode (/home/gedaiu/workspace/gis-collective/frontend/web-frontend/node_modules/broccoli-lint-eslint/node_modules/eslint/lib/util/node-event-generator.js:294:14)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Does anyone know how to debug or fix it?

Thanks, Bogdan

It looks like the issue was related to an invalid .eslintignore once I added /dist/ to it, it started working :slight_smile: