Bug in jsx-no-target-blank eslint rule
Created by: green-arrow
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes
Which terms did you search for in User Guide?
N/A
Environment
-
node -v: 7.8.0 -
npm -v: 4.2.0 -
yarn --version(if you use Yarn): 0.27.5 -
npm ls react-scripts(if you haven’t ejected): 1.0.10
Then, specify:
- Operating system: macOS Sierra
- Browser and version (if relevant): Not relevant
Steps to Reproduce
- Insert an
atag withtarget="_blank" rel="noopener noreferrer"and some styles fromglamor - Run via
yarn start
Expected Behavior
No errors.
Actual Behavior
Unexpected error in console: TypeError: Cannot read property 'name' of undefined in the jsx-no-target-blank eslint rule.
Additional Comments
I filed a bug in the eslint repo: yannickcr/eslint-plugin-react#1296
I am unable to reproduce this with a fresh app. This started occurring after upgrading from 1.0.4 to 1.0.10. I've tried removing node_modules and yarn.lock and installing from scratch, but still get the same error.