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.

auto fix does not auto fix require

See original GitHub issue

image

image

config:

'import/order': [
  'error',
  {
    'newlines-between': 'never',
    alphabetize: {
      order: 'asc',
      caseInsensitive: true
    }
  }
]

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ljharbcommented, Mar 10, 2021

The first one should indeed warn, but it’s up to the user to use eslint override comments if it’s intentional. The second should indeed be autofixable.

0reactions
aprilmintacpinedacommented, Mar 10, 2021

Yeah, that sounds about right…

Read more comments on GitHub >

github_iconTop Results From Across the Web

auto fix does not auto fix require · Issue #2001 · import-js/eslint ...
I think import would do this: const z = require('z'); sideEffect ...
Read more >
eslint-plugin-no-autofix - npm
Start using eslint-plugin-no-autofix in your project by running `npm i eslint-plugin-no-autofix`. There are 14 other projects in the npm ...
Read more >
`Tslint --fix` does not autofix but instead generates lint ...
and I'm trying to get tslint to autofix all my lint problems with the --fix flag. I'm running the script: npm run tslint...
Read more >
ESLint | WebStorm Documentation - JetBrains
ESLint can fix the detected problems every time your changes are saved either manually, with Ctrl+S , or automatically, when you launch a...
Read more >
Align your content quickly and easily with Auto Fix
When elements overlap, Auto Fix can't infer how to align them. When there are no overlaps, Auto Fix can better determine how you...
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