Skip to content

Commit 88d3fbd

Browse files
authored
Merge pull request #22 from ai/patch-1
Update Stylelint in peer dependency
2 parents faea20d + 2b29160 commit 88d3fbd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import walk from './lib/walk';
77

88
const reportedDecls = new WeakMap();
99

10-
export default stylelint.createPlugin(ruleName, (method, opts, context) => {
10+
function ruleFunc(method, opts, context) {
1111
const propExceptions = [].concat(Object(opts).except || []);
1212
const isAutofix = isContextAutofixing(context);
1313
const dir = /^rtl$/i.test(Object(opts).direction) ? 'rtl' : 'ltr';
@@ -140,9 +140,10 @@ export default stylelint.createPlugin(ruleName, (method, opts, context) => {
140140
});
141141
}
142142
};
143-
});
143+
};
144+
ruleFunc.ruleName = ruleName;
144145

145-
export { ruleName }
146+
export default stylelint.createPlugin(ruleName, ruleFunc);
146147

147148
const isMethodIndifferent = method => method === 'ignore' || method === false || method === null;
148149
const isMethodAlways = method => method === 'always' || method === true;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"stylelint-tape": "3.0.0"
4343
},
4444
"peerDependencies": {
45-
"stylelint": ">= 11 < 16"
45+
"stylelint": ">= 11 < 17"
4646
},
4747
"eslintConfig": {
4848
"extends": "dev"

0 commit comments

Comments
 (0)