{"action":"closed","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/1985","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/1985/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/1985/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/1985/events","html_url":"https://github.com/stylelint/stylelint/issues/1985","id":182930487,"number":1985,"title":"Path resolution issue with .stylelintrc and Gulp","user":{"login":"ryanheathers","id":992088,"avatar_url":"https://avatars.githubusercontent.com/u/992088?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanheathers","html_url":"https://github.com/ryanheathers","followers_url":"https://api.github.com/users/ryanheathers/followers","following_url":"https://api.github.com/users/ryanheathers/following{/other_user}","gists_url":"https://api.github.com/users/ryanheathers/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanheathers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanheathers/subscriptions","organizations_url":"https://api.github.com/users/ryanheathers/orgs","repos_url":"https://api.github.com/users/ryanheathers/repos","events_url":"https://api.github.com/users/ryanheathers/events{/privacy}","received_events_url":"https://api.github.com/users/ryanheathers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/status:%20wip","name":"status: wip","color":"009800"},{"url":"https://api.github.com/repos/stylelint/stylelint/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T23:37:20Z","updated_at":"2016-10-16T17:02:51Z","closed_at":"2016-10-16T17:02:51Z","body":"<!-- Please answer the following questions. Issues that don't use this template will be closed. -->\r\n\r\nI'm running into an issue where Stylelint is unable to locate the `.stylelintrc` file. I'm running Stylelint as a PostCSS plugin through Gulp.\r\n\r\nTo repro, I'm using the following folder tree:\r\n```\r\n- utilities\r\n  - .stylelintrc\r\n  - gulpfile.js\r\n  - node_modules\r\n  - package.json\r\n- test\r\n  - test.scss\r\n```\r\n\r\nI want to run my `/utilities` gulpfile while I am within my `/test` directory. To do that, I use gulp's `--gulpfile` config option. So for example, my CLI command looks like `gulp util:style:lint --gulpfile ../utilities/gulpfile.js`\r\n\r\nUsing the `--gulpfile` option in this way changes Node's current working directory to the gulpfile's location while the gulpfile is running i.e. using `process.cwd()` will return the `/utilities` folder. \r\n\r\nThis setup works great for all the rest of my gulp tasks. However, stylelint reports `Error: No configuration provided for /test/test.scss`. As a sanity check, I tried moving `.stylelintrc` into the `/test` folder and that change allows the task to complete without error. It only complains when the `.stylelintrc` is in a different directory.\r\n\r\nStylelint's docs mention that it [resolves the location of .stylelintrc](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md) from the **current working directory**. As I mentioned, during the gulp process the Node current working directory **is** the same directory that the `.stylelintrc` is located in. However this doesn't appear to be providing what Stylelint needs.\r\n\r\nCan someone shed light on how Stylelint resolves the location of its config file? Or put another way, is there a way to tell Stylelint where to find the config file specifically? Thanks for any insights!\r\n\r\nI'm using version `7.4.2` of Stylelint."}}
{"actor":{"display_login":"davidtheclark"}}