You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is more a support issue, as I'm guessing I'm doing something wrong. I have an eslint rc file which runs happily using eslint, but seems to cause issue when combined with Plato. If I use a yml file I get...
$ plato -d report/ --eslint .eslintrc.yml lib/**
undefined:1
rules:
^
SyntaxError: Unexpected token r
at Object.parse (native)
at Object.exports.exec(...\node_modules\plato\lib\cli.js:49:21)
at Object.<anonymous>(...\node_modules\plato\bin\plato:19:5)
If I try a JavaScript version of the config file I get a similar parsing error.
I'm hoping this is a PEBCAK issue! :)
The text was updated successfully, but these errors were encountered:
The way Plato loads the configuration file is wrong.
ESLint usually does some stuff before using the actual config.
For example, extends:'eslint:recommended' doesn't seem to work the way it is now.
I've been able to make it work because i doesn't use plato from cli, but from a gulp task, and i must load the configuration file myself (and i found a good way of doing it).
It think this you enable plato to load any kind of config file, and let ESLint do its work before using the config.
var CLIEngine = require('eslint').CLIEngine;
var config = new CLIEngine().getConfigForFile(yourFile);
I think this is more a support issue, as I'm guessing I'm doing something wrong. I have an eslint rc file which runs happily using eslint, but seems to cause issue when combined with Plato. If I use a yml file I get...
If I try a JavaScript version of the config file I get a similar parsing error.
I'm hoping this is a PEBCAK issue! :)
The text was updated successfully, but these errors were encountered: