{"action":"created","issue":{"url":"https://api.github.com/repos/feross/standard/issues/138","labels_url":"https://api.github.com/repos/feross/standard/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/feross/standard/issues/138/comments","events_url":"https://api.github.com/repos/feross/standard/issues/138/events","html_url":"https://github.com/feross/standard/issues/138","id":75830090,"number":138,"title":"Problems with JSX support","user":{"login":"staygrimm","id":3835556,"avatar_url":"https://avatars.githubusercontent.com/u/3835556?v=3","gravatar_id":"","url":"https://api.github.com/users/staygrimm","html_url":"https://github.com/staygrimm","followers_url":"https://api.github.com/users/staygrimm/followers","following_url":"https://api.github.com/users/staygrimm/following{/other_user}","gists_url":"https://api.github.com/users/staygrimm/gists{/gist_id}","starred_url":"https://api.github.com/users/staygrimm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staygrimm/subscriptions","organizations_url":"https://api.github.com/users/staygrimm/orgs","repos_url":"https://api.github.com/users/staygrimm/repos","events_url":"https://api.github.com/users/staygrimm/events{/privacy}","received_events_url":"https://api.github.com/users/staygrimm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/feross/standard/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-13T03:36:49Z","updated_at":"2015-05-14T06:12:31Z","closed_at":null,"body":"I've recently started playing with [segmentio/deku](https://segmentio/deku), an alternative to React, and I'm also using Babel to transpile my js and jsx code.\r\n\r\nThe first issue that I ran into was that `eslint` expects to see React imported whenever it sees JSX.  In my `.babelrc` I have already configured Deku's `element` function as the jsx pragma to use versus react, however `standard` has no way to know that and in order to get my files to properly lint I have to annoyingly include `/** @jsx element */` at the top of my files.\r\n\r\nThe second issue is that React's JSX uses `className` to denote the class property on an element, whereas Deku uses `class`.  Therefor JSX written for Deku will always error when linted by `standard`.\r\n\r\nIt makes me wonder what would happen if yet another popular framework were to be released that used a JSX-like syntax that wasn't exactly like React's JSX.\r\n\r\nIf there are any possible workarounds I would be happy to try them."},"comment":{"url":"https://api.github.com/repos/feross/standard/issues/comments/101931989","html_url":"https://github.com/feross/standard/issues/138#issuecomment-101931989","issue_url":"https://api.github.com/repos/feross/standard/issues/138","id":101931989,"user":{"login":"parro-it","id":11197111,"avatar_url":"https://avatars.githubusercontent.com/u/11197111?v=3","gravatar_id":"","url":"https://api.github.com/users/parro-it","html_url":"https://github.com/parro-it","followers_url":"https://api.github.com/users/parro-it/followers","following_url":"https://api.github.com/users/parro-it/following{/other_user}","gists_url":"https://api.github.com/users/parro-it/gists{/gist_id}","starred_url":"https://api.github.com/users/parro-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parro-it/subscriptions","organizations_url":"https://api.github.com/users/parro-it/orgs","repos_url":"https://api.github.com/users/parro-it/repos","events_url":"https://api.github.com/users/parro-it/events{/privacy}","received_events_url":"https://api.github.com/users/parro-it/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T06:12:31Z","updated_at":"2015-05-14T06:12:31Z","body":"Yesterday I start playing with deku, and I came to the same issue.\r\nThe quick and dirty solution I found is to manually edit these rules file from `eslint-plugin-react` module replacing react stuff with deku:\r\n\r\n* no-unknown-property.js\r\n* jsx-uses-react.js\r\n* react-in-jsx-scope.js\r\n\r\nNow (at least for the deku features I've used so far) deku JSX is linted correctly.\r\nIt would be super easy to place these file in a separate `eslint-plugin-deku` but standard should allow us to customize the rules set to use.\r\n\r\nI understood why you don't like rule configuration files, but this is a different use case.\r\n\r\n"}}