Skip to content

Commit

Permalink
🚧 Add rulesToIgnore option for ignoring rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Sum authored and Hugo Sum committed Aug 3, 2020
1 parent 376ba82 commit dc08f2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ const {
requiredParam
} = require('./utilities/helper.js')

module.exports = postcss.plugin('postcss-rfs-autopilot', ({ rulesToTransform, unitToTransform, selectorToIgnore}) => {
module.exports = postcss.plugin('postcss-rfs-autopilot', ({ rulesToTransform, unitToTransform, rulesToIgnore, selectorToIgnore}) => {
const options = {
rulesToTransform: rulesToTransform || requiredParam('rulesToTransform'),
unitToTransform: unitToTransform || requiredParam('unitToTransform'),
selectorToIgnore: selectorToIgnore
selectorToIgnore: selectorToIgnore,
rulesToIgnore: rulesToIgnore
}
// Work with options here

Expand Down

0 comments on commit dc08f2e

Please sign in to comment.