Closed idahogurl closed 5 years ago
Indeed, I'd expect that to be set. What's the output of npx eslint --print-config path/to/some/JS/file
?
"react": { "pragma": "React", "version": "16.0" },
this should definitely be working; I'll look into it.
I've added some more tests to master, that pass. I'm going to assume this is fixed on master but not yet released; I'll reopen if it's still a problem after publishing the next release.
I am using the airbnb configuration and "settings" => "react" => "version" is set to 16 in their configuration file.
Packages "eslint": "^5.12.0", "eslint-config-airbnb": "^17.1.0", "eslint-plugin-import": "^2.14.0", "eslint-plugin-jsx-a11y": "^6.1.2", "eslint-plugin-react": "^7.12.3",
.eslintrc Configuration
Expected: Warning should not show
Actual: Warning remains