Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token ... #258

Open
shouryamittal opened this issue Mar 9, 2021 · 3 comments
Open

SyntaxError: Unexpected token ... #258

shouryamittal opened this issue Mar 9, 2021 · 3 comments

Comments

@shouryamittal
Copy link

shouryamittal commented Mar 9, 2021

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
Copy link

doamatto commented Mar 9, 2021

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:/doamatto/gulp-eslint

Cheers!

  • Matt

@shouryamittal
Copy link
Author

shouryamittal commented Mar 25, 2021 via email

@doamatto
Copy link

doamatto commented May 2, 2021

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants