{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/issues/5","repository_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo","labels_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/issues/5/comments","events_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/issues/5/events","html_url":"https://github.com/sindresorhus/eslint-plugin-xo/issues/5","id":148729482,"number":5,"title":"`filename-case` rule","user":{"login":"jfmengels","id":3869412,"avatar_url":"https://avatars.githubusercontent.com/u/3869412?v=3","gravatar_id":"","url":"https://api.github.com/users/jfmengels","html_url":"https://github.com/jfmengels","followers_url":"https://api.github.com/users/jfmengels/followers","following_url":"https://api.github.com/users/jfmengels/following{/other_user}","gists_url":"https://api.github.com/users/jfmengels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfmengels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfmengels/subscriptions","organizations_url":"https://api.github.com/users/jfmengels/orgs","repos_url":"https://api.github.com/users/jfmengels/repos","events_url":"https://api.github.com/users/jfmengels/events{/privacy}","received_events_url":"https://api.github.com/users/jfmengels/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-15T18:14:34Z","updated_at":"2016-04-15T21:41:50Z","closed_at":null,"body":"# Enforce a case style for file names\r\n\r\nEnforces all linted files to have their names in a certain case style.\r\n\r\n- `camelCase`: `fooBar.js` (default)\r\n- `snakeCase`: `foo_bar.js`\r\n- `kebabCase`: `foo-bar.js`\r\n\r\n## Options\r\n\r\nYou can set the option in configuration like this:\r\n\r\n```js\r\n\"stuff/filename-case\": [\"error\", {\"case\": \"camelCase\"}]\r\n```\r\n\r\nI have just written it, thinking I would put it in a new random stuff plugin, but if you guys are interested in putting this in XO, I don't mind adding it here (I'm starting to have way too many plugins in my dev folder anyway...).\r\n\r\nI'm thinking of adding an option to check the folder names up to the package.json too.\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/issues/comments/210658316","html_url":"https://github.com/sindresorhus/eslint-plugin-xo/issues/5#issuecomment-210658316","issue_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-xo/issues/5","id":210658316,"user":{"login":"jfmengels","id":3869412,"avatar_url":"https://avatars.githubusercontent.com/u/3869412?v=3","gravatar_id":"","url":"https://api.github.com/users/jfmengels","html_url":"https://github.com/jfmengels","followers_url":"https://api.github.com/users/jfmengels/followers","following_url":"https://api.github.com/users/jfmengels/following{/other_user}","gists_url":"https://api.github.com/users/jfmengels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfmengels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfmengels/subscriptions","organizations_url":"https://api.github.com/users/jfmengels/orgs","repos_url":"https://api.github.com/users/jfmengels/repos","events_url":"https://api.github.com/users/jfmengels/events{/privacy}","received_events_url":"https://api.github.com/users/jfmengels/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T21:41:50Z","updated_at":"2016-04-15T21:41:50Z","body":"Ah yeah, forgot about OSX's case insensitivity... Ok, that makes good sense. I'll try to make a PR tomorrow."}}