{"action":"created","issue":{"url":"https://api.github.com/repos/yarax/typelint/issues/2","repository_url":"https://api.github.com/repos/yarax/typelint","labels_url":"https://api.github.com/repos/yarax/typelint/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/yarax/typelint/issues/2/comments","events_url":"https://api.github.com/repos/yarax/typelint/issues/2/events","html_url":"https://github.com/yarax/typelint/issues/2","id":163948841,"number":2,"title":"Using with ES6/Babel","user":{"login":"huston007","id":4318513,"avatar_url":"https://avatars.githubusercontent.com/u/4318513?v=3","gravatar_id":"","url":"https://api.github.com/users/huston007","html_url":"https://github.com/huston007","followers_url":"https://api.github.com/users/huston007/followers","following_url":"https://api.github.com/users/huston007/following{/other_user}","gists_url":"https://api.github.com/users/huston007/gists{/gist_id}","starred_url":"https://api.github.com/users/huston007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huston007/subscriptions","organizations_url":"https://api.github.com/users/huston007/orgs","repos_url":"https://api.github.com/users/huston007/repos","events_url":"https://api.github.com/users/huston007/events{/privacy}","received_events_url":"https://api.github.com/users/huston007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-05T21:16:37Z","updated_at":"2016-07-06T08:20:13Z","closed_at":null,"body":"Hi! I've just set it up and got this issue: \r\n```bash\r\nError while loading rule 'typelint/composite': Unexpected token import\r\n/Users/***/Documents/work/***/src/app.js:1\r\n(function (exports, require, module, __filename, __dirname) { import Auth from './components/auth/auth';\r\n                                                              ^^^^^^\r\nSyntaxError: Unexpected token import\r\n    at Object.exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:513:28)\r\n    at Object.Module._extensions..js (module.js:550:10)\r\n    at Module.load (module.js:458:32)\r\n    at tryModuleLoad (module.js:417:12)\r\n    at Function.Module._load (module.js:409:3)\r\n    at Module.require (module.js:468:17)\r\n    at require (internal/module.js:20:19)\r\n    at setSchema (/Users/***/Documents/work/***/node_modules/eslint-plugin-typelint/lib/schemas/formats/json.js:24:28)\r\n    at lookUp (/Users/***/Documents/work/***/node_modules/eslint-plugin-typelint/lib/schemas/formats/json.js:36:12)\r\n```\r\n\r\nMy .eslintrc.js looks like:\r\n```javascript\r\nmodule.exports = {\r\n  'extends': [\r\n    'defaults'\r\n  ],\r\n  'parser': 'babel-eslint',\r\n  'plugins': [\r\n    'react',\r\n    'react-native',\r\n    'typelint'\r\n  ],\r\n  'rules': {\r\n    'no-unused-vars': [2, {'vars': 'local', 'args': 'none'}],\r\n    'no-console': 0,\r\n    'quotes': [2, 'single', {'allowTemplateLiterals': true}],\r\n    //ES6\r\n    'constructor-super': 2,\r\n    'arrow-spacing': 2,\r\n    'no-const-assign': 2,\r\n    'no-var': 2,\r\n    'prefer-spread': 2,\r\n    'prefer-template': 2,\r\n    'no-dupe-class-members': 2,\r\n    'no-this-before-super': 2,\r\n    //React\r\n    'react/jsx-uses-react': 2,\r\n    'react/jsx-key': 2,\r\n    'react/no-deprecated': 2,\r\n    'react/jsx-max-props-per-line': [2, {maximum: 4}],\r\n    'react/jsx-uses-vars': 2,\r\n    'react-native/no-unused-styles': 2,\r\n    'react-native/split-platform-components': 2,\r\n\r\n    'typelint/composite': 2,\r\n    // 'typelint/primitive': 2\r\n  },\r\n  'env': {\r\n    'es6': true,\r\n    'commonjs': true,\r\n    'mocha': true,\r\n    'node': true\r\n  },\r\n  'globals': {\r\n    'fetch': true,\r\n    'console': true,\r\n    'expect': true\r\n  },\r\n  'settings': {\r\n    'typelint': {\r\n      'models': {\r\n        'json': {\r\n          'dir': './src'\r\n        }\r\n      }\r\n    }\r\n  }\r\n};\r\n```\r\n\r\nAs you see, I use babel-eslint. What can I do to make it work?"},"comment":{"url":"https://api.github.com/repos/yarax/typelint/issues/comments/230708454","html_url":"https://github.com/yarax/typelint/issues/2#issuecomment-230708454","issue_url":"https://api.github.com/repos/yarax/typelint/issues/2","id":230708454,"user":{"login":"huston007","id":4318513,"avatar_url":"https://avatars.githubusercontent.com/u/4318513?v=3","gravatar_id":"","url":"https://api.github.com/users/huston007","html_url":"https://github.com/huston007","followers_url":"https://api.github.com/users/huston007/followers","following_url":"https://api.github.com/users/huston007/following{/other_user}","gists_url":"https://api.github.com/users/huston007/gists{/gist_id}","starred_url":"https://api.github.com/users/huston007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huston007/subscriptions","organizations_url":"https://api.github.com/users/huston007/orgs","repos_url":"https://api.github.com/users/huston007/repos","events_url":"https://api.github.com/users/huston007/events{/privacy}","received_events_url":"https://api.github.com/users/huston007/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T08:20:13Z","updated_at":"2016-07-06T08:20:13Z","body":"@yarax actually I didn't succeed with example: \r\nI installed the dependencies (had to create empty package.json to make npm do that). I use Node 5.7.1, NPM 3.6.0;\r\nPackage.json:\r\n```json\r\n{\r\n  \"name\": \"test_typelint\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"lint\": \"eslint .\",\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n  },\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\"\r\n}\r\n```\r\n\r\nOutput:\r\n```bash\r\n➜  test_typelint  ./node_modules/.bin/eslint .\r\n\r\n/Users/***/Documents/github/test_typelint/1.js\r\n  1:16  error  Parsing error: Unexpected token\r\n\r\n/Users/***/Documents/github/test_typelint/index.js\r\n  7:15  error  Invalid access to property wrong for type var  typelint/composite\r\n\r\n✖ 2 problems (2 errors, 0 warnings)\r\n```"}}
{"actor":{"display_login":"huston007"}}