Skip to content

Commit

Permalink
Move to stylelint-codeguide
Browse files Browse the repository at this point in the history
Replace `stylelint-stylistic` with `stylelint-codeguide` to allow
upgrade to Stylelint 16

Also changes Node version constraints to match `stylelint-codeguide`
requirements

Ref:
- elirasza/stylelint-stylistic#17
- https://github.com/firefoxic/stylelint-codeguide


Close twbs#232, close twbs#206
  • Loading branch information
tagliala committed Dec 15, 2023
1 parent d1f4bf4 commit c306145
Show file tree
Hide file tree
Showing 4 changed files with 527 additions and 1,027 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [14, 16, 18, 20]
node: [18, 20]

steps:
- name: Clone repository
Expand Down
38 changes: 20 additions & 18 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
module.exports = {
'extends': [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-stylistic/config'
'stylelint-config-recess-order'
],
'plugins': [
'stylelint-codeguide'
],
'rules': {
'alpha-value-notation': null,
Expand Down Expand Up @@ -40,22 +42,22 @@ module.exports = {
'selector-max-universal': 1,
'selector-no-qualifying-type': true,
'selector-not-notation': null, // TODO enable this later
'stylistic/at-rule-name-space-after': 'always',
'stylistic/at-rule-semicolon-space-before': 'never',
'stylistic/block-closing-brace-empty-line-before': null,
'stylistic/block-closing-brace-newline-after': null,
'stylistic/block-opening-brace-space-before': null,
'stylistic/declaration-block-semicolon-newline-before': 'never-multi-line',
'stylistic/max-empty-lines': 2,
'stylistic/max-line-length': null,
'stylistic/number-leading-zero': 'never',
'stylistic/selector-list-comma-newline-before': 'never-multi-line',
'stylistic/selector-list-comma-space-after': 'always-single-line',
'stylistic/selector-list-comma-space-before': 'never-single-line',
'stylistic/unicode-bom': 'never',
'stylistic/value-list-comma-newline-after': 'never-multi-line',
'stylistic/value-list-comma-newline-before': 'never-multi-line',
'stylistic/value-list-comma-space-after': 'always'
'codeguide/at-rule-name-space-after': 'always',
'codeguide/at-rule-semicolon-space-before': 'never',
'codeguide/block-closing-brace-empty-line-before': null,
'codeguide/block-closing-brace-newline-after': null,
'codeguide/block-opening-brace-space-before': null,
'codeguide/declaration-block-semicolon-newline-before': 'never-multi-line',
'codeguide/max-empty-lines': 2,
'codeguide/max-line-length': null,
'codeguide/number-leading-zero': 'never',
'codeguide/selector-list-comma-newline-before': 'never-multi-line',
'codeguide/selector-list-comma-space-after': 'always-single-line',
'codeguide/selector-list-comma-space-before': 'never-single-line',
'codeguide/unicode-bom': 'never',
'codeguide/value-list-comma-newline-after': 'never-multi-line',
'codeguide/value-list-comma-newline-before': 'never-multi-line',
'codeguide/value-list-comma-space-after': 'always'
},
'overrides': [
{
Expand Down

0 comments on commit c306145

Please sign in to comment.