Skip to content

Commit

Permalink
Configured stylelint-declaration-strict-value 🪢
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Aug 4, 2024
1 parent 8ec48df commit b6d6ade
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default () => ({
'function-no-unknown': null, // scss/function-no-unknown
'property-no-unknown': null, // scss/property-no-unknown
...Rules.DeclarationStrictValue,
...Rules.SCSS,
...Rules.Scss,
},
}],
plugins: [
Expand Down
8 changes: 7 additions & 1 deletion config/stylelint/rules/declaration-strict-value.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// https://github.com/AndyOGo/stylelint-declaration-strict-value

export default {}
export default {
'scale-unlimited/declaration-strict-value': [
['/color$/', 'fill', 'stroke', 'font-size'], {
disableFix: true,
},
],
}
4 changes: 2 additions & 2 deletions config/stylelint/rules/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import DeclarationStrictValue from './declaration-strict-value'
import Order from './order'
import SCSS from './scss'
import Scss from './scss'
import Stylelint from './stylelint'
import Stylistic from './stylistic'

const Rules = {
DeclarationStrictValue,
Order,
SCSS,
Scss,
Stylelint,
Stylistic,
}
Expand Down
2 changes: 1 addition & 1 deletion config/stylelint/rules/order.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// https://github.com/hudochenkov/stylelint-order/tree/master
// https://github.com/hudochenkov/stylelint-order

export default {}

0 comments on commit b6d6ade

Please sign in to comment.