Git Product home page Git Product logo

Comments (5)

glen-84 avatar glen-84 commented on August 20, 2024

Hi Ian,

Please provide some additional information, such as:

  • OS
  • VS Code version
  • Node.js version
  • sass-lint version
  • sass-lint installed locally or globally
  • Location of .sass-lint.yml file within your project/workspace (at the root or deeper?)
  • Location of sass/scss file that is showing the wrong messages (relative to the config file)
  • etc.

Thanks.

from vscode-sass-lint.

IanOvenden avatar IanOvenden commented on August 20, 2024

Sorry, I should have provided more info initially - I just wondered if I'd missed something simple. Details below:

OS: Windows 7 Enterprise
VS Code version: 1.4.0
Node.js version: 0.12.7
sass-lint version: 1.8.2
sass-lint installed locally or globally: GLOBALLY
Location of .sass-lint.yml file within your project/workspace (at the root or deeper?): DEEPER - "\grunt\config.sass-lint.yml"
Location of sass/scss file that is showing the wrong messages (relative to the config file) : ....\src\core\scss\widgets\my-sass-file.scss

Thanks for your help.

Ian

from vscode-sass-lint.

glen-84 avatar glen-84 commented on August 20, 2024

I assume it's \grunt\config\.sass-lint.yml?

In order for that to be picked up, it would need to be in a parent folder of the Sass file (which it isn't).

You should be able to use the sasslint.configFile option, something like:

"sasslint.configFile": "C:/path/to/grunt/config/.sass-lint.yml"

I'm not sure if relative paths work, and if they do, what they're relative to, but you can try that as well.

You may need to make a change to your Sass file to trigger a re-run of the linter with updated config (this used to work without that, but I think that this might have changed with the introduction of tabs).

from vscode-sass-lint.

IanOvenden avatar IanOvenden commented on August 20, 2024

Ahhh, my bad - in our build process we are actually using scss-lint. The .sass-lint.yml file is configured for that and not sass-lint. Apologies for wasting your time.

from vscode-sass-lint.

glen-84 avatar glen-84 commented on August 20, 2024

No worries. =)

from vscode-sass-lint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.