2019-10-15 02:24:34 +03:00
|
|
|
const currentVersion = process.env.PRIMER_VERSION || require('./package.json').version
|
|
|
|
|
2019-09-25 23:17:00 +03:00
|
|
|
module.exports = {
|
|
|
|
extends: ['stylelint-config-primer'],
|
2019-11-01 01:10:30 +03:00
|
|
|
plugins: ['stylelint-scss', './lib/stylelint-todo'],
|
2019-09-25 23:17:00 +03:00
|
|
|
syntax: 'scss',
|
|
|
|
rules: {
|
2019-11-01 01:10:30 +03:00
|
|
|
'scss/dollar-variable-default': [true, {ignore: 'local'}],
|
2019-10-15 02:24:34 +03:00
|
|
|
'primer/no-override': false,
|
2019-10-31 07:25:27 +03:00
|
|
|
'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'}]
|
2019-09-25 23:17:00 +03:00
|
|
|
}
|
|
|
|
}
|