1
1
mirror of https://github.com/primer/css.git synced 2024-11-27 17:52:45 +03:00
css/stylelint.config.js
2021-04-07 09:08:38 -07:00

20 lines
691 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'}]
}
}