{"action":"closed","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/866","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/866/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/866/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/866/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/866","id":53140484,"number":866,"title":"'requireDotNotation' vs 'requireCamelCaseOrUpperCaseIdentifiers'","user":{"login":"necolas","id":239676,"avatar_url":"https://avatars.githubusercontent.com/u/239676?v=3","gravatar_id":"","url":"https://api.github.com/users/necolas","html_url":"https://github.com/necolas","followers_url":"https://api.github.com/users/necolas/followers","following_url":"https://api.github.com/users/necolas/following{/other_user}","gists_url":"https://api.github.com/users/necolas/gists{/gist_id}","starred_url":"https://api.github.com/users/necolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necolas/subscriptions","organizations_url":"https://api.github.com/users/necolas/orgs","repos_url":"https://api.github.com/users/necolas/repos","events_url":"https://api.github.com/users/necolas/events{/privacy}","received_events_url":"https://api.github.com/users/necolas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-30T19:33:50Z","updated_at":"2015-01-04T23:20:15Z","closed_at":"2015-01-04T23:20:15Z","body":"The docs for `requireDotNotation` describe it as requiring dot notation \"when possible\". When you are using an external library with method names that violate a local `requireCamelCaseOrUpperCaseIdentifiers` setting, it might be nice to be able to use `lib['snake_method']` and not trigger a `requireDotNotation` error, rather than having to disable style checks.\r\n\r\n```js\r\nvar lib = require('lib');\r\n\r\n// triggers requireCamelCaseOrUpperCaseIdentifiers error\r\nlib.snake_method()\r\n// triggers requireDotNotation error\r\nlib['snake_method']\r\n\r\n// only way out is to disable style checking in the file or on the relevant lines\r\n```\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/7395590-requiredotnotation-vs-requirecamelcaseoruppercaseidentifiers?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}