Skip to content

Instantly share code, notes, and snippets.

@jojojojojoj5564656465465
Last active January 23, 2023 13:35
Show Gist options
  • Save jojojojojoj5564656465465/1baadee313aa0d488333cebffbbc1138 to your computer and use it in GitHub Desktop.
Save jojojojojoj5564656465465/1baadee313aa0d488333cebffbbc1138 to your computer and use it in GitHub Desktop.
module.exports = {
extends: [
'stylelint-config-html',
'@tinkoff/stylelint-config',
'stylelint-config-standard-scss'
],
plugins: ['stylelint-scss', 'stylelint-csstree-validator'],
overrides: [
{
files: ['**/*.{astro,html}'],
customSyntax: 'postcss-html'
},
{
files: ['src/**/*.{scss,css}'],
customSyntax: 'postcss-scss'
}
],
rules: {
'csstree/validator': {
syntaxExtensions: ['sass'],
ignoreAtrules: ['custom-at-rule', '-webkit-keyframes'],
ignoreProperties: ['composes', 'mask', '-webkit-mask', '-webkit'],
ignoreValue: '^oklch'
},
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
// 'scss/selector-no-redundant-nesting-selector': true,
'scss/at-rule-no-unknown': true,
'number-leading-zero': 'always',
'color-no-hex': true,
'max-empty-lines': 2,
'no-descending-specificity': true,
'no-duplicate-selectors': true,
'selector-pseudo-class-no-unknown': [
true,
{ ignorePseudoClasses: ['global', 'nth-last-col'] }
]
},
ignoreFiles: ['node_modules/*'],
defaultSeverity: 'warning'
}
//pad stylelint-config-html @tinkoff/stylelint-config stylelint-config-standard-scss stylelint-scss stylelint-csstree-validator prettier eslint-config-prettier prettier-plugin-astro stylelint postcss-html postcss-scss eslint sass @typescript-eslint/parser eslint-plugin-astro
// pad postcss-font-magician @fullhuman/postcss-purgecss postcss-preset-env postcss postcss-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment