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
It would be nice to include this as a test step. A quick script:
varCLIEngine=require("eslint").CLIEngine;varcli=newCLIEngine({envs: ["browser","mocha"],// ??? just copied it. not sure what this does.useEslintrc: false,ignore: false,parserOptions: {ecmaVersion: 5}});varreport=cli.executeOnFiles(["dist/plotly.js"]);varformatter=cli.getFormatter();console.log(formatter(report.results));if(report.errorCount>0){process.exit(1);}
Running this on 1.25.1 gives:
$ node es5only.js
/Users/rreusser/plotly/plotly.js/dist/plotly.js
7:1 error Parsing error: The keyword 'const' is reserved
✖ 1 problem (1 error, 0 warnings)
Remaining tasks:
find the right place for it (tasks?)
fix the ignore details. Right now it uses eslintignore which excludes everything we want to include. We either need to grab the directory listing and filter out /\.min\.js$ manually or figure out the right incantation. Should be simple.
The text was updated successfully, but these errors were encountered:
It would be nice to include this as a test step. A quick script:
Running this on 1.25.1 gives:
Remaining tasks:
/\.min\.js$
manually or figure out the right incantation. Should be simple.The text was updated successfully, but these errors were encountered: