{"action":"created","issue":{"url":"https://api.github.com/repos/ismay/stylelint-no-unsupported-browser-features/issues/45","repository_url":"https://api.github.com/repos/ismay/stylelint-no-unsupported-browser-features","labels_url":"https://api.github.com/repos/ismay/stylelint-no-unsupported-browser-features/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/ismay/stylelint-no-unsupported-browser-features/issues/45/comments","events_url":"https://api.github.com/repos/ismay/stylelint-no-unsupported-browser-features/issues/45/events","html_url":"https://github.com/ismay/stylelint-no-unsupported-browser-features/issues/45","id":267142283,"number":45,"title":"calc feature reported as being used for rem-calc() function","user":{"login":"certainlyakey","id":1833029,"avatar_url":"https://avatars3.githubusercontent.com/u/1833029?v=4","gravatar_id":"","url":"https://api.github.com/users/certainlyakey","html_url":"https://github.com/certainlyakey","followers_url":"https://api.github.com/users/certainlyakey/followers","following_url":"https://api.github.com/users/certainlyakey/following{/other_user}","gists_url":"https://api.github.com/users/certainlyakey/gists{/gist_id}","starred_url":"https://api.github.com/users/certainlyakey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/certainlyakey/subscriptions","organizations_url":"https://api.github.com/users/certainlyakey/orgs","repos_url":"https://api.github.com/users/certainlyakey/repos","events_url":"https://api.github.com/users/certainlyakey/events{/privacy}","received_events_url":"https://api.github.com/users/certainlyakey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-20T11:12:02Z","updated_at":"2017-10-27T13:56:33Z","closed_at":"2017-10-25T07:46:00Z","author_association":"NONE","body":"Thanks for the plugin!\r\n\r\nI'm not sure if it's a bug with stylelint-no-unsupported-browser-features or with one of the underlying packages, but when a preprocessor (SASS) function containing `calc` word in its name is used the `calc` feature is reported as being used.\r\n\r\nFor example, with `letter-spacing:rem-calc(1.8px);` this is reported: \r\n\r\n```\r\nUnexpected browser feature \"calc\" is not supported by Blackberry Browser 7, plugin/no-unsupported-browser-features Opera Mobile 12,12.1 and only partially supported by Android Browser 4.4,4.4.3-4.4.4\r\n```\r\n\r\nThe browserlist is \r\n\r\n```\r\n\"browserslist\": [\r\n    \"last 3 versions\",\r\n    \"not ie_mob > 0\",\r\n    \"not ie <= 10\",\r\n    \"not OperaMini all\"\r\n  ]\r\n```"},"comment":{"url":"https://api.github.com/repos/ismay/stylelint-no-unsupported-browser-features/issues/comments/339978576","html_url":"https://github.com/ismay/stylelint-no-unsupported-browser-features/issues/45#issuecomment-339978576","issue_url":"https://api.github.com/repos/ismay/stylelint-no-unsupported-browser-features/issues/45","id":339978576,"user":{"login":"certainlyakey","id":1833029,"avatar_url":"https://avatars3.githubusercontent.com/u/1833029?v=4","gravatar_id":"","url":"https://api.github.com/users/certainlyakey","html_url":"https://github.com/certainlyakey","followers_url":"https://api.github.com/users/certainlyakey/followers","following_url":"https://api.github.com/users/certainlyakey/following{/other_user}","gists_url":"https://api.github.com/users/certainlyakey/gists{/gist_id}","starred_url":"https://api.github.com/users/certainlyakey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/certainlyakey/subscriptions","organizations_url":"https://api.github.com/users/certainlyakey/orgs","repos_url":"https://api.github.com/users/certainlyakey/repos","events_url":"https://api.github.com/users/certainlyakey/events{/privacy}","received_events_url":"https://api.github.com/users/certainlyakey/received_events","type":"User","site_admin":false},"created_at":"2017-10-27T13:56:33Z","updated_at":"2017-10-27T13:56:33Z","author_association":"NONE","body":"OK, sure! Here's the full example:\r\n\r\n`.stylelintrc.json`:\r\n\r\n```\r\n{\r\n  \"extends\": \"stylelint-config-recommended-scss\",\r\n  \"plugins\": [\r\n    \"stylelint-no-unsupported-browser-features\"\r\n  ],\r\n  \"rules\": {\r\n    \"plugin/no-unsupported-browser-features\": true\r\n  }, \r\n  \"ignoreFiles\": [\"scss/autogenerated/**/*.scss\", \"scss/overrides/**/*.scss\"]\r\n}\r\n```\r\n\r\n`package.json`:\r\n```\r\n{\r\n  \"name\": \"...\",\r\n  \"version\": \"1.0.0\",\r\n  \"dependencies\": {\r\n    \"SassyCast\": \"github:HugoGiraudel/SassyCast\",\r\n    \"babel-preset-es2015\": \"^6.5.0\",\r\n    \"babelify\": \"^7.2.0\",\r\n    \"browserify\": \"^13.0.0\",\r\n    \"dotenv\": \"^4.0.0\",\r\n    \"focus-trap\": \"^2.3.0\",\r\n    \"gulp\": \"^3.9.1\",\r\n    \"gulp-autoprefixer\": \"^3.1.0\",\r\n    \"gulp-concat\": \"^2.6.0\",\r\n    \"gulp-cssnano\": \"^2.1.1\",\r\n    \"gulp-gettext\": \"^0.3.0\",\r\n    \"gulp-jshint\": \"^2.0.0\",\r\n    \"gulp-modernizr\": \"^1.0.0-alpha\",\r\n    \"gulp-notify\": \"^2.2.0\",\r\n    \"gulp-plumber\": \"^1.1.0\",\r\n    \"gulp-sass\": \"^3.1.0\",\r\n    \"gulp-sass-variables\": \"^1.1.0\",\r\n    \"gulp-sourcemaps\": \"^2.1.1\",\r\n    \"gulp-stylelint\": \"^5.0.0\",\r\n    \"gulp-svg-sprite\": \"^1.3.1\",\r\n    \"gulp-uglify\": \"^1.5.2\",\r\n    \"gulp-util\": \"^3.0.7\",\r\n    \"jquery\": \"^3.0.0\",\r\n    \"jshint\": \"^2.9.2\",\r\n    \"jshint-stylish\": \"^2.0.1\",\r\n    \"normalize.css\": \"^3.0.1\",\r\n    \"sass-module-importer\": \"^1.4.0\",\r\n    \"sass-mq\": \"^3.3.2\",\r\n    \"sass-rem\": \"^2.0.0\",\r\n    \"stylelint-config-recommended-scss\": \"^2.0.0\",\r\n    \"stylelint-no-px\": \"^0.12.0\",\r\n    \"stylelint-scss\": \"^2.0.0\",\r\n    \"susy\": \"^2.2.12\",\r\n    \"vinyl-buffer\": \"^1.0.0\",\r\n    \"vinyl-source-stream\": \"^1.1.0\",\r\n},\r\n  \"browserslist\": [\r\n    \"last 2 versions\",\r\n    \"not ie_mob > 0\",\r\n    \"not BlackBerry > 0\",\r\n    \"not ie <= 10\",\r\n    \"not OperaMini all\"\r\n  ]\r\n}\r\n```\r\n\r\n`_teasers.scss`\r\n```\r\n.class {\r\n  width:rem-calc(20px);\r\n}\r\n```\r\n\r\nTerminal: \r\n\r\n```\r\nscss/components/teasers/_teasers.scss\r\n 2:3  ✖  Unexpected browser feature \"calc\" is not supported by Opera Mobile 12.1 and only  plugin/no-unsupported-browser-features\r\n         partially supported by Android Browser 4.4.3-4.4.4\r\n```"}}
{"actor":{"display_login":"certainlyakey"}}