{"action":"opened","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1874","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1874/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1874/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1874/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/1874","id":337751249,"node_id":"MDU6SXNzdWUzMzc3NTEyNDk=","number":1874,"title":"button-has-type mistakenly says \"null\" in its error message","user":{"login":"lydell","id":2142817,"node_id":"MDQ6VXNlcjIxNDI4MTc=","avatar_url":"https://avatars3.githubusercontent.com/u/2142817?v=4","gravatar_id":"","url":"https://api.github.com/users/lydell","html_url":"https://github.com/lydell","followers_url":"https://api.github.com/users/lydell/followers","following_url":"https://api.github.com/users/lydell/following{/other_user}","gists_url":"https://api.github.com/users/lydell/gists{/gist_id}","starred_url":"https://api.github.com/users/lydell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lydell/subscriptions","organizations_url":"https://api.github.com/users/lydell/orgs","repos_url":"https://api.github.com/users/lydell/repos","events_url":"https://api.github.com/users/lydell/events{/privacy}","received_events_url":"https://api.github.com/users/lydell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-03T05:32:48Z","updated_at":"2018-07-03T05:32:48Z","closed_at":null,"author_association":"NONE","body":"Extracted from https://github.com/yannickcr/eslint-plugin-react/issues/1555#issuecomment-362262866\r\n\r\n```js\r\n// index.js\r\n<button type={foo}>test</button>\r\n```\r\n\r\n```\r\n$ eslint index.js \r\n\r\n/home/lydell/stuff/eslint/index.js\r\n  1:1  error  \"null\" is an invalid value for button type attribute  react/button-has-type\r\n\r\n✖ 1 problem (1 error, 0 warnings)\r\n```\r\n\r\n```js\r\n// .eslintrc.js\r\nmodule.exports = {\r\n  parserOptions: {\r\n    ecmaVersion: 2018,\r\n    ecmaFeatures: {\r\n      jsx: true\r\n    }\r\n  },\r\n  plugins: [\"react\"],\r\n  rules: {\r\n    \"react/button-has-type\": \"error\"\r\n  }\r\n}\r\n```\r\n\r\n```\r\n// package.json\r\n{\r\n  \"private\": true,\r\n  \"dependencies\": {\r\n    \"eslint\": \"5.0.1\",\r\n    \"eslint-plugin-react\": \"7.10.0\"\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"lydell"}}