1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 05:07:11 +03:00
css/stylelint.config.js
simurai 8175f88447
Replace auto and fade variables (#1448)
* Replace auto variables

* Replace fade variables

* Create smart-apples-hug.md

* yarn upgrade @primer/primitives

* yarn add primer/primitives@^4.3.10

* Use existing variables

Since the v2 variables are not available yet

* Revert bumping @primer/primitives

This should not be needed anymore.

* Update stylelint.config.js

* Revert "Use existing variables"

This reverts commit cc620b971a.

Co-authored-by: Jon Rohan <yes@jonrohan.codes>
2021-06-08 11:58:23 +09:00

20 lines
692 B
JavaScript

const currentVersion = process.env.PRIMER_VERSION || require('./package.json').version
module.exports = {
extends: ['stylelint-config-primer'],
plugins: ['stylelint-scss', './script/stylelint-todo'],
syntax: '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-css/TODO': [true, {currentVersion, severity: 'error'}],
'primer/no-undefined-vars': [true, {files: 'node_modules/@primer/primitives/dist/scss/colors*/*.scss'}]
}
}