{"action":"created","comment":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/comments/59368196","id":59368196,"diff_hunk":"@@ -0,0 +1,42 @@\n+import {\n+  cssWordIsVariable,\n+  report,\n+  ruleMessages,\n+  validateOptions,\n+} from \"../../utils\"\n+\n+export const ruleName = \"property-case\"\n+\n+export const messages = ruleMessages(ruleName, {\n+  expected: (actual, expected) => `Expected \"${actual}\" to be \"${expected}\"`,\n+})\n+\n+export default function (expectation) {\n+  return (root, result) => {\n+    const validOptions = validateOptions(result, ruleName, {\n+      actual: expectation,\n+      possible: [\n+        \"lower\",\n+        \"upper\",\n+      ],\n+    })\n+    if (!validOptions) { return }\n+\n+    root.walkDecls(decl => {\n+      const prop = decl.prop\n+      // Ignore sass interpolation and css variables\n+      if (/#{.+}/.test(decl.toString()) || cssWordIsVariable(prop)) { return }","path":"src/rules/property-case/index.js","position":28,"original_position":28,"commit_id":"cea64fbd5be2e8de37cc7fdff787ee3915389d65","original_commit_id":"cea64fbd5be2e8de37cc7fdff787ee3915389d65","user":{"login":"jeddy3","id":808227,"avatar_url":"https://avatars.githubusercontent.com/u/808227?v=3","gravatar_id":"","url":"https://api.github.com/users/jeddy3","html_url":"https://github.com/jeddy3","followers_url":"https://api.github.com/users/jeddy3/followers","following_url":"https://api.github.com/users/jeddy3/following{/other_user}","gists_url":"https://api.github.com/users/jeddy3/gists{/gist_id}","starred_url":"https://api.github.com/users/jeddy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeddy3/subscriptions","organizations_url":"https://api.github.com/users/jeddy3/orgs","repos_url":"https://api.github.com/users/jeddy3/repos","events_url":"https://api.github.com/users/jeddy3/events{/privacy}","received_events_url":"https://api.github.com/users/jeddy3/received_events","type":"User","site_admin":false},"body":"Perhaps a good time to move the sass interpolation into a utility as we're using it in quite a few places. Perhaps `containsInterpolation(string)`?","created_at":"2016-04-12T12:42:34Z","updated_at":"2016-04-12T12:42:34Z","html_url":"https://github.com/stylelint/stylelint/pull/1050#discussion_r59368196","pull_request_url":"https://api.github.com/repos/stylelint/stylelint/pulls/1050","_links":{"self":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/comments/59368196"},"html":{"href":"https://github.com/stylelint/stylelint/pull/1050#discussion_r59368196"},"pull_request":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/1050"}}},"pull_request":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/1050","id":66148249,"html_url":"https://github.com/stylelint/stylelint/pull/1050","diff_url":"https://github.com/stylelint/stylelint/pull/1050.diff","patch_url":"https://github.com/stylelint/stylelint/pull/1050.patch","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/1050","number":1050,"state":"open","locked":false,"title":"`property-case` rule","user":{"login":"evilebottnawi","id":4567934,"avatar_url":"https://avatars.githubusercontent.com/u/4567934?v=3","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T12:25:40Z","updated_at":"2016-04-12T12:42:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbe7f5aa03f4f85481b6657dc1888ac646a83b7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stylelint/stylelint/pulls/1050/commits","review_comments_url":"https://api.github.com/repos/stylelint/stylelint/pulls/1050/comments","review_comment_url":"https://api.github.com/repos/stylelint/stylelint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/1050/comments","statuses_url":"https://api.github.com/repos/stylelint/stylelint/statuses/cea64fbd5be2e8de37cc7fdff787ee3915389d65","head":{"label":"evilebottnawi:property-case","ref":"property-case","sha":"cea64fbd5be2e8de37cc7fdff787ee3915389d65","user":{"login":"evilebottnawi","id":4567934,"avatar_url":"https://avatars.githubusercontent.com/u/4567934?v=3","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"repo":{"id":47185602,"name":"stylelint","full_name":"evilebottnawi/stylelint","owner":{"login":"evilebottnawi","id":4567934,"avatar_url":"https://avatars.githubusercontent.com/u/4567934?v=3","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evilebottnawi/stylelint","description":"Modern CSS linter.","fork":true,"url":"https://api.github.com/repos/evilebottnawi/stylelint","forks_url":"https://api.github.com/repos/evilebottnawi/stylelint/forks","keys_url":"https://api.github.com/repos/evilebottnawi/stylelint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evilebottnawi/stylelint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evilebottnawi/stylelint/teams","hooks_url":"https://api.github.com/repos/evilebottnawi/stylelint/hooks","issue_events_url":"https://api.github.com/repos/evilebottnawi/stylelint/issues/events{/number}","events_url":"https://api.github.com/repos/evilebottnawi/stylelint/events","assignees_url":"https://api.github.com/repos/evilebottnawi/stylelint/assignees{/user}","branches_url":"https://api.github.com/repos/evilebottnawi/stylelint/branches{/branch}","tags_url":"https://api.github.com/repos/evilebottnawi/stylelint/tags","blobs_url":"https://api.github.com/repos/evilebottnawi/stylelint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evilebottnawi/stylelint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evilebottnawi/stylelint/git/refs{/sha}","trees_url":"https://api.github.com/repos/evilebottnawi/stylelint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evilebottnawi/stylelint/statuses/{sha}","languages_url":"https://api.github.com/repos/evilebottnawi/stylelint/languages","stargazers_url":"https://api.github.com/repos/evilebottnawi/stylelint/stargazers","contributors_url":"https://api.github.com/repos/evilebottnawi/stylelint/contributors","subscribers_url":"https://api.github.com/repos/evilebottnawi/stylelint/subscribers","subscription_url":"https://api.github.com/repos/evilebottnawi/stylelint/subscription","commits_url":"https://api.github.com/repos/evilebottnawi/stylelint/commits{/sha}","git_commits_url":"https://api.github.com/repos/evilebottnawi/stylelint/git/commits{/sha}","comments_url":"https://api.github.com/repos/evilebottnawi/stylelint/comments{/number}","issue_comment_url":"https://api.github.com/repos/evilebottnawi/stylelint/issues/comments{/number}","contents_url":"https://api.github.com/repos/evilebottnawi/stylelint/contents/{+path}","compare_url":"https://api.github.com/repos/evilebottnawi/stylelint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evilebottnawi/stylelint/merges","archive_url":"https://api.github.com/repos/evilebottnawi/stylelint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evilebottnawi/stylelint/downloads","issues_url":"https://api.github.com/repos/evilebottnawi/stylelint/issues{/number}","pulls_url":"https://api.github.com/repos/evilebottnawi/stylelint/pulls{/number}","milestones_url":"https://api.github.com/repos/evilebottnawi/stylelint/milestones{/number}","notifications_url":"https://api.github.com/repos/evilebottnawi/stylelint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evilebottnawi/stylelint/labels{/name}","releases_url":"https://api.github.com/repos/evilebottnawi/stylelint/releases{/id}","deployments_url":"https://api.github.com/repos/evilebottnawi/stylelint/deployments","created_at":"2015-12-01T11:39:26Z","updated_at":"2016-03-17T14:44:28Z","pushed_at":"2016-04-12T12:30:42Z","git_url":"git://github.com/evilebottnawi/stylelint.git","ssh_url":"git@github.com:evilebottnawi/stylelint.git","clone_url":"https://github.com/evilebottnawi/stylelint.git","svn_url":"https://github.com/evilebottnawi/stylelint","homepage":"http://stylelint.io/","size":2991,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stylelint:master","ref":"master","sha":"dcbb65c6e0d1d8dbc76532f6a7fe896174f0bb4a","user":{"login":"stylelint","id":10076935,"avatar_url":"https://avatars.githubusercontent.com/u/10076935?v=3","gravatar_id":"","url":"https://api.github.com/users/stylelint","html_url":"https://github.com/stylelint","followers_url":"https://api.github.com/users/stylelint/followers","following_url":"https://api.github.com/users/stylelint/following{/other_user}","gists_url":"https://api.github.com/users/stylelint/gists{/gist_id}","starred_url":"https://api.github.com/users/stylelint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylelint/subscriptions","organizations_url":"https://api.github.com/users/stylelint/orgs","repos_url":"https://api.github.com/users/stylelint/repos","events_url":"https://api.github.com/users/stylelint/events{/privacy}","received_events_url":"https://api.github.com/users/stylelint/received_events","type":"Organization","site_admin":false},"repo":{"id":27549019,"name":"stylelint","full_name":"stylelint/stylelint","owner":{"login":"stylelint","id":10076935,"avatar_url":"https://avatars.githubusercontent.com/u/10076935?v=3","gravatar_id":"","url":"https://api.github.com/users/stylelint","html_url":"https://github.com/stylelint","followers_url":"https://api.github.com/users/stylelint/followers","following_url":"https://api.github.com/users/stylelint/following{/other_user}","gists_url":"https://api.github.com/users/stylelint/gists{/gist_id}","starred_url":"https://api.github.com/users/stylelint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylelint/subscriptions","organizations_url":"https://api.github.com/users/stylelint/orgs","repos_url":"https://api.github.com/users/stylelint/repos","events_url":"https://api.github.com/users/stylelint/events{/privacy}","received_events_url":"https://api.github.com/users/stylelint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stylelint/stylelint","description":"A mighty, modern CSS linter","fork":false,"url":"https://api.github.com/repos/stylelint/stylelint","forks_url":"https://api.github.com/repos/stylelint/stylelint/forks","keys_url":"https://api.github.com/repos/stylelint/stylelint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stylelint/stylelint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stylelint/stylelint/teams","hooks_url":"https://api.github.com/repos/stylelint/stylelint/hooks","issue_events_url":"https://api.github.com/repos/stylelint/stylelint/issues/events{/number}","events_url":"https://api.github.com/repos/stylelint/stylelint/events","assignees_url":"https://api.github.com/repos/stylelint/stylelint/assignees{/user}","branches_url":"https://api.github.com/repos/stylelint/stylelint/branches{/branch}","tags_url":"https://api.github.com/repos/stylelint/stylelint/tags","blobs_url":"https://api.github.com/repos/stylelint/stylelint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stylelint/stylelint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stylelint/stylelint/git/refs{/sha}","trees_url":"https://api.github.com/repos/stylelint/stylelint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stylelint/stylelint/statuses/{sha}","languages_url":"https://api.github.com/repos/stylelint/stylelint/languages","stargazers_url":"https://api.github.com/repos/stylelint/stylelint/stargazers","contributors_url":"https://api.github.com/repos/stylelint/stylelint/contributors","subscribers_url":"https://api.github.com/repos/stylelint/stylelint/subscribers","subscription_url":"https://api.github.com/repos/stylelint/stylelint/subscription","commits_url":"https://api.github.com/repos/stylelint/stylelint/commits{/sha}","git_commits_url":"https://api.github.com/repos/stylelint/stylelint/git/commits{/sha}","comments_url":"https://api.github.com/repos/stylelint/stylelint/comments{/number}","issue_comment_url":"https://api.github.com/repos/stylelint/stylelint/issues/comments{/number}","contents_url":"https://api.github.com/repos/stylelint/stylelint/contents/{+path}","compare_url":"https://api.github.com/repos/stylelint/stylelint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stylelint/stylelint/merges","archive_url":"https://api.github.com/repos/stylelint/stylelint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stylelint/stylelint/downloads","issues_url":"https://api.github.com/repos/stylelint/stylelint/issues{/number}","pulls_url":"https://api.github.com/repos/stylelint/stylelint/pulls{/number}","milestones_url":"https://api.github.com/repos/stylelint/stylelint/milestones{/number}","notifications_url":"https://api.github.com/repos/stylelint/stylelint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stylelint/stylelint/labels{/name}","releases_url":"https://api.github.com/repos/stylelint/stylelint/releases{/id}","deployments_url":"https://api.github.com/repos/stylelint/stylelint/deployments","created_at":"2014-12-04T16:25:23Z","updated_at":"2016-04-12T12:23:25Z","pushed_at":"2016-04-12T12:30:42Z","git_url":"git://github.com/stylelint/stylelint.git","ssh_url":"git@github.com:stylelint/stylelint.git","clone_url":"https://github.com/stylelint/stylelint.git","svn_url":"https://github.com/stylelint/stylelint","homepage":"http://stylelint.io/","size":3166,"stargazers_count":1011,"watchers_count":1011,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":43,"forks":61,"open_issues":43,"watchers":1011,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/1050"},"html":{"href":"https://github.com/stylelint/stylelint/pull/1050"},"issue":{"href":"https://api.github.com/repos/stylelint/stylelint/issues/1050"},"comments":{"href":"https://api.github.com/repos/stylelint/stylelint/issues/1050/comments"},"review_comments":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/1050/comments"},"review_comment":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/1050/commits"},"statuses":{"href":"https://api.github.com/repos/stylelint/stylelint/statuses/cea64fbd5be2e8de37cc7fdff787ee3915389d65"}}}}