You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm testing stability of well known community ESlint plugins with eslint-remote-tester. This ESLint plugin seems to contain a rule which causes linter to crash. ESlint rules should not crash in any condition since this makes all valid linting problems disappear. If this is a false flag please let me know.
Message: Cannot read property 'name' of undefined
Path: department-of-veterans-affairs/vets-website/src/platform/testing/e2e/cypress/support/form-tester/index.js Link
case'tel':
case'email':
case'number':
case'text': {cy.wrap(field.element).clear(FORCE_OPTION).type(field.data,{ ...FORCE_OPTION, ...NO_DELAY_OPTION}).then(element=>{// Get the autocomplete menu out of the way.if(element.attr('role')==='combobox')element.blur();
Error:
TypeError: Cannot read property 'name' of undefined
Occurred while linting <text>:304
at /home/runner/work/eslint-remote-tester/eslint-remote-tester/ci/node_modules/eslint-plugin-cypress/lib/rules/no-force.js:45:98
at Array.some (<anonymous>)
at /home/runner/work/eslint-remote-tester/eslint-remote-tester/ci/node_modules/eslint-plugin-cypress/lib/rules/no-force.js:45:66
at Array.some (<anonymous>)
at hasOptionForce (/home/runner/work/eslint-remote-tester/eslint-remote-tester/ci/node_modules/eslint-plugin-cypress/lib/rules/no-force.js:44:22)
at deepCheck (/home/runner/work/eslint-remote-tester/eslint-remote-tester/ci/node_modules/eslint-plugin-cypress/lib/rules/no-force.js:54:13)
at CallExpression (/home/runner/work/eslint-remote-tester/eslint-remote-tester/ci/node_modules/eslint-plugin-cypress/lib/rules/no-force.js:71:77)
at /home/runner/work/eslint-remote-tester/eslint-remote-tester/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/home/runner/work/eslint-remote-tester/eslint-remote-tester/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
The text was updated successfully, but these errors were encountered:
Hello, I'm testing stability of well known community ESlint plugins with
eslint-remote-tester
. This ESLint plugin seems to contain a rule which causes linter to crash. ESlint rules should not crash in any condition since this makes all valid linting problems disappear. If this is a false flag please let me know.CI run: https://github.com/AriPerkkio/eslint-remote-tester/actions/runs/404195602
Crashing rule:
no-force
Minimal repro:
Errors from real-world examples
Rule: no-force
Message:
Cannot read property 'name' of undefined
Path:
department-of-veterans-affairs/vets-website/src/platform/testing/e2e/cypress/support/form-tester/index.js
Link
The text was updated successfully, but these errors were encountered: