1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 13:17:29 +03:00
css/stylelint.config.cjs
dependabot[bot] d89fd2323f
Bump stylelint and stylelint-scss (#1697)
* Bump stylelint and stylelint-scss

Bumps [stylelint](https://github.com/stylelint/stylelint) and [stylelint-scss](https://github.com/stylelint-scss/stylelint-scss). These dependencies needed to be updated together.

Updates `stylelint` from 13.13.1 to 14.0.0
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.13.1...14.0.0)

Updates `stylelint-scss` from 3.21.0 to 4.0.0
- [Release notes](https://github.com/stylelint-scss/stylelint-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-scss/compare/3.21.0...v4.0.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: stylelint-scss
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Set customSyntax

* Update postcss.config.cjs

* Remove example code

* Fix stylelint config

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Rohan <yes@jonrohan.codes>
2021-10-28 17:47:09 +00:00

17 lines
533 B
JavaScript

module.exports = {
extends: ['@primer/stylelint-config'],
plugins: ['stylelint-scss'],
customSyntax: require('postcss-scss'),
ignoreFiles: ['src/fonts/**/*'],
rules: {
'scss/dollar-variable-default': [true, {ignore: 'local'}],
'primer/no-override': false,
'primer/colors': true,
'primer/borders': true,
'primer/spacing': true,
'primer/typography': true,
'primer/box-shadow': true,
'primer/no-undefined-vars': [true, {files: 'node_modules/@primer/primitives/dist/scss/colors*/*.scss'}]
}
}