{"action":"created","issue":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/337","repository_url":"https://api.github.com/repos/benmosher/eslint-plugin-import","labels_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/337/comments","events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/337/events","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/337","id":154543780,"number":337,"title":"How to set a custom path?","user":{"login":"webdif","id":1285888,"avatar_url":"https://avatars.githubusercontent.com/u/1285888?v=3","gravatar_id":"","url":"https://api.github.com/users/webdif","html_url":"https://github.com/webdif","followers_url":"https://api.github.com/users/webdif/followers","following_url":"https://api.github.com/users/webdif/following{/other_user}","gists_url":"https://api.github.com/users/webdif/gists{/gist_id}","starred_url":"https://api.github.com/users/webdif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdif/subscriptions","organizations_url":"https://api.github.com/users/webdif/orgs","repos_url":"https://api.github.com/users/webdif/repos","events_url":"https://api.github.com/users/webdif/events{/privacy}","received_events_url":"https://api.github.com/users/webdif/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-12T17:58:16Z","updated_at":"2016-05-12T18:13:23Z","closed_at":null,"body":"I'm sorry for such a dumb question, but I just searched every where in the repo for some infos, but I did not find anything to solve my problem.\r\n\r\nIn `app/src/init.js`, I have:\r\n```es6\r\nimport menu from 'templates/menu';\r\n```\r\n\r\nIt references the file `menu.js` located at `app/templates/`. My build tool is watching the `app/` folder, so the compilation runs without error. But ESLint give me: `Unable to resolve path to module 'templates/menu'`\r\n\r\nTo inform ESLint of the `app/` folder, I tried this in my config, with no luck:\r\n```json\r\n\"settings\": {\r\n  \"import/resolvers\": {\r\n    \"paths\": [\"app/\"]\r\n  }\r\n}\r\n```\r\n\r\nThanks for your help!"},"comment":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/comments/218840442","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/337#issuecomment-218840442","issue_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/337","id":218840442,"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-05-12T18:13:23Z","updated_at":"2016-05-12T18:13:23Z","body":"I'm not too familiar with it (and would discourage it), but if I'm correct, you're missing a `node` level:\r\n\r\n(https://github.com/benmosher/eslint-plugin-import/blob/master/resolvers%2Fnode%2FREADME.md)\r\n\r\n```json\r\n\"settings\": {\r\n  \"import/resolvers\": {\r\n    \"node\": {\r\n      \"paths\": [\"app/\"]\r\n    }\r\n  }\r\n}\r\n```\r\n"}}