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.

eslint behaves differently on windows?

See original GitHub issue

I put eslint into our project today.

the piplines are running. now some developers on windows have complained that eslint only throws errors with them.

If you take a closer look at them, they are indeed errors that should be found like ‘no-magic-number’.

Interestingly, these are not found on mac or ubuntu(docker-image).

Is this a preference issue or is it a bug?

"eslint": "6.8.0",
"eslint-config-airbnb": "18.1.0",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-react-hooks": "2.5.1",

node:12.6.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
adrian-goecommented, Mar 30, 2020

I guess its solved with a small change Before: "lint:eslint": "eslint src/**/*.js”, After "lint:eslint": "eslint './src/**/*.js'",

0reactions
kaicataldocommented, Mar 30, 2020

Closing this issue since the question has been answered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Eslint report different results on different machines?
Running the command "eslint \"packages/**/*.{ts,tsx}\"" on my local machine (Windows) reports 1 error and 409 warnings but running the same ...
Read more >
Local Install of ESLint Breaks In-Editor Linting
Visual Studiowindows 10.0visual studio 2019 version 16.6. Pinned ... so I can't explain the fact that you're seeing different behavior using the CLI....
Read more >
Ignoring Code - ESLint - Pluggable JavaScript Linter
Ignore patterns behave according to the .gitignore specification. ... If you'd prefer to use a different file than the .eslintignore in the current...
Read more >
Linting JavaScript in Visual Studio - Microsoft Learn
In this article. Enabling linting support; Installing ESLint dependencies; Disabling linting rules and auto-fixes; Troubleshooting.
Read more >
ESLint Custom Tooling at Scale - Medium
We use ESLint to ensure high code quality and to promote coding best ... cases helps to ensure that your plugin behaves correctly...
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