Comments (7)
Can you please explain, what exactly problem is?
from node-jscs.
The problem is that there isn't a space before the round brace, it's a space before the curly brace, which should be allowed by that rule. I'm running into this issue as well.
from node-jscs.
IT'S BRAD! Sorry, I just couldn't contain myself 😄 Anyhow, I'm also experiencing this problem. 👍
from node-jscs.
Also just ran into this
from node-jscs.
This should be reopened.. it's the one thing preventing me from using node-jscs I think.
from node-jscs.
I've added failing unit tests for this in this fork: https://github.com/BryanDonovan/node-jscs/compare/getter-setter-parens
.. but I haven't figured out a solution yet.
from node-jscs.
I've narrowed it down a bit.
This passes:
it('should not report missing space before round brace in getters w/o space inside curly braces', function() {
checker.configure({ disallowSpacesInFunctionExpression: { beforeOpeningRoundBrace: true } });
assert(checker.checkString('var x = { get foo() {} }').isEmpty());
});
But this fails:
it('should not report missing space before round brace in getters with space inside curly braces', function() {
checker.configure({ disallowSpacesInFunctionExpression: { beforeOpeningRoundBrace: true } });
assert(checker.checkString('var x = { get foo() { } }').isEmpty());
});
The error message points to the space after the closing round brace, before the opening curly brace.
from node-jscs.
Related Issues (20)
- jscs exlucdeFiles not Work! HOT 1
- Should have exception for disallowSpacesInFunction for anonymous generators HOT 1
- not possible to include extensions with multiple "." characters HOT 7
- Error running rule requirePaddingNewLinesBeforeLineComments HOT 1
- not possible to ignore '.js' files with fileExtensions #2273
- Destructuring with default values in parameters throws an error. HOT 1
- Cannot find module 'babel-runtime/core-js/object/keys' HOT 8
- Error: Symbol is not defined (first character of file) HOT 3
- Add `templateStrings` as an option for the `allExcept` property of the `maximumLineLength` rule HOT 2
- requireSpaceBeforeDestructuredValues does not work in vanilla JS HOT 3
- maximumLineLength should optionally allow string literals to break the rule HOT 2
- validateIndentation should enforce endbrace at the same indentation as the line containing it's corresponding startbrace HOT 2
- Error running rule requireDollarBeforejQueryAssignment HOT 3
- JSCS goes into infinite loop HOT 2
- About jsx curly braces variable HOT 1
- JSCS crashes due to decorators HOT 1
- requireSpaceBetweenArguments doesn't work in constructor of es6. HOT 4
- How to write a rule which makes "case" align to "switch" in switch statement? HOT 1
- jscs.info offline HOT 3
- Disabling Specific Rules For a Single Line not working HOT 1
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 node-jscs.