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.

Using version 3.0.0 of the suitcss preprocessor, stylelint is reporting warnings for the normalize.css in the node_modules directory:

node_modules/normalize.css/normalize.css
12:3    ⚠  Unexpected vendor-prefix "-ms-text-size-adjust" (property-no-vendor-prefix) [stylelint]
13:3    ⚠  Unexpected vendor-prefix "-webkit-text-size-adjust" (property-no-vendor-prefix) [stylelint]
96:3    ⚠  Unexpected vendor-prefix "-webkit-text-decoration-skip" (property-no-vendor-prefix) [stylelint]
212:1   ⚠  Unexpected composition (selector-root-no-composition) [stylelint]
306:3   ⚠  Unexpected vendor-prefix "-webkit-appearance" (property-no-vendor-prefix) [stylelint]
392:3   ⚠  Unexpected vendor-prefix "-webkit-appearance" (property-no-vendor-prefix) [stylelint]
402:3   ⚠  Unexpected vendor-prefix "-webkit-appearance" (property-no-vendor-prefix) [stylelint]
409:3   ⚠  Unexpected vendor-prefix "::-webkit-input-placeholder" (selector-no-vendor-prefix) [stylelint]
420:3   ⚠  Unexpected vendor-prefix "-webkit-appearance" (property-no-vendor-prefix) [stylelint]

I was able to suppress these warnings by including a .stylelintignore file in my project. I was looking through the stylelint-config-suitcss docs, and it seems like the intent is for the node_modules directory to be ignored by default?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:29 (23 by maintainers)

github_iconTop GitHub Comments

6reactions
giuseppegcommented, Nov 15, 2016

So we’ve got 5 partecipants to this conversation.

Let’s vote: 👍 ignore node_modules 👎 keep the status-quo

2reactions
simonsmithcommented, Nov 13, 2016

For instance ESLint doesn’t lint dependencies

Based on that, perhaps we should make a change to ignore anything in node_modules? This issue seems to be causing hassle for users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stylelint: Home
Stylelint. npm version Build Status npm downloads. A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Read more >
Stylelint - GitHub
GitHub - stylelint/stylelint: A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Read more >
stylelint - npm
A mighty, modern CSS linter.. Latest version: 14.16.1, last published: a day ago. Start using stylelint in your project by running `npm i...
Read more >
vscode-stylelint - Visual Studio Marketplace
vscode-stylelint. Testing Linting. The official Visual Studio Code extension for Stylelint. Screenshot of Stylelint errors displayed in VS Code.
Read more >
What is stylelint and how to integrate a modern CSS linter in ...
Stylelint is a tool that reports bad code in your CSS files. It helps to enforce the consistent code and prevents you from...
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