Skip to content

Commit

Permalink
Merge pull request #22 from ai/patch-1
Browse files Browse the repository at this point in the history
Update Stylelint in peer dependency
  • Loading branch information
romainmenke authored Feb 19, 2024
2 parents faea20d + 2b29160 commit 88d3fbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import walk from './lib/walk';

const reportedDecls = new WeakMap();

export default stylelint.createPlugin(ruleName, (method, opts, context) => {
function ruleFunc(method, opts, context) {
const propExceptions = [].concat(Object(opts).except || []);
const isAutofix = isContextAutofixing(context);
const dir = /^rtl$/i.test(Object(opts).direction) ? 'rtl' : 'ltr';
Expand Down Expand Up @@ -140,9 +140,10 @@ export default stylelint.createPlugin(ruleName, (method, opts, context) => {
});
}
};
});
};
ruleFunc.ruleName = ruleName;

export { ruleName }
export default stylelint.createPlugin(ruleName, ruleFunc);

const isMethodIndifferent = method => method === 'ignore' || method === false || method === null;
const isMethodAlways = method => method === 'always' || method === true;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"stylelint-tape": "3.0.0"
},
"peerDependencies": {
"stylelint": ">= 11 < 16"
"stylelint": ">= 11 < 17"
},
"eslintConfig": {
"extends": "dev"
Expand Down

0 comments on commit 88d3fbd

Please sign in to comment.