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'],
|
2021-04-01 18:46:29 +03:00
|
|
|
plugins: ['stylelint-scss', './script/stylelint-todo'],
|
2019-09-25 23:17:00 +03:00
|
|
|
syntax: 'scss',
|
2021-04-07 19:08:38 +03:00
|
|
|
ignoreFiles: ['src/fonts/**/*'],
|
2019-09-25 23:17:00 +03:00
|
|
|
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,
|
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'}]
|
2019-09-25 23:17:00 +03:00
|
|
|
}
|
|
|
|
}
|