mirror of
https://github.com/primer/css.git
synced 2024-12-12 10:47:14 +03:00
ab72486f62
* Bump @primer/primitives to 4.7.0 * Output dark high contrast theme variables * Remove modes-v2.scss * Create little-vans-grin.md * Create many-bananas-design.md * Create late-hounds-scream.md * Reduce severity of `no-deprecated-colors`lint rule
21 lines
762 B
JavaScript
21 lines
762 B
JavaScript
const currentVersion = process.env.PRIMER_VERSION || require('./package.json').version
|
|
|
|
module.exports = {
|
|
extends: ['stylelint-config-primer'],
|
|
plugins: ['stylelint-scss', './script/stylelint-todo.cjs'],
|
|
syntax: 'scss',
|
|
ignoreFiles: ['src/fonts/**/*'],
|
|
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'}],
|
|
'primer/no-undefined-vars': [true, {files: 'node_modules/@primer/primitives/dist/scss/colors*/*.scss'}],
|
|
'primer/no-deprecated-colors': [true, {severity: 'warning'}]
|
|
}
|
|
}
|