Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues getting lint rules loaded #9

Closed
0dp opened this issue Mar 8, 2019 · 5 comments
Closed

Issues getting lint rules loaded #9

0dp opened this issue Mar 8, 2019 · 5 comments

Comments

@0dp
Copy link

0dp commented Mar 8, 2019

Hi there,

I've just stumbled across this project, and wanted to give it a spin.
In my postcss.config.js I've replaced stylelint-config-standard with stylelint-config-twbs-bootstrap/scss but am receiving a lot of linting warnings

// stylelint-config-twbs-bootstrap/scss
/src/style.scss 597 KiB {0} [built] [3624 warnings]

vs.

// stylelint-config-standard
./src/style.scss 597 KiB {0} [built] [4457 warnings]

For reference, my postcss.config.js

module.exports = () => ({
  plugins: {
    'stylelint': {
      "extends": "stylelint-config-twbs-bootstrap/scss",
    },
    'precss': {},
    'postcss-preset-env': {
      sourceMap: true,
    },
    'cssnano': {
      'autoprefixer': true
    }
  }
});

For reference, my style.scss

@import "~bootstrap/scss/bootstrap.scss";
@XhmikosR
Copy link
Member

XhmikosR commented May 4, 2019

Can you share a repo showing the issue? We use this on the upstream repo ourselves and there are no errors.

@0dp
Copy link
Author

0dp commented May 5, 2019

Sure thing. I will post it tomorrow

@0dp
Copy link
Author

0dp commented May 7, 2019

@XhmikosR
Copy link
Member

Hey, sorry for the late reply. From a quick look I can't npm i your test repo because I'm using Node.js 12.

@Johann-S: if you are still on Node.js 10, can you check the above test repo? I'm not even sure how's one supposed to make this work with postcss since I've never used stylelint this way myself.

@0dp
Copy link
Author

0dp commented May 21, 2019

no worries. Not in a rush

@XhmikosR XhmikosR closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants