1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 19:53:11 +03:00
css/stylelint.config.js

20 lines
691 B
JavaScript
Raw Normal View History

2019-10-15 02:24:34 +03:00
const currentVersion = process.env.PRIMER_VERSION || require('./package.json').version
module.exports = {
extends: ['stylelint-config-primer'],
plugins: ['stylelint-scss', './script/stylelint-todo'],
syntax: 'scss',
2021-04-07 19:08:38 +03:00
ignoreFiles: ['src/fonts/**/*'],
rules: {
'scss/dollar-variable-default': [true, {ignore: 'local'}],
2019-10-15 02:24:34 +03:00
'primer/no-override': false,
'primer/colors': true,
2019-10-31 08:00:41 +03:00
'primer/borders': true,
2019-10-31 08:08:48 +03:00
'primer/spacing': true,
'primer/typography': true,
2019-10-31 08:10:42 +03:00
'primer/box-shadow': true,
2020-10-02 20:13:30 +03:00
'primer-css/TODO': [true, {currentVersion, severity: 'error'}],
'primer/no-undefined-vars': [true, {files: 'node_modules/@primer/primitives/dist/scss/colors/*.scss'}]
}
}