Comments (2)
Thanks for reporting. Mind supplying a code sample please?
On Jun 17, 2015 8:56 AM, "Andrey Okonetchnikov" [email protected]
wrote:
disallowSpacesInFunctionDeclaration: Error running rule disallowSpacesInFunctionDeclaration: 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
TypeError: Cannot read property 'range' of null
at Object.JsFile.getFirstNodeToken (/Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/js-file.js:207:46)
at /Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/rules/disallow-spaces-in-function-declaration.js:80:42
at Array.forEach (native)
at Object.JsFile.iterateNodesByType (/Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/js-file.js:426:42)
at Object.module.exports.check (/Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/rules/disallow-spaces-in-function-declaration.js:77:14)
at null. (/Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/string-checker.js:141:22)
at Array.forEach (native)
at StringChecker._checkJsFile (/Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/string-checker.js:137:31)
at StringChecker.checkString (/Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/string-checker.js:117:14)
at null. (/Users/okonet/Projects/adverity/web-app/node_modules/jscs/lib/checker.js:43:21)—
Reply to this email directly or view it on GitHub
#5.
from babel-jscs.
I've tried to reproduce it on a small example and could not. I'll check it on my codebase, but seems this one is invalid, so I'm closing it for now.
from babel-jscs.
Related Issues (20)
- validateQuoteMarks HOT 8
- Getting "Warning: Unknown node type Super" error after upgrading to 2.0.0 HOT 10
- JSX and validateQuoteMarks issue HOT 10
- disallowSpaceAfterObjectKeys rule is breaking babel stage 1 code HOT 11
- Speed
- Issue with nested conditional ternary operator HOT 7
- Pre-release v2.0.0 is marked as latest in npm HOT 2
- Unknown node type ExportDefaultDeclaration HOT 2
- Tests don't pass, babel-jscs released a breaking change with 5.7.0 HOT 5
- Add JSCS tests HOT 4
- `disallowSpaceAfterObjectKeys` evaluating functions as objects in 2.0.x HOT 3
- requireSpacesInFunctionExpression breaks object literal methods HOT 3
- Jsdoc and destructuring HOT 2
- error after updating to babel@6 HOT 26
- Side-effect unescaping HTML from auto-fix HOT 1
- Few questions HOT 5
- Shorthand methods don't cooperate with space checks HOT 8
- parseError: undefined on function declaraion HOT 2
- requireSpacesInFunctionExpression issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-jscs.