Comments (5)
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.
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.
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.
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.
No worries. =)
from vscode-sass-lint.
Related Issues (20)
- [scss] ( expected when interpolation is used HOT 2
- Cant get it to run HOT 9
- Global config file HOT 1
- Error message when using CSS variables HOT 1
- Extension not working HOT 2
- :not(:first-child()) causes an error HOT 1
- sass-lint server causes 100% cpu load HOT 3
- JSON .sasslintrc config file support ? HOT 3
- [Feature-Request] update linting on config rule change without vscode reload HOT 5
- sass-lint not running HOT 1
- Formatting grid-template to single line
- Linting doesn't work in VSCode HOT 2
- config file location and rule resolution HOT 4
- Rule space-around-operator is not working HOT 2
- VS Code doesn't see extension config HOT 2
- Doesn't see sass-lint HOT 3
- Doesn't see sass-lint installed globally via yarn HOT 9
- Question: Where can we disable particular rules? HOT 4
- How to configure scss/sass lint rule validation using sass-lint? HOT 1
- Cant lint CSS custom properties if property-sort-order is enabled HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-sass-lint.