Comments (10)
This usually happens if there's a globally installed version of stylelint that hasn't been updated.
Run:
npm uninstall -g stylelint
npm install -D stylelint@latest stylelint-config-standard@latest
And, as @hudochenkov said, you may need to update your IDE extension.
Feel free to reopen if these don't feel the issue for you.
from stylelint-config-standard.
I have recently been experiencing this issue as well, but it appears on CI, which does a fresh install of everything each time it runs. Is there a way to just ignore the rule named-grid-areas-no-invalid
so it doesn't cause an error? This is hapening upon upgrade from 20.0.0 to 21.0.0. The error message is
1:1 ✖ Unknown rule named-grid-areas-no-invalid named-grid-areas-no-invalid
stderr: Nothing written
from stylelint-config-standard.
All of those results were expected as I never installed stylelint globally.
Thanks for sharing the results.
I can't think what would be causing the error if you're running 13.12.0
...
from stylelint-config-standard.
Most likely your IDE uses different version that you've installed. Do you have the same problem when running stylelint via CLI?
from stylelint-config-standard.
Thanks all for the help troubleshooting. No errors from the CLI -- this is definitely an issue with my IDE integration.
from stylelint-config-standard.
is there a way to just ignore the rule named-grid-areas-no-invalid so it doesn't cause an error?
Yes.
{
"extends": ["stylelint-config-standard"],
"rules": {
"named-grid-areas-no-invalid": null
}
}
But you shouldn't have to do this.
I have recently been experiencing this issue as well, but it appears on CI,
It would be good to get to the bottom of this.
What output do you get when you run these two commands in your project root:
stylelint --version
npx stylelint --version
from stylelint-config-standard.
@jeddy3 Here are the results of it from my terminal.
$ stylelint
--version
zsh: command not found: stylelint
$ npx stylelint --version
13.12.0
$ yarn stylelint --version
yarn run v1.22.5
$ [Project Root Path]/node_modules/.bin/stylelint --version
13.12.0
✨ Done in 0.35s.
All of those results were expected as I never installed stylelint globally.
from stylelint-config-standard.
is there a way to just ignore the rule named-grid-areas-no-invalid so it doesn't cause an error?
Yes.
{ "extends": ["stylelint-config-standard"], "rules": { "named-grid-areas-no-invalid": null } }But you shouldn't have to do this.
I have recently been experiencing this issue as well, but it appears on CI,
It would be good to get to the bottom of this.
What output do you get when you run these two commands in your project root:
stylelint --version
npx stylelint --version
both the stylelint and configuration package are latest versions, the vscode extension is also the latest version, 0.86.0, but still not work after modified the rules part.
from stylelint-config-standard.
I think the problem comes from commit 554e2987b584ccebfc34b362e9c1e8072276d4c7
from stylelint-config-standard.
@markgoho @jeddy3 I just figured it out by specifying vscode extenstion's setting key "stylelint.stylelintPath": "{path of stylelint module}"
, for example, I installed the stylelint globally with pnpm, so the path should be like /usr/pnpm-global/4/node_modules/stylelint
.
now I think the problem is basically because of the confliction between editor extension's stylelint version and the installed package's stylelint version.
hope this helps.
from stylelint-config-standard.
Related Issues (20)
- Stylelint peer dependencies in not up to date HOT 1
- Add import-notation HOT 1
- Add keyframe-selector-notation HOT 3
- Add SVG opacity properties as exceptions to alpha-value-notation HOT 6
- Use parameterized custom messages HOT 1
- Change `import-notation` to `"url"` HOT 1
- rgba format problem HOT 1
- Is the "stylelint-config-recommended" required HOT 12
- Fix `length-zero-no-unit` false positives for custom properties HOT 2
- Add `media-feature-range-notation: "context"` rule HOT 5
- Is stylelint-config-standard compatible with custom syntax like less? HOT 3
- Restore `declaration-block-single-line-max-declarations` removed on 30.0.0 HOT 2
- Unknown rule HOT 11
- Upgrade to 32.0.0 causes parseError with media query in .less file HOT 3
- Regression: Throwing syntax error when filter is repeatedy used after upgrading to v33 HOT 1
- Enable `camelCaseSvgKeywords` option for `value-keyword-case` HOT 13
- Unknown rule media-query-no-invalid media-query-no-invalid HOT 5
- Establish our browser support policy based on baseline HOT 14
- false positive fatal unknow rule errors after upgrade HOT 2
- Disable autofix for `declaration-block-no-redundant-longhand-properties` HOT 3
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 stylelint-config-standard.