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.

.module.scss files are being evaluated by ESLint in VS (not VSCode)

See original GitHub issue

Describe the bug Enabling the plugin causes .module.scss files to be evaluated by eslint.

To Reproduce Steps to reproduce the behavior:

  1. Enable the plugin in tsconfig
  2. Observe

Observed behavior ESLint errors are displayed for the module.scss files even though they are not js or ts files

Screenshots image

See TS errors that are happening in scss files

Desktop (please complete the following information):

  • OS: Windows 10
  • IDE: Visual Studio 2017 15.9.14

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mrmckebcommented, Dec 1, 2019

Hi @hellocontrol-bng, this doesn’t happen in VSCode… so I’m not sure why you’re seeing it.

Can you confirm your configuration for ESLint? It could be that you need to specify the file types supported (you do in VSCode - by default, it’s javascript and javascriptreact only).

0reactions
mrmckebcommented, Mar 9, 2020

I’m closing this off, but feel free to reopen in future if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.module.scss files are being evaluated by ESLint in VS (not VSCode ...
Describe the bug Enabling the plugin causes .module.scss files to be evaluated by eslint. To Reproduce Steps to reproduce the behavior: Enable the...
Read more >
VS Code ESLint extension - Visual Studio Marketplace
Extension for Visual Studio Code - Integrates ESLint JavaScript into VS Code.
Read more >
ESLint in VSCode not fixing on save - Stack Overflow
When I save I would like my ESLint to run automatically and fix all the warnings for me automatically. This is my settings.json...
Read more >
How To Lint and Format Code with ESLint in Visual Studio Code
To find the settings in Visual Studio Code, use the command palette to open Preferences: Open Workspace Settings (JSON). With this code in...
Read more >
Using SCSS files (sass etc) in NX Workspace. #1542 - GitHub
The issue: there doesn't appear to be an established best practice for working with .scss files and so on in an NX workspace....
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