Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No multi spaces for object properties

See original GitHub issue

Hello there,

how can i let eslint allow this?:

constructor(config) {
    this._rawData = null;
    this._config  = extend({}, this.getDefaultConfig(), config);

I already have VariableDeclarator set to true in my eslintrc but this._config = gives me the “no-multi-spaces” error.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

jonataswalkercommented, Sep 8, 2016

Docs about no-multi-spaces don’t mention this exception — AssignmentExpression — but yes, it works.

ilyavolodincommented, Jan 25, 2016

Can you try:

eslint no-multi-spaces: [2, { exceptions: { "AssignmentExpression": true } }]
Read more comments on GitHub >

github_iconTop Results From Across the Web

no-multi-spaces - ESLint - Pluggable JavaScript Linter
This rule aims to disallow multiple whitespace around logical expressions, conditional expressions, declarations, array elements, object properties, sequences ...
Read more >
ESLint no-multi-spaces allow within object declaration
How do I configure the no-multi-spaces rule to allow the following: var arr = [ {id: 'abc', content: 'foo'}, {id: 'cdefgh', content: 'bar'}...
Read more >
Rule no-multi-spaces - ESLint中文
To support this case, this rule accepts an options object with a property named exceptions . Excepted node types can be added as...
Read more >
Can JavaScript Object Keys Have Spaces? | by Dr. Derek Austin
Here's the lowdown on object properties with spaces. “Lost Angeles”: Valid JS object key? Or not? (Photo by JOSHUA ...
Read more >
Troubleshoot an object that is not syncing with Azure Active ...
Connector space object properties. If the Operations tab shows no errors, follow the connector space object from Active Directory to the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found