Closed bcowgill closed 8 years ago
I have seen a post saying esprima-fb is deprecated so I removed that from the jscs config and npm removed it as well, but still get the same error.
Adding this line to the top of the source code // jscs:disable disallowUnusedParams
Still causes the stack overflow, but does show other errors in the file.
Can you please test it on 3.0.1
?
ping us up if you still has this error
I have stripped the code down to the minimum to generate the error:
'use strict'; var TemplateComponent = React.createClass({
render: function() { return (
); } });
.jscsrc: { "preset": "google", "esnext": true, "esprima": "esprima-fb", "disallowUnusedParams": true }
Error running rule disallowUnusedParams: This is an issue with JSCS and not your codebase. Please file an issue (with the stack trace below) at: https://github.com/jscs-dev/node-jscs/issues/new RangeError: Maximum call stack size exceeded at Referencer.keys as __fallback at Referencer.Visitor.visitChildren (/home/test/node_modules/esrecurse/esrecurse.js:88:33) at Referencer.Visitor.visit (/home/test/node_modules/esrecurse/esrecurse.js:125:14) at Referencer.Visitor.visitChildren (/home/test/node_modules/esrecurse/esrecurse.js:106:26) at Referencer.Visitor.visit (/home/test/node_modules/esrecurse/esrecurse.js:125:14) at Referencer.Visitor.visitChildren (/home/test/node_modules/esrecurse/esrecurse.js:106:26) at Referencer.Visitor.visit (/home/test/node_modules/esrecurse/esrecurse.js:125:14) at Referencer.Visitor.visitChildren (/home/test/node_modules/esrecurse/esrecurse.js:106:26) at Referencer.Visitor.visit (/home/test/node_modules/esrecurse/esrecurse.js:125:14) at Referencer.Visitor.visitChildren (/home/test/node_modules/esrecurse/esrecurse.js:106:26) at lib/templates/unused.js : 1 |'use strict'; --------^ 2 |var TemplateComponent = React.createClass({ 3 |
1 code style error found.
Linux hostname 3.19.0-43-generic #49-Ubuntu SMP Sun Dec 27 19:43:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux