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.

Add fixer for strict

See original GitHub issue

It may get tricky for some cases, but based on the config, it could be easy to apply a fix to insert 'use strict' to solve a problem. I would be happy to send a PR for this if you’d accept it.

I’m using eslint@3.0.1 and Node v4.2.1.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
platinumazurecommented, Jul 14, 2016

Done automatically. On Jul 14, 2016 10:00 AM, “Nick Heiner” notifications@github.com wrote:

I like those fixes.

the 2nd iteration of the fixing will modify the inserted line ending.

Is this done automatically? Or do you mean that the user will manually run eslint with the fixer enabled multiple times?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eslint/eslint/issues/6668#issuecomment-232691287, or mute the thread https://github.com/notifications/unsubscribe/AARWerkY6bfx3HDKokpLaox9ZiO0tWY6ks5qVk8JgaJpZM4JLroV .

0reactions
albertocommented, Jul 19, 2016

@NickHeiner it’s accepted now. Go for it! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

strict rule does not insert use strict with --fix flag #8665 - GitHub
The fixer for strict only removes redundant use strict statements. It intentionally doesn't do anything that would make strict mode code non- ...
Read more >
Rule declare_strict_types - PHP Coding Standards Fixer
Force strict types declaration in all files. Requires PHP >= 7.0. Warning¶. Using this rule is risky¶. Forcing strict types will stop non...
Read more >
How to Change Xbox One NAT to OPEN and FIX Strict ...
From strict, moderate or double? ... How to Change Xbox One NAT to OPEN and FIX Strict Connection Issues! (Easy Method).
Read more >
The Ultimate Guide on How to Fix Strict NAT Type - Connectify
Learn how to fix strict NAT type so you can enjoy playing online on your Xbox, PlayStation or Nintendo game console without any...
Read more >
PHP-CS-Fixer Configurator
Force strict types declaration in all files. Requires PHP >= 7.0. ... Add curly braces to indirect variables to make them clear to...
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