eslint-plugin-better-tailwindcss
Version:
auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.
17 lines • 811 B
JavaScript
;
// runner.js
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCustomComponentClasses = void 0;
const node_path_1 = require("node:path");
const synckit_1 = require("synckit");
const worker_js_1 = require("../async-utils/worker.js");
exports.getCustomComponentClasses = (0, synckit_1.createSyncFn)(getWorkerPath(), (0, worker_js_1.getWorkerOptions)());
function getWorkerPath() {
return (0, node_path_1.resolve)(getCurrentDirectory(), "./custom-component-classes.async.worker.js");
}
function getCurrentDirectory() {
// eslint-disable-next-line eslint-plugin-typescript/prefer-ts-expect-error
// @ts-ignore - `import.meta` doesn't exist in CommonJS -> will be transformed in build step
return __dirname;
}
//# sourceMappingURL=custom-component-classes.js.map