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

18 lines
545 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,
2019-10-15 02:24:34 +03:00
'primer-css/TODO': [true, {currentVersion, severity: 'error'}]
}
}