1
1
mirror of https://github.com/primer/css.git synced 2024-12-12 10:47:14 +03:00
css/stylelint.config.js

19 lines
653 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', './lib/stylelint-todo'],
syntax: 'scss',
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'}]
}
}