question-mark
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.

keyword-spacing not working at all

See original GitHub issue

Tell us about your environment

  • **ESLint Version:4.6.1
  • **Node Version:8.4
  • **npm Version:5.4

What parser (default, Babel-ESLint, etc.) are you using? default Please show your full configuration:

Configuration
"keyword-spacing": ["error", {
            "after": false
        }],


What did you do? Please include the actual source code causing the issue.






What did you expect to happen? I wanted to enforce the rule to add a space before the curly braces (i.e function() {} instead of function(){} ) What actually happened? Please include the actual, raw output from ESLint. Nothing. Eslint is not reporting the error nor auto-fixing it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
platinumazurecommented, Sep 6, 2017

@arimourao You’re welcome! I’m going to go ahead and close this issue, but please do comment back if you need this reopened or have a related question.

By the way, you can also ask for help on our Gitter channel in future, if you like.

0reactions
arimouraocommented, Sep 6, 2017

Thanks for your time @platinumazure that was exactly what I needed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

keyword-spacing | typescript-eslint
Enforce consistent spacing before and after keywords. Some problems reported by this rule are automatically fixable by the --fix ESLint command line option....
Read more >
keyword-spacing - ESLint - Pluggable JavaScript Linter
This rule enforces consistent spacing around keywords and keyword-like tokens: as (in module declarations), async (of async functions), await (of await ...
Read more >
fixed statement unaffected by control flow keyword spacing (C#)
Uncheck "Insert space after keywords in control flow statements " under Code Formatting > C# > Spacing; Write out a fixed statement: fixed(....
Read more >
letter-spacing | CSS-Tricks
Chris' solution didn't work for me since I had a border around my text (a button) as well – so I added a...
Read more >
ESLint disabled rules are disabled in editor but keep showing ...
It all works in the editor, but when I run my app, the errors for this two rules are ... Stylistic Issues 'array-bracket-newline':...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found