eslint-plugin-logical-properties
Version:
18 lines (14 loc) • 450 B
text/typescript
import type { DirectionalRuleConfig } from '../types.js';
import { generateDirectionalRules } from '../parsers/directional.js';
export const mappings = {
width: 'inlineSize',
height: 'blockSize',
minWidth: 'minInlineSize',
minHeight: 'minBlockSize',
maxWidth: 'maxInlineSize',
maxHeight: 'maxBlockSize',
};
export const ruleConfig = {
mappings,
} satisfies DirectionalRuleConfig;
export default generateDirectionalRules(ruleConfig);