Skip to content

Commit

Permalink
Fix Eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet committed Aug 4, 2024
1 parent 5be6923 commit 101a82f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/utilities/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,18 @@ export const removeEmptyRules = (rule: Container): void => {
export const appendRules = (): void => {
const { rules } = store;
rules.forEach(({rule, ruleLTR, ruleRTL, ruleBoth, ruleSafe}): void => {
ruleBoth.nodes.length && rule.after(ruleBoth);
ruleRTL.nodes.length && rule.after(ruleRTL);
ruleLTR.nodes.length && rule.after(ruleLTR);
ruleSafe.nodes.length && rule.after(ruleSafe);
if (ruleBoth.nodes.length) {
rule.after(ruleBoth);
}
if (ruleRTL.nodes.length) {
rule.after(ruleRTL);
}
if (ruleLTR.nodes.length) {
rule.after(ruleLTR);
}
if (ruleSafe.nodes.length) {
rule.after(ruleSafe);
}
removeEmptyRules(rule);
cleanRules(rule, ruleLTR, ruleRTL, ruleBoth, ruleSafe);
});
Expand Down

0 comments on commit 101a82f

Please sign in to comment.