UNPKG

eslint-plugin-mui-sx-order

Version:

Auto-sorts MUI sx/style props for clean, consistent code with ESLint

18 lines 518 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isStyleObjectName = isStyleObjectName; function isStyleObjectName(name) { const stylePatterns = [ /^styles?$/i, /^style$/i, /Style$/, /Styles$/, /styles/i, // Matches "styles" anywhere in the name /^sx$/i, /^theme$/i, /^classes?$/i, /^css$/i, ]; return stylePatterns.some((pattern) => pattern.test(name)); } //# sourceMappingURL=propertyUtils.js.map