adametry / gulp-eslint

A Gulp plugin for identifying and reporting on patterns found in ECMAScript/JavaScript code.
MIT License
563 stars 118 forks source link

SyntaxError: Unexpected token ... #258

Open shouryamittal opened 3 years ago

shouryamittal commented 3 years ago

Hi, I'm using gulp-eslint 6.0.0, with the following other tools: node: 10.15.3 npm: 6.4.1 gulp-cli: 2.2.0

Upon execution, I'm getting the following error:

...calculateStatsPerFile(messages) ^^^ SyntaxError: Unexpected token ... at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28)

Following is my eslintrc file:

{ "env": { "node": true, "es6": true }, "parserOptions": { "ecmaVersion":2020, "ecmaFeatures": { "jsx": true } }, "settings": { "react": { "createClass": "createClass", "pragma": "React", "version": "detect" } }, //this config extends the eslint recommended and react presets. "extends":["eslint:recommended", "plugin:react/recommended"], //rules to be applied by eslint while validating the code. "rules": { "curly": "error", //enforce consistent brace style for all control statements "no-undef": "error", //disallow the use of undeclared variables unless mentioned in/global /comments "no-unused-vars": "error", "no-trailing-spaces": "error", "semi": "error", //semicolons a must to end a statement "no-const-assign": "error", "eqeqeq": "error", //require the use of===and!== "no-extra-boolean-cast":"off" } }

Any help is appreciated, Thanks.

doamatto commented 3 years ago

Can you try using the latest version of my fork to see if that fixes your problem? I don't believe this repo is being maintained anymore, but I'll try to fix your issue on that repo if it persists

Repo: https://github.com/doamatto/gulp-eslint

Cheers!

shouryamittal commented 3 years ago

Hi Matt,

Even after using https://github.com/doamatto/gulp-eslint, the errors persist. Can you pls look into this?

Thanks, Shourya

On Wed, Mar 10, 2021 at 12:20 AM Matt Ronchetto @.***> wrote:

Can you try using the latest version of my fork to see if that fixes your problem? I don't believe this repo is being maintained anymore, but I'll try to fix your issue on that repo if it persists

Repo: https://github.com/doamatto/gulp-eslint

Cheers!

  • Matt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adametry/gulp-eslint/issues/258#issuecomment-794299202, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFH2J5GUHGDR6WSFXBQAOTTCZNVZANCNFSM4Y2ZE4ZA .

doamatto commented 3 years ago

Sorry for taking so long to respond. I've made an issue in my repository (doamatto/gulp-eslint#65) that I'm going to use to solve this. Please read the updates there :)