{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/269","repository_url":"https://api.github.com/repos/AtomLinter/linter-stylelint","labels_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/269/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/269/events","html_url":"https://github.com/AtomLinter/linter-stylelint/issues/269","id":177681491,"number":269,"title":"EvalError – 'unsafe-eval' again","user":{"login":"Pustur","id":13663338,"avatar_url":"https://avatars.githubusercontent.com/u/13663338?v=3","gravatar_id":"","url":"https://api.github.com/users/Pustur","html_url":"https://github.com/Pustur","followers_url":"https://api.github.com/users/Pustur/followers","following_url":"https://api.github.com/users/Pustur/following{/other_user}","gists_url":"https://api.github.com/users/Pustur/gists{/gist_id}","starred_url":"https://api.github.com/users/Pustur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pustur/subscriptions","organizations_url":"https://api.github.com/users/Pustur/orgs","repos_url":"https://api.github.com/users/Pustur/repos","events_url":"https://api.github.com/users/Pustur/events{/privacy}","received_events_url":"https://api.github.com/users/Pustur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AtomLinter/linter-stylelint/labels/External","name":"External","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-18T22:25:29Z","updated_at":"2016-09-20T19:40:12Z","closed_at":"2016-09-19T20:32:12Z","body":"I've seen this error already mentioned a few times (#90 and #116) but it was apparently resolved.\r\nHaving said this, I still have this problem.\r\n\r\nEven just starting to type anything in my `css` files will trigger these errors.\r\n\r\n**Atom:** 1.10.2\r\n**linter-stylelint:** 3.2.1\r\n**Contents of `.stylelintrc` file:**\r\n```\r\n{\r\n  \"extends\": \"stylelint-config-standard\"\r\n}\r\n```\r\n**Stack trace:**\r\n```\r\nEvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: \"script-src 'self'\".\r\n    at Ajv.localCompile (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/compile/index.js:130:26)\r\n    at Ajv.resolve (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/compile/resolve.js:53:19)\r\n    at Object.resolveRef (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/compile/index.js:195:21)\r\n    at Object.generate_ref [as code] (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/dotjs/ref.js:22:22)\r\n    at Object.generate_validate [as validate] (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/dotjs/validate.js:157:37)\r\n    at Object.generate_properties [as code] (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/dotjs/properties.js:198:26)\r\n    at generate_validate (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/dotjs/validate.js:230:37)\r\n    at localCompile (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/compile/index.js:91:22)\r\n    at Ajv.compile (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/compile/index.js:59:13)\r\n    at _compile (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/ajv.js:325:29)\r\n    at getSchema (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/ajv.js:189:51)\r\n    at validate (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/ajv.js:88:11)\r\n    at validateSchema (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/ajv.js:159:19)\r\n    at _addSchema (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/ajv.js:285:7)\r\n    at Ajv.compile (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/ajv.js:110:21)\r\n    at Ajv.addKeyword (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv/lib/keyword.js:46:40)\r\n    at defFunc (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv-keywords/keywords/typeof.js:37:7)\r\n    at defineKeywords (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/ajv-keywords/index.js:20:17)\r\n    at Object.<anonymous> (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/table/dist/validateConfig.js:29:27)\r\n    at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)\r\n    at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Module.require (module.js:367:17)\r\n    at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)\r\n    at Object.<anonymous> (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/table/dist/makeConfig.js:15:23)\r\n    at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)\r\n    at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Module.require (module.js:367:17)\r\n    at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)\r\n    at Object.<anonymous> (/Users/lorisbettazza/.atom/packages/linter-stylelint/node_modules/table/dist/table.js:15:19)\r\n    at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)\r\n    at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)\r\n    at Module.load (module.js:357:32)\r\n```\r\n\r\nLinting from the command line via `npm test` works fine.\r\nAny clue?\r\n\r\nThanks in advance ❤️"},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/comments/248410548","html_url":"https://github.com/AtomLinter/linter-stylelint/issues/269#issuecomment-248410548","issue_url":"https://api.github.com/repos/AtomLinter/linter-stylelint/issues/269","id":248410548,"user":{"login":"adammockor","id":1824790,"avatar_url":"https://avatars.githubusercontent.com/u/1824790?v=3","gravatar_id":"","url":"https://api.github.com/users/adammockor","html_url":"https://github.com/adammockor","followers_url":"https://api.github.com/users/adammockor/followers","following_url":"https://api.github.com/users/adammockor/following{/other_user}","gists_url":"https://api.github.com/users/adammockor/gists{/gist_id}","starred_url":"https://api.github.com/users/adammockor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammockor/subscriptions","organizations_url":"https://api.github.com/users/adammockor/orgs","repos_url":"https://api.github.com/users/adammockor/repos","events_url":"https://api.github.com/users/adammockor/events{/privacy}","received_events_url":"https://api.github.com/users/adammockor/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T19:40:12Z","updated_at":"2016-09-20T19:40:12Z","body":"So on further investigation, error is still thrown when I you use `stylelint-scss` plugin. It's because plugin uses stylelint directly as it's dependency, so it brings `table@3.8.0` and runs it in context of atom.\r\n\r\nIf I remove this plugin from local dependencies, no error is shown and your atom plugin works as it should."}}
{"actor":{"display_login":"adammockor"}}