RangeError: Maximum call stack size exceeded
Thank for you for publishing this reporter. I'm trying to use it in one of my projects, and I'm running into this issue. I have around 43 warning in my project.
My eslint related dependencies:
{
"eslint": "6.8.0",
"eslint-config-prettier": "6.9.0",
"eslint-config-recommended": "4.0.0",
"eslint-formatter-gitlab": "1.1.0",
"eslint-import-resolver-typescript": "2.0.0",
"eslint-plugin-compat": "3.5.1",
"eslint-plugin-eslint-comments": "3.1.2",
"eslint-plugin-functional": "3.0.1",
"eslint-plugin-import": "2.20.0",
"eslint-plugin-jest": "23.6.0",
"eslint-plugin-json-format": "2.0.1",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-react": "7.18.0",
"eslint-plugin-react-hooks": "2.3.0",
"eslint-plugin-react-perf": "3.2.3",
"eslint-plugin-sonarjs": "0.5.0",
"eslint-plugin-tsdoc": "0.2.1",
"eslint-plugin-unicorn": "15.0.1"
}
$ eslint 'src/**/*.{js,jsx,ts,tsx}' --format gitlab
RangeError: Maximum call stack size exceeded
at JSON.stringify (<anonymous>)
at stringify (/Users/trao/project/node_modules/jsonfile/index.js:86:18)
at Object.writeFileSync (/Users/trao/project/node_modules/jsonfile/index.js:115:13)
at Object.outputJsonSync (/Users/trao/project/node_modules/fs-extra/lib/json/output-json-sync.js:15:12)
at module.exports (/Users/trao/project/node_modules/eslint-formatter-gitlab/index.js:73:8)
at module.exports (/Users/trao/project/node_modules/eslint-formatter-gitlab/index.js:77:50)
at module.exports (/Users/trao/project/node_modules/eslint-formatter-gitlab/index.js:77:50)
at module.exports (/Users/trao/project/node_modules/eslint-formatter-gitlab/index.js:77:50)
at module.exports (/Users/trao/project/node_modules/eslint-formatter-gitlab/index.js:77:50)
at module.exports (/Users/trao/project/node_modules/eslint-formatter-gitlab/index.js:77:50)
error Command failed with exit code 2.
I does produce an accurate code quality json file with 43 errors, but sadly I cannot use it in CI since the formatter produces exit code 2 and my CI job fails when it shouldn't.
Edited by Thilak Rao