mirror of
https://github.com/primer/css.git
synced 2024-12-15 07:23:54 +03:00
18 lines
545 B
JavaScript
18 lines
545 B
JavaScript
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'}],
|
|
'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'}]
|
|
}
|
|
}
|