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

RangeError: Maximum call stack size exceeded #1334

Closed
jfoclpf opened this issue Jul 17, 2019 · 3 comments

Comments

@jfoclpf
Copy link

commented Jul 17, 2019

What version of standard?
13.0.2

What operating system, Node.js, and npm version?

npm --version 
6.10.1

node --version 
v9.4.0

What did you expect to happen?

check for errors

I'm running local bin

node_modules/.bin/standard "src/**/*.js"

or global

standard "src/**/*.js"

What actually happened?

node_modules/.bin/standard "src/**/*.js"
standard: Unexpected linter output:

RangeError: Maximum call stack size exceeded
Occurred while linting /home/jfolpf/autocosts/src/client/pdf/CN/vfs_fonts.js:2
    at RegExp.[Symbol.match] (<anonymous>)
    at String.match (native)
    at Literal (/home/jfolpf/autocosts/node_modules/eslint/lib/rules/no-octal-escape.js:35:40)
    at listeners.(anonymous function).forEach.listener (/home/jfolpf/autocosts/node_modules/eslint/lib/linter/safe-emitter.js:45:58)
    at Array.forEach (<anonymous>)
    at Object.emit (/home/jfolpf/autocosts/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/jfolpf/autocosts/node_modules/eslint/lib/linter/node-event-generator.js:253:26)
    at NodeEventGenerator.applySelectors (/home/jfolpf/autocosts/node_modules/eslint/lib/linter/node-event-generator.js:282:22)
    at NodeEventGenerator.enterNode (/home/jfolpf/autocosts/node_modules/eslint/lib/linter/node-event-generator.js:296:14)
    at CodePathAnalyzer.enterNode (/home/jfolpf/autocosts/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:645:23)

But when running the equivalent eslint,

node_modules/.bin/eslint -c test/.eslintrc.json "src/**/*.js"

it does work

It seems it is giving an error on some fonts file. Is there a way to ignore files in CLI?

@jfoclpf

This comment has been minimized.

Copy link
Author

commented Jul 17, 2019

Found the issue
https://standardjs.com/#how-do-i-ignore-files

You may close this thread!

PS: nonetheless you may consider this as a bug, since eslint CLI is not throwing an error whilst standard CLI is.

@feross

This comment has been minimized.

Copy link
Member

commented Jul 29, 2019

Interesting. Are you sure that you're using the same version of eslint in both cases?

@feross feross closed this Jul 29, 2019

@jfoclpf

This comment has been minimized.

Copy link
Author

commented Jul 29, 2019

I'm using on both cases the latest versions available on npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.