stylelint-config-twbs-bootstrap icon indicating copy to clipboard operation
stylelint-config-twbs-bootstrap copied to clipboard

Issues getting lint rules loaded

Open 0dp opened this issue 5 years ago • 5 comments

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";

0dp avatar Mar 08 '19 11:03 0dp

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

XhmikosR avatar May 04 '19 13:05 XhmikosR

Sure thing. I will post it tomorrow

0dp avatar May 05 '19 11:05 0dp

https://github.com/0dp/stylelint-twbs-demo

0dp avatar May 07 '19 19:05 0dp

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.

XhmikosR avatar May 15 '19 15:05 XhmikosR

no worries. Not in a rush

0dp avatar May 21 '19 08:05 0dp