Skip to content

Commit

Permalink
feat(stylelint): add some rules and overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Dec 26, 2023
1 parent 01733e6 commit fab8ac6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/stylelint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ export const stylelint = {
'value-no-vendor-prefix': true,
},
},
{
files: ['*.less'],
rules: {
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global'],
},
],
},
},
],
plugins: ['stylelint-order'],
// ~ merge from stylelint-config-tenx
Expand All @@ -49,5 +60,7 @@ export const stylelint = {
'selector-pseudo-element-colon-notation': undefined,
'unit-no-unknown': undefined,
'value-list-max-empty-lines': undefined,
'alpha-value-notation': 'number',
'selector-class-pattern': undefined,
},
};

0 comments on commit fab8ac6

Please sign in to comment.