@dhzh/eslint-plugin-better-tailwindcss 0.0.0-stage → 4.9.0-patch
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +247 -2
- package/lib/api/defaults.d.ts +103 -0
- package/lib/api/defaults.d.ts.map +1 -0
- package/lib/api/defaults.js +34 -0
- package/lib/api/defaults.js.map +1 -0
- package/lib/api/types.d.ts +9 -0
- package/lib/api/types.d.ts.map +1 -0
- package/lib/api/types.js +5 -0
- package/lib/api/types.js.map +1 -0
- package/lib/async-utils/cache.d.ts +30 -0
- package/lib/async-utils/cache.d.ts.map +1 -0
- package/lib/async-utils/cache.js +116 -0
- package/lib/async-utils/cache.js.map +1 -0
- package/lib/async-utils/escape.d.ts +2 -0
- package/lib/async-utils/escape.d.ts.map +1 -0
- package/lib/async-utils/escape.js +5 -0
- package/lib/async-utils/escape.js.map +1 -0
- package/lib/async-utils/fs.d.ts +3 -0
- package/lib/async-utils/fs.d.ts.map +1 -0
- package/lib/async-utils/fs.js +28 -0
- package/lib/async-utils/fs.js.map +1 -0
- package/lib/async-utils/module.d.ts +3 -0
- package/lib/async-utils/module.d.ts.map +1 -0
- package/lib/async-utils/module.js +7 -0
- package/lib/async-utils/module.js.map +1 -0
- package/lib/async-utils/operations.d.ts +23 -0
- package/lib/async-utils/operations.d.ts.map +1 -0
- package/lib/async-utils/operations.js +2 -0
- package/lib/async-utils/operations.js.map +1 -0
- package/lib/async-utils/order.d.ts +4 -0
- package/lib/async-utils/order.d.ts.map +1 -0
- package/lib/async-utils/order.js +5 -0
- package/lib/async-utils/order.js.map +1 -0
- package/lib/async-utils/path.d.ts +2 -0
- package/lib/async-utils/path.d.ts.map +1 -0
- package/lib/async-utils/path.js +7 -0
- package/lib/async-utils/path.js.map +1 -0
- package/lib/async-utils/platform.d.ts +2 -0
- package/lib/async-utils/platform.d.ts.map +1 -0
- package/lib/async-utils/platform.js +4 -0
- package/lib/async-utils/platform.js.map +1 -0
- package/lib/async-utils/regex.d.ts +3 -0
- package/lib/async-utils/regex.d.ts.map +1 -0
- package/lib/async-utils/regex.js +32 -0
- package/lib/async-utils/regex.js.map +1 -0
- package/lib/async-utils/resolvers.d.ts +7 -0
- package/lib/async-utils/resolvers.d.ts.map +1 -0
- package/lib/async-utils/resolvers.js +64 -0
- package/lib/async-utils/resolvers.js.map +1 -0
- package/lib/async-utils/segment.d.ts +2 -0
- package/lib/async-utils/segment.d.ts.map +1 -0
- package/lib/async-utils/segment.js +82 -0
- package/lib/async-utils/segment.js.map +1 -0
- package/lib/async-utils/worker.d.ts +3 -0
- package/lib/async-utils/worker.d.ts.map +1 -0
- package/lib/async-utils/worker.js +17 -0
- package/lib/async-utils/worker.js.map +1 -0
- package/lib/configs/config.d.ts +3521 -0
- package/lib/configs/config.d.ts.map +1 -0
- package/lib/configs/config.js +98 -0
- package/lib/configs/config.js.map +1 -0
- package/lib/options/callees/cc.d.ts +30 -0
- package/lib/options/callees/cc.d.ts.map +1 -0
- package/lib/options/callees/cc.js +25 -0
- package/lib/options/callees/cc.js.map +1 -0
- package/lib/options/callees/clb.d.ts +35 -0
- package/lib/options/callees/clb.d.ts.map +1 -0
- package/lib/options/callees/clb.js +39 -0
- package/lib/options/callees/clb.js.map +1 -0
- package/lib/options/callees/clsx.d.ts +30 -0
- package/lib/options/callees/clsx.d.ts.map +1 -0
- package/lib/options/callees/clsx.js +25 -0
- package/lib/options/callees/clsx.js.map +1 -0
- package/lib/options/callees/cn.d.ts +30 -0
- package/lib/options/callees/cn.d.ts.map +1 -0
- package/lib/options/callees/cn.js +25 -0
- package/lib/options/callees/cn.js.map +1 -0
- package/lib/options/callees/cnb.d.ts +30 -0
- package/lib/options/callees/cnb.d.ts.map +1 -0
- package/lib/options/callees/cnb.js +25 -0
- package/lib/options/callees/cnb.js.map +1 -0
- package/lib/options/callees/ctl.d.ts +17 -0
- package/lib/options/callees/ctl.d.ts.map +1 -0
- package/lib/options/callees/ctl.js +15 -0
- package/lib/options/callees/ctl.js.map +1 -0
- package/lib/options/callees/cva.d.ts +40 -0
- package/lib/options/callees/cva.d.ts.map +1 -0
- package/lib/options/callees/cva.js +37 -0
- package/lib/options/callees/cva.js.map +1 -0
- package/lib/options/callees/cx.d.ts +30 -0
- package/lib/options/callees/cx.d.ts.map +1 -0
- package/lib/options/callees/cx.js +25 -0
- package/lib/options/callees/cx.js.map +1 -0
- package/lib/options/callees/dcnb.d.ts +30 -0
- package/lib/options/callees/dcnb.d.ts.map +1 -0
- package/lib/options/callees/dcnb.js +25 -0
- package/lib/options/callees/dcnb.js.map +1 -0
- package/lib/options/callees/objstr.d.ts +24 -0
- package/lib/options/callees/objstr.d.ts.map +1 -0
- package/lib/options/callees/objstr.js +24 -0
- package/lib/options/callees/objstr.js.map +1 -0
- package/lib/options/callees/tv.d.ts +64 -0
- package/lib/options/callees/tv.d.ts.map +1 -0
- package/lib/options/callees/tv.js +70 -0
- package/lib/options/callees/tv.js.map +1 -0
- package/lib/options/callees/twJoin.d.ts +17 -0
- package/lib/options/callees/twJoin.d.ts.map +1 -0
- package/lib/options/callees/twJoin.js +15 -0
- package/lib/options/callees/twJoin.js.map +1 -0
- package/lib/options/callees/twMerge.d.ts +17 -0
- package/lib/options/callees/twMerge.d.ts.map +1 -0
- package/lib/options/callees/twMerge.js +15 -0
- package/lib/options/callees/twMerge.js.map +1 -0
- package/lib/options/default-options.d.ts +114 -0
- package/lib/options/default-options.d.ts.map +1 -0
- package/lib/options/default-options.js +176 -0
- package/lib/options/default-options.js.map +1 -0
- package/lib/options/descriptions.d.ts +657 -0
- package/lib/options/descriptions.d.ts.map +1 -0
- package/lib/options/descriptions.js +22 -0
- package/lib/options/descriptions.js.map +1 -0
- package/lib/options/migrate.d.ts +16 -0
- package/lib/options/migrate.d.ts.map +1 -0
- package/lib/options/migrate.js +132 -0
- package/lib/options/migrate.js.map +1 -0
- package/lib/options/schemas/attributes.d.ts +100 -0
- package/lib/options/schemas/attributes.d.ts.map +1 -0
- package/lib/options/schemas/attributes.js +19 -0
- package/lib/options/schemas/attributes.js.map +1 -0
- package/lib/options/schemas/callees.d.ts +101 -0
- package/lib/options/schemas/callees.d.ts.map +1 -0
- package/lib/options/schemas/callees.js +19 -0
- package/lib/options/schemas/callees.js.map +1 -0
- package/lib/options/schemas/common.d.ts +30 -0
- package/lib/options/schemas/common.d.ts.map +1 -0
- package/lib/options/schemas/common.js +30 -0
- package/lib/options/schemas/common.js.map +1 -0
- package/lib/options/schemas/matchers.d.ts +13 -0
- package/lib/options/schemas/matchers.d.ts.map +1 -0
- package/lib/options/schemas/matchers.js +14 -0
- package/lib/options/schemas/matchers.js.map +1 -0
- package/lib/options/schemas/selectors.d.ts +1289 -0
- package/lib/options/schemas/selectors.d.ts.map +1 -0
- package/lib/options/schemas/selectors.js +100 -0
- package/lib/options/schemas/selectors.js.map +1 -0
- package/lib/options/schemas/tags.d.ts +101 -0
- package/lib/options/schemas/tags.d.ts.map +1 -0
- package/lib/options/schemas/tags.js +19 -0
- package/lib/options/schemas/tags.js.map +1 -0
- package/lib/options/schemas/variables.d.ts +100 -0
- package/lib/options/schemas/variables.d.ts.map +1 -0
- package/lib/options/schemas/variables.js +19 -0
- package/lib/options/schemas/variables.js.map +1 -0
- package/lib/options/tags/twc.d.ts +36 -0
- package/lib/options/tags/twc.d.ts.map +1 -0
- package/lib/options/tags/twc.js +26 -0
- package/lib/options/tags/twc.js.map +1 -0
- package/lib/options/tags/twx.d.ts +36 -0
- package/lib/options/tags/twx.d.ts.map +1 -0
- package/lib/options/tags/twx.js +26 -0
- package/lib/options/tags/twx.js.map +1 -0
- package/lib/parsers/angular.d.ts +11 -0
- package/lib/parsers/angular.d.ts.map +1 -0
- package/lib/parsers/angular.js +736 -0
- package/lib/parsers/angular.js.map +1 -0
- package/lib/parsers/css.d.ts +5 -0
- package/lib/parsers/css.d.ts.map +1 -0
- package/lib/parsers/css.js +100 -0
- package/lib/parsers/css.js.map +1 -0
- package/lib/parsers/es.d.ts +49 -0
- package/lib/parsers/es.d.ts.map +1 -0
- package/lib/parsers/es.js +924 -0
- package/lib/parsers/es.js.map +1 -0
- package/lib/parsers/html.d.ts +8 -0
- package/lib/parsers/html.d.ts.map +1 -0
- package/lib/parsers/html.js +51 -0
- package/lib/parsers/html.js.map +1 -0
- package/lib/parsers/jsx.d.ts +9 -0
- package/lib/parsers/jsx.d.ts.map +1 -0
- package/lib/parsers/jsx.js +118 -0
- package/lib/parsers/jsx.js.map +1 -0
- package/lib/parsers/svelte.d.ts +11 -0
- package/lib/parsers/svelte.d.ts.map +1 -0
- package/lib/parsers/svelte.js +204 -0
- package/lib/parsers/svelte.js.map +1 -0
- package/lib/parsers/vue.d.ts +9 -0
- package/lib/parsers/vue.d.ts.map +1 -0
- package/lib/parsers/vue.js +155 -0
- package/lib/parsers/vue.js.map +1 -0
- package/lib/rules/enforce-canonical-classes.d.ts +229 -0
- package/lib/rules/enforce-canonical-classes.d.ts.map +1 -0
- package/lib/rules/enforce-canonical-classes.js +84 -0
- package/lib/rules/enforce-canonical-classes.js.map +1 -0
- package/lib/rules/enforce-consistent-class-order.d.ts +229 -0
- package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -0
- package/lib/rules/enforce-consistent-class-order.js +250 -0
- package/lib/rules/enforce-consistent-class-order.js.map +1 -0
- package/lib/rules/enforce-consistent-important-position.d.ts +225 -0
- package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -0
- package/lib/rules/enforce-consistent-important-position.js +68 -0
- package/lib/rules/enforce-consistent-important-position.js.map +1 -0
- package/lib/rules/enforce-consistent-line-wrapping.d.ts +235 -0
- package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -0
- package/lib/rules/enforce-consistent-line-wrapping.js +537 -0
- package/lib/rules/enforce-consistent-line-wrapping.js.map +1 -0
- package/lib/rules/enforce-consistent-variable-syntax.d.ts +225 -0
- package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -0
- package/lib/rules/enforce-consistent-variable-syntax.js +164 -0
- package/lib/rules/enforce-consistent-variable-syntax.js.map +1 -0
- package/lib/rules/enforce-consistent-variant-order.d.ts +225 -0
- package/lib/rules/enforce-consistent-variant-order.d.ts.map +1 -0
- package/lib/rules/enforce-consistent-variant-order.js +77 -0
- package/lib/rules/enforce-consistent-variant-order.js.map +1 -0
- package/lib/rules/enforce-logical-properties.d.ts +227 -0
- package/lib/rules/enforce-logical-properties.d.ts.map +1 -0
- package/lib/rules/enforce-logical-properties.js +142 -0
- package/lib/rules/enforce-logical-properties.js.map +1 -0
- package/lib/rules/enforce-shorthand-classes.d.ts +229 -0
- package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -0
- package/lib/rules/enforce-shorthand-classes.js +217 -0
- package/lib/rules/enforce-shorthand-classes.js.map +1 -0
- package/lib/rules/no-concatenated-classes.d.ts +225 -0
- package/lib/rules/no-concatenated-classes.d.ts.map +1 -0
- package/lib/rules/no-concatenated-classes.js +31 -0
- package/lib/rules/no-concatenated-classes.js.map +1 -0
- package/lib/rules/no-conflicting-classes.d.ts +225 -0
- package/lib/rules/no-conflicting-classes.d.ts.map +1 -0
- package/lib/rules/no-conflicting-classes.js +60 -0
- package/lib/rules/no-conflicting-classes.js.map +1 -0
- package/lib/rules/no-deprecated-classes.d.ts +227 -0
- package/lib/rules/no-deprecated-classes.d.ts.map +1 -0
- package/lib/rules/no-deprecated-classes.js +103 -0
- package/lib/rules/no-deprecated-classes.js.map +1 -0
- package/lib/rules/no-duplicate-classes.d.ts +225 -0
- package/lib/rules/no-duplicate-classes.d.ts.map +1 -0
- package/lib/rules/no-duplicate-classes.js +52 -0
- package/lib/rules/no-duplicate-classes.js.map +1 -0
- package/lib/rules/no-restricted-classes.d.ts +225 -0
- package/lib/rules/no-restricted-classes.d.ts.map +1 -0
- package/lib/rules/no-restricted-classes.js +57 -0
- package/lib/rules/no-restricted-classes.js.map +1 -0
- package/lib/rules/no-unknown-classes.d.ts +225 -0
- package/lib/rules/no-unknown-classes.d.ts.map +1 -0
- package/lib/rules/no-unknown-classes.js +82 -0
- package/lib/rules/no-unknown-classes.js.map +1 -0
- package/lib/rules/no-unnecessary-whitespace.d.ts +225 -0
- package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -0
- package/lib/rules/no-unnecessary-whitespace.js +141 -0
- package/lib/rules/no-unnecessary-whitespace.js.map +1 -0
- package/lib/tailwindcss/canonical-classes.async.v4.d.ts +3 -0
- package/lib/tailwindcss/canonical-classes.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/canonical-classes.async.v4.js +54 -0
- package/lib/tailwindcss/canonical-classes.async.v4.js.map +1 -0
- package/lib/tailwindcss/canonical-classes.d.ts +21 -0
- package/lib/tailwindcss/canonical-classes.d.ts.map +1 -0
- package/lib/tailwindcss/canonical-classes.js +16 -0
- package/lib/tailwindcss/canonical-classes.js.map +1 -0
- package/lib/tailwindcss/class-order.async.v3.d.ts +3 -0
- package/lib/tailwindcss/class-order.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/class-order.async.v3.js +4 -0
- package/lib/tailwindcss/class-order.async.v3.js.map +1 -0
- package/lib/tailwindcss/class-order.async.v4.d.ts +3 -0
- package/lib/tailwindcss/class-order.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/class-order.async.v4.js +4 -0
- package/lib/tailwindcss/class-order.async.v4.js.map +1 -0
- package/lib/tailwindcss/class-order.d.ts +11 -0
- package/lib/tailwindcss/class-order.d.ts.map +1 -0
- package/lib/tailwindcss/class-order.js +16 -0
- package/lib/tailwindcss/class-order.js.map +1 -0
- package/lib/tailwindcss/conflicting-classes.async.v4.d.ts +35 -0
- package/lib/tailwindcss/conflicting-classes.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/conflicting-classes.async.v4.js +82 -0
- package/lib/tailwindcss/conflicting-classes.async.v4.js.map +1 -0
- package/lib/tailwindcss/conflicting-classes.d.ts +19 -0
- package/lib/tailwindcss/conflicting-classes.d.ts.map +1 -0
- package/lib/tailwindcss/conflicting-classes.js +17 -0
- package/lib/tailwindcss/conflicting-classes.js.map +1 -0
- package/lib/tailwindcss/context.async.v3.d.ts +3 -0
- package/lib/tailwindcss/context.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/context.async.v3.js +13 -0
- package/lib/tailwindcss/context.async.v3.js.map +1 -0
- package/lib/tailwindcss/context.async.v4.d.ts +3 -0
- package/lib/tailwindcss/context.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/context.async.v4.js +82 -0
- package/lib/tailwindcss/context.async.v4.js.map +1 -0
- package/lib/tailwindcss/custom-component-classes.async.v3.d.ts +4 -0
- package/lib/tailwindcss/custom-component-classes.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/custom-component-classes.async.v3.js +4 -0
- package/lib/tailwindcss/custom-component-classes.async.v3.js.map +1 -0
- package/lib/tailwindcss/custom-component-classes.async.v4.d.ts +4 -0
- package/lib/tailwindcss/custom-component-classes.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/custom-component-classes.async.v4.js +101 -0
- package/lib/tailwindcss/custom-component-classes.async.v4.js.map +1 -0
- package/lib/tailwindcss/custom-component-classes.d.ts +11 -0
- package/lib/tailwindcss/custom-component-classes.d.ts.map +1 -0
- package/lib/tailwindcss/custom-component-classes.js +16 -0
- package/lib/tailwindcss/custom-component-classes.js.map +1 -0
- package/lib/tailwindcss/dissect-classes.async.v3.d.ts +4 -0
- package/lib/tailwindcss/dissect-classes.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/dissect-classes.async.v3.js +32 -0
- package/lib/tailwindcss/dissect-classes.async.v3.js.map +1 -0
- package/lib/tailwindcss/dissect-classes.async.v4.d.ts +3 -0
- package/lib/tailwindcss/dissect-classes.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/dissect-classes.async.v4.js +39 -0
- package/lib/tailwindcss/dissect-classes.async.v4.js.map +1 -0
- package/lib/tailwindcss/dissect-classes.d.ts +23 -0
- package/lib/tailwindcss/dissect-classes.d.ts.map +1 -0
- package/lib/tailwindcss/dissect-classes.js +16 -0
- package/lib/tailwindcss/dissect-classes.js.map +1 -0
- package/lib/tailwindcss/prefix.async.v3.d.ts +4 -0
- package/lib/tailwindcss/prefix.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/prefix.async.v3.js +7 -0
- package/lib/tailwindcss/prefix.async.v3.js.map +1 -0
- package/lib/tailwindcss/prefix.async.v4.d.ts +4 -0
- package/lib/tailwindcss/prefix.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/prefix.async.v4.js +7 -0
- package/lib/tailwindcss/prefix.async.v4.js.map +1 -0
- package/lib/tailwindcss/prefix.d.ts +13 -0
- package/lib/tailwindcss/prefix.d.ts.map +1 -0
- package/lib/tailwindcss/prefix.js +15 -0
- package/lib/tailwindcss/prefix.js.map +1 -0
- package/lib/tailwindcss/tailwind.async.worker.v3.d.ts +2 -0
- package/lib/tailwindcss/tailwind.async.worker.v3.d.ts.map +1 -0
- package/lib/tailwindcss/tailwind.async.worker.v3.js +57 -0
- package/lib/tailwindcss/tailwind.async.worker.v3.js.map +1 -0
- package/lib/tailwindcss/tailwind.async.worker.v4.d.ts +2 -0
- package/lib/tailwindcss/tailwind.async.worker.v4.d.ts.map +1 -0
- package/lib/tailwindcss/tailwind.async.worker.v4.js +56 -0
- package/lib/tailwindcss/tailwind.async.worker.v4.js.map +1 -0
- package/lib/tailwindcss/unknown-classes.async.v3.d.ts +4 -0
- package/lib/tailwindcss/unknown-classes.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/unknown-classes.async.v3.js +10 -0
- package/lib/tailwindcss/unknown-classes.async.v3.js.map +1 -0
- package/lib/tailwindcss/unknown-classes.async.v4.d.ts +3 -0
- package/lib/tailwindcss/unknown-classes.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/unknown-classes.async.v4.js +5 -0
- package/lib/tailwindcss/unknown-classes.async.v4.js.map +1 -0
- package/lib/tailwindcss/unknown-classes.d.ts +11 -0
- package/lib/tailwindcss/unknown-classes.d.ts.map +1 -0
- package/lib/tailwindcss/unknown-classes.js +21 -0
- package/lib/tailwindcss/unknown-classes.js.map +1 -0
- package/lib/tailwindcss/variant-order.async.v3.d.ts +3 -0
- package/lib/tailwindcss/variant-order.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/variant-order.async.v3.js +4 -0
- package/lib/tailwindcss/variant-order.async.v3.js.map +1 -0
- package/lib/tailwindcss/variant-order.async.v4.d.ts +3 -0
- package/lib/tailwindcss/variant-order.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/variant-order.async.v4.js +34 -0
- package/lib/tailwindcss/variant-order.async.v4.js.map +1 -0
- package/lib/tailwindcss/variant-order.d.ts +11 -0
- package/lib/tailwindcss/variant-order.d.ts.map +1 -0
- package/lib/tailwindcss/variant-order.js +16 -0
- package/lib/tailwindcss/variant-order.js.map +1 -0
- package/lib/types/ast.d.ts +79 -0
- package/lib/types/ast.d.ts.map +1 -0
- package/lib/types/ast.js +2 -0
- package/lib/types/ast.js.map +1 -0
- package/lib/types/async.d.ts +7 -0
- package/lib/types/async.d.ts.map +1 -0
- package/lib/types/async.js +2 -0
- package/lib/types/async.js.map +1 -0
- package/lib/types/estree.d.ts +7 -0
- package/lib/types/estree.d.ts.map +1 -0
- package/lib/types/estree.js +2 -0
- package/lib/types/estree.js.map +1 -0
- package/lib/types/rule.d.ts +163 -0
- package/lib/types/rule.d.ts.map +1 -0
- package/lib/types/rule.js +24 -0
- package/lib/types/rule.js.map +1 -0
- package/lib/utils/ast.d.ts +4 -0
- package/lib/utils/ast.d.ts.map +1 -0
- package/lib/utils/ast.js +9 -0
- package/lib/utils/ast.js.map +1 -0
- package/lib/utils/class.d.ts +12 -0
- package/lib/utils/class.d.ts.map +1 -0
- package/lib/utils/class.js +19 -0
- package/lib/utils/class.js.map +1 -0
- package/lib/utils/context.d.ts +20 -0
- package/lib/utils/context.d.ts.map +1 -0
- package/lib/utils/context.js +91 -0
- package/lib/utils/context.js.map +1 -0
- package/lib/utils/lint.d.ts +17 -0
- package/lib/utils/lint.d.ts.map +1 -0
- package/lib/utils/lint.js +40 -0
- package/lib/utils/lint.js.map +1 -0
- package/lib/utils/matchers.d.ts +24 -0
- package/lib/utils/matchers.d.ts.map +1 -0
- package/lib/utils/matchers.js +154 -0
- package/lib/utils/matchers.js.map +1 -0
- package/lib/utils/quotes.d.ts +3 -0
- package/lib/utils/quotes.d.ts.map +1 -0
- package/lib/utils/quotes.js +9 -0
- package/lib/utils/quotes.js.map +1 -0
- package/lib/utils/rule.d.ts +31 -0
- package/lib/utils/rule.d.ts.map +1 -0
- package/lib/utils/rule.js +349 -0
- package/lib/utils/rule.js.map +1 -0
- package/lib/utils/selectors.d.ts +3 -0
- package/lib/utils/selectors.d.ts.map +1 -0
- package/lib/utils/selectors.js +4 -0
- package/lib/utils/selectors.js.map +1 -0
- package/lib/utils/utils.d.ts +49 -0
- package/lib/utils/utils.d.ts.map +1 -0
- package/lib/utils/utils.js +203 -0
- package/lib/utils/utils.js.map +1 -0
- package/lib/utils/valibot.d.ts +4 -0
- package/lib/utils/valibot.d.ts.map +1 -0
- package/lib/utils/valibot.js +12 -0
- package/lib/utils/valibot.js.map +1 -0
- package/lib/utils/version.d.ts +7 -0
- package/lib/utils/version.d.ts.map +1 -0
- package/lib/utils/version.js +6 -0
- package/lib/utils/version.js.map +1 -0
- package/lib/utils/visitedNodes.d.ts +4 -0
- package/lib/utils/visitedNodes.d.ts.map +1 -0
- package/lib/utils/visitedNodes.js +11 -0
- package/lib/utils/visitedNodes.js.map +1 -0
- package/lib/utils/warn.d.ts +2 -0
- package/lib/utils/warn.d.ts.map +1 -0
- package/lib/utils/warn.js +8 -0
- package/lib/utils/warn.js.map +1 -0
- package/package.json +163 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export declare const DCNB_STRINGS: {
|
|
3
|
+
kind: SelectorKind.Callee;
|
|
4
|
+
match: {
|
|
5
|
+
type: MatcherType.String;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const DCNB_OBJECT_KEYS: {
|
|
10
|
+
kind: SelectorKind.Callee;
|
|
11
|
+
match: {
|
|
12
|
+
type: MatcherType.ObjectKey;
|
|
13
|
+
}[];
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
/** @see https://github.com/xobotyi/cnbuilder */
|
|
17
|
+
export declare const DCNB: ({
|
|
18
|
+
kind: SelectorKind.Callee;
|
|
19
|
+
match: {
|
|
20
|
+
type: MatcherType.String;
|
|
21
|
+
}[];
|
|
22
|
+
name: string;
|
|
23
|
+
} | {
|
|
24
|
+
kind: SelectorKind.Callee;
|
|
25
|
+
match: {
|
|
26
|
+
type: MatcherType.ObjectKey;
|
|
27
|
+
}[];
|
|
28
|
+
name: string;
|
|
29
|
+
})[];
|
|
30
|
+
//# sourceMappingURL=dcnb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dcnb.d.ts","sourceRoot":"","sources":["../../../src/options/callees/dcnb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,eAAO,MAAM,YAAY;;;;;;CAQC,CAAC;AAE3B,eAAO,MAAM,gBAAgB;;;;;;CAQH,CAAC;AAE3B,gDAAgD;AAChD,eAAO,MAAM,IAAI;;;;;;;;;;;;IAGI,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export const DCNB_STRINGS = {
|
|
3
|
+
kind: SelectorKind.Callee,
|
|
4
|
+
match: [
|
|
5
|
+
{
|
|
6
|
+
type: MatcherType.String
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
name: "^dcnb$"
|
|
10
|
+
};
|
|
11
|
+
export const DCNB_OBJECT_KEYS = {
|
|
12
|
+
kind: SelectorKind.Callee,
|
|
13
|
+
match: [
|
|
14
|
+
{
|
|
15
|
+
type: MatcherType.ObjectKey
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
name: "^dcnb$"
|
|
19
|
+
};
|
|
20
|
+
/** @see https://github.com/xobotyi/cnbuilder */
|
|
21
|
+
export const DCNB = [
|
|
22
|
+
DCNB_STRINGS,
|
|
23
|
+
DCNB_OBJECT_KEYS
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=dcnb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dcnb.js","sourceRoot":"","sources":["../../../src/options/callees/dcnb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,MAAM;SACzB;KACF;IACD,IAAI,EAAE,QAAQ;CACU,CAAC;AAE3B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,SAAS;SAC5B;KACF;IACD,IAAI,EAAE,QAAQ;CACU,CAAC;AAE3B,gDAAgD;AAChD,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,YAAY;IACZ,gBAAgB;CACG,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export declare const OBJSTR_STRINGS: {
|
|
3
|
+
kind: SelectorKind.Callee;
|
|
4
|
+
match: {
|
|
5
|
+
type: MatcherType.String;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const OBJSTR_OBJECT_KEYS: {
|
|
10
|
+
kind: SelectorKind.Callee;
|
|
11
|
+
match: {
|
|
12
|
+
type: MatcherType.ObjectKey;
|
|
13
|
+
}[];
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
/** @see https://github.com/lukeed/obj-str */
|
|
17
|
+
export declare const OBJSTR: {
|
|
18
|
+
kind: SelectorKind.Callee;
|
|
19
|
+
match: {
|
|
20
|
+
type: MatcherType.ObjectKey;
|
|
21
|
+
}[];
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
//# sourceMappingURL=objstr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objstr.d.ts","sourceRoot":"","sources":["../../../src/options/callees/objstr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,eAAO,MAAM,cAAc;;;;;;CAQD,CAAC;AAE3B,eAAO,MAAM,kBAAkB;;;;;;CAQL,CAAC;AAE3B,6CAA6C;AAC7C,eAAO,MAAM,MAAM;;;;;;GAEE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export const OBJSTR_STRINGS = {
|
|
3
|
+
kind: SelectorKind.Callee,
|
|
4
|
+
match: [
|
|
5
|
+
{
|
|
6
|
+
type: MatcherType.String
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
name: "^objstr$"
|
|
10
|
+
};
|
|
11
|
+
export const OBJSTR_OBJECT_KEYS = {
|
|
12
|
+
kind: SelectorKind.Callee,
|
|
13
|
+
match: [
|
|
14
|
+
{
|
|
15
|
+
type: MatcherType.ObjectKey
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
name: "^objstr$"
|
|
19
|
+
};
|
|
20
|
+
/** @see https://github.com/lukeed/obj-str */
|
|
21
|
+
export const OBJSTR = [
|
|
22
|
+
OBJSTR_OBJECT_KEYS
|
|
23
|
+
];
|
|
24
|
+
//# sourceMappingURL=objstr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objstr.js","sourceRoot":"","sources":["../../../src/options/callees/objstr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,MAAM;SACzB;KACF;IACD,IAAI,EAAE,UAAU;CACQ,CAAC;AAE3B,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,SAAS;SAC5B;KACF;IACD,IAAI,EAAE,UAAU;CACQ,CAAC;AAE3B,6CAA6C;AAC7C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,kBAAkB;CACC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export declare const TV_STRINGS: {
|
|
3
|
+
kind: SelectorKind.Callee;
|
|
4
|
+
match: {
|
|
5
|
+
type: MatcherType.String;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const TV_VARIANT_VALUES: {
|
|
10
|
+
kind: SelectorKind.Callee;
|
|
11
|
+
match: {
|
|
12
|
+
path: string;
|
|
13
|
+
type: MatcherType.ObjectValue;
|
|
14
|
+
}[];
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const TV_BASE_VALUES: {
|
|
18
|
+
kind: SelectorKind.Callee;
|
|
19
|
+
match: {
|
|
20
|
+
path: string;
|
|
21
|
+
type: MatcherType.ObjectValue;
|
|
22
|
+
}[];
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const TV_SLOTS_VALUES: {
|
|
26
|
+
kind: SelectorKind.Callee;
|
|
27
|
+
match: {
|
|
28
|
+
path: string;
|
|
29
|
+
type: MatcherType.ObjectValue;
|
|
30
|
+
}[];
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const TV_COMPOUND_VARIANTS_CLASS: {
|
|
34
|
+
kind: SelectorKind.Callee;
|
|
35
|
+
match: {
|
|
36
|
+
path: string;
|
|
37
|
+
type: MatcherType.ObjectValue;
|
|
38
|
+
}[];
|
|
39
|
+
name: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const TV_COMPOUND_SLOTS_CLASS: {
|
|
42
|
+
kind: SelectorKind.Callee;
|
|
43
|
+
match: {
|
|
44
|
+
path: string;
|
|
45
|
+
type: MatcherType.ObjectValue;
|
|
46
|
+
}[];
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
49
|
+
/** @see https://github.com/nextui-org/tailwind-variants?tab=readme-ov-file */
|
|
50
|
+
export declare const TV: ({
|
|
51
|
+
kind: SelectorKind.Callee;
|
|
52
|
+
match: {
|
|
53
|
+
type: MatcherType.String;
|
|
54
|
+
}[];
|
|
55
|
+
name: string;
|
|
56
|
+
} | {
|
|
57
|
+
kind: SelectorKind.Callee;
|
|
58
|
+
match: {
|
|
59
|
+
path: string;
|
|
60
|
+
type: MatcherType.ObjectValue;
|
|
61
|
+
}[];
|
|
62
|
+
name: string;
|
|
63
|
+
})[];
|
|
64
|
+
//# sourceMappingURL=tv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tv.d.ts","sourceRoot":"","sources":["../../../src/options/callees/tv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,eAAO,MAAM,UAAU;;;;;;CAQG,CAAC;AAE3B,eAAO,MAAM,iBAAiB;;;;;;;CASJ,CAAC;AAE3B,eAAO,MAAM,cAAc;;;;;;;CASD,CAAC;AAE3B,eAAO,MAAM,eAAe;;;;;;;CASF,CAAC;AAE3B,eAAO,MAAM,0BAA0B;;;;;;;CASb,CAAC;AAE3B,eAAO,MAAM,uBAAuB;;;;;;;CASV,CAAC;AAE3B,8EAA8E;AAC9E,eAAO,MAAM,EAAE;;;;;;;;;;;;;IAOM,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export const TV_STRINGS = {
|
|
3
|
+
kind: SelectorKind.Callee,
|
|
4
|
+
match: [
|
|
5
|
+
{
|
|
6
|
+
type: MatcherType.String
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
name: "^tv$"
|
|
10
|
+
};
|
|
11
|
+
export const TV_VARIANT_VALUES = {
|
|
12
|
+
kind: SelectorKind.Callee,
|
|
13
|
+
match: [
|
|
14
|
+
{
|
|
15
|
+
path: "^variants.*$",
|
|
16
|
+
type: MatcherType.ObjectValue
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
name: "^tv$"
|
|
20
|
+
};
|
|
21
|
+
export const TV_BASE_VALUES = {
|
|
22
|
+
kind: SelectorKind.Callee,
|
|
23
|
+
match: [
|
|
24
|
+
{
|
|
25
|
+
path: "^base$",
|
|
26
|
+
type: MatcherType.ObjectValue
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
name: "^tv$"
|
|
30
|
+
};
|
|
31
|
+
export const TV_SLOTS_VALUES = {
|
|
32
|
+
kind: SelectorKind.Callee,
|
|
33
|
+
match: [
|
|
34
|
+
{
|
|
35
|
+
path: "^slots.*$",
|
|
36
|
+
type: MatcherType.ObjectValue
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
name: "^tv$"
|
|
40
|
+
};
|
|
41
|
+
export const TV_COMPOUND_VARIANTS_CLASS = {
|
|
42
|
+
kind: SelectorKind.Callee,
|
|
43
|
+
match: [
|
|
44
|
+
{
|
|
45
|
+
path: "^compoundVariants\\[\\d+\\]\\.(?:className|class).*$",
|
|
46
|
+
type: MatcherType.ObjectValue
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
name: "^tv$"
|
|
50
|
+
};
|
|
51
|
+
export const TV_COMPOUND_SLOTS_CLASS = {
|
|
52
|
+
kind: SelectorKind.Callee,
|
|
53
|
+
match: [
|
|
54
|
+
{
|
|
55
|
+
path: "^compoundSlots\\[\\d+\\]\\.(?:className|class).*$",
|
|
56
|
+
type: MatcherType.ObjectValue
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
name: "^tv$"
|
|
60
|
+
};
|
|
61
|
+
/** @see https://github.com/nextui-org/tailwind-variants?tab=readme-ov-file */
|
|
62
|
+
export const TV = [
|
|
63
|
+
TV_STRINGS,
|
|
64
|
+
TV_VARIANT_VALUES,
|
|
65
|
+
TV_COMPOUND_VARIANTS_CLASS,
|
|
66
|
+
TV_BASE_VALUES,
|
|
67
|
+
TV_SLOTS_VALUES,
|
|
68
|
+
TV_COMPOUND_SLOTS_CLASS
|
|
69
|
+
];
|
|
70
|
+
//# sourceMappingURL=tv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tv.js","sourceRoot":"","sources":["../../../src/options/callees/tv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,MAAM;SACzB;KACF;IACD,IAAI,EAAE,MAAM;CACY,CAAC;AAE3B,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,WAAW,CAAC,WAAW;SAC9B;KACF;IACD,IAAI,EAAE,MAAM;CACY,CAAC;AAE3B,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,WAAW,CAAC,WAAW;SAC9B;KACF;IACD,IAAI,EAAE,MAAM;CACY,CAAC;AAE3B,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,WAAW,CAAC,WAAW;SAC9B;KACF;IACD,IAAI,EAAE,MAAM;CACY,CAAC;AAE3B,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,sDAAsD;YAC5D,IAAI,EAAE,WAAW,CAAC,WAAW;SAC9B;KACF;IACD,IAAI,EAAE,MAAM;CACY,CAAC;AAE3B,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,mDAAmD;YACzD,IAAI,EAAE,WAAW,CAAC,WAAW;SAC9B;KACF;IACD,IAAI,EAAE,MAAM;CACY,CAAC;AAE3B,8EAA8E;AAC9E,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,UAAU;IACV,iBAAiB;IACjB,0BAA0B;IAC1B,cAAc;IACd,eAAe;IACf,uBAAuB;CACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export declare const TW_JOIN_STRINGS: {
|
|
3
|
+
kind: SelectorKind.Callee;
|
|
4
|
+
match: {
|
|
5
|
+
type: MatcherType.String;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
/** @see https://github.com/dcastil/tailwind-merge */
|
|
10
|
+
export declare const TW_JOIN: {
|
|
11
|
+
kind: SelectorKind.Callee;
|
|
12
|
+
match: {
|
|
13
|
+
type: MatcherType.String;
|
|
14
|
+
}[];
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
//# sourceMappingURL=twJoin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twJoin.d.ts","sourceRoot":"","sources":["../../../src/options/callees/twJoin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,eAAO,MAAM,eAAe;;;;;;CAQF,CAAC;AAE3B,qDAAqD;AACrD,eAAO,MAAM,OAAO;;;;;;GAEC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export const TW_JOIN_STRINGS = {
|
|
3
|
+
kind: SelectorKind.Callee,
|
|
4
|
+
match: [
|
|
5
|
+
{
|
|
6
|
+
type: MatcherType.String
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
name: "^twJoin$"
|
|
10
|
+
};
|
|
11
|
+
/** @see https://github.com/dcastil/tailwind-merge */
|
|
12
|
+
export const TW_JOIN = [
|
|
13
|
+
TW_JOIN_STRINGS
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=twJoin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twJoin.js","sourceRoot":"","sources":["../../../src/options/callees/twJoin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,MAAM;SACzB;KACF;IACD,IAAI,EAAE,UAAU;CACQ,CAAC;AAE3B,qDAAqD;AACrD,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,eAAe;CACI,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export declare const TW_MERGE_STRINGS: {
|
|
3
|
+
kind: SelectorKind.Callee;
|
|
4
|
+
match: {
|
|
5
|
+
type: MatcherType.String;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
/** @see https://github.com/dcastil/tailwind-merge */
|
|
10
|
+
export declare const TW_MERGE: {
|
|
11
|
+
kind: SelectorKind.Callee;
|
|
12
|
+
match: {
|
|
13
|
+
type: MatcherType.String;
|
|
14
|
+
}[];
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
//# sourceMappingURL=twMerge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twMerge.d.ts","sourceRoot":"","sources":["../../../src/options/callees/twMerge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,eAAO,MAAM,gBAAgB;;;;;;CAQH,CAAC;AAE3B,qDAAqD;AACrD,eAAO,MAAM,QAAQ;;;;;;GAEA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export const TW_MERGE_STRINGS = {
|
|
3
|
+
kind: SelectorKind.Callee,
|
|
4
|
+
match: [
|
|
5
|
+
{
|
|
6
|
+
type: MatcherType.String
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
name: "^twMerge$"
|
|
10
|
+
};
|
|
11
|
+
/** @see https://github.com/dcastil/tailwind-merge */
|
|
12
|
+
export const TW_MERGE = [
|
|
13
|
+
TW_MERGE_STRINGS
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=twMerge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twMerge.js","sourceRoot":"","sources":["../../../src/options/callees/twMerge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,MAAM;SACzB;KACF;IACD,IAAI,EAAE,WAAW;CACO,CAAC;AAE3B,qDAAqD;AACrD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,gBAAgB;CACG,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../types/rule.js";
|
|
2
|
+
export declare const DEFAULT_CALLEE_SELECTORS: ({
|
|
3
|
+
kind: SelectorKind.Callee;
|
|
4
|
+
match: {
|
|
5
|
+
type: MatcherType.String;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: SelectorKind.Callee;
|
|
10
|
+
match: {
|
|
11
|
+
type: MatcherType.ObjectKey;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
} | {
|
|
15
|
+
kind: SelectorKind.Callee;
|
|
16
|
+
match: {
|
|
17
|
+
path: string;
|
|
18
|
+
type: MatcherType.ObjectValue;
|
|
19
|
+
}[];
|
|
20
|
+
name: string;
|
|
21
|
+
})[];
|
|
22
|
+
export declare const DEFAULT_ATTRIBUTE_SELECTORS: ({
|
|
23
|
+
kind: SelectorKind.Attribute;
|
|
24
|
+
name: string;
|
|
25
|
+
match?: never;
|
|
26
|
+
} | {
|
|
27
|
+
kind: SelectorKind.Attribute;
|
|
28
|
+
match: ({
|
|
29
|
+
type: MatcherType.String;
|
|
30
|
+
} | {
|
|
31
|
+
type: MatcherType.ObjectKey;
|
|
32
|
+
})[];
|
|
33
|
+
name: string;
|
|
34
|
+
})[];
|
|
35
|
+
export declare const DEFAULT_VARIABLE_NAMES: [string, {
|
|
36
|
+
match: MatcherType.String;
|
|
37
|
+
}[]][];
|
|
38
|
+
export declare const DEFAULT_VARIABLE_SELECTORS: {
|
|
39
|
+
kind: SelectorKind.Variable;
|
|
40
|
+
match: {
|
|
41
|
+
type: MatcherType.String;
|
|
42
|
+
}[];
|
|
43
|
+
name: string;
|
|
44
|
+
}[];
|
|
45
|
+
export declare const DEFAULT_TAG_SELECTORS: ({
|
|
46
|
+
kind: SelectorKind.Tag;
|
|
47
|
+
path: string;
|
|
48
|
+
} | {
|
|
49
|
+
kind: SelectorKind.Callee;
|
|
50
|
+
match: ({
|
|
51
|
+
type: MatcherType.String;
|
|
52
|
+
match?: never;
|
|
53
|
+
} | {
|
|
54
|
+
match: {
|
|
55
|
+
type: MatcherType.String;
|
|
56
|
+
}[];
|
|
57
|
+
type: MatcherType.AnonymousFunctionReturn;
|
|
58
|
+
})[];
|
|
59
|
+
path: string;
|
|
60
|
+
})[];
|
|
61
|
+
export declare const DEFAULT_SELECTORS: ({
|
|
62
|
+
kind: SelectorKind.Callee;
|
|
63
|
+
match: {
|
|
64
|
+
type: MatcherType.String;
|
|
65
|
+
}[];
|
|
66
|
+
name: string;
|
|
67
|
+
} | {
|
|
68
|
+
kind: SelectorKind.Callee;
|
|
69
|
+
match: {
|
|
70
|
+
type: MatcherType.ObjectKey;
|
|
71
|
+
}[];
|
|
72
|
+
name: string;
|
|
73
|
+
} | {
|
|
74
|
+
kind: SelectorKind.Callee;
|
|
75
|
+
match: {
|
|
76
|
+
path: string;
|
|
77
|
+
type: MatcherType.ObjectValue;
|
|
78
|
+
}[];
|
|
79
|
+
name: string;
|
|
80
|
+
} | {
|
|
81
|
+
kind: SelectorKind.Tag;
|
|
82
|
+
path: string;
|
|
83
|
+
} | {
|
|
84
|
+
kind: SelectorKind.Callee;
|
|
85
|
+
match: ({
|
|
86
|
+
type: MatcherType.String;
|
|
87
|
+
match?: never;
|
|
88
|
+
} | {
|
|
89
|
+
match: {
|
|
90
|
+
type: MatcherType.String;
|
|
91
|
+
}[];
|
|
92
|
+
type: MatcherType.AnonymousFunctionReturn;
|
|
93
|
+
})[];
|
|
94
|
+
path: string;
|
|
95
|
+
} | {
|
|
96
|
+
kind: SelectorKind.Attribute;
|
|
97
|
+
name: string;
|
|
98
|
+
match?: never;
|
|
99
|
+
} | {
|
|
100
|
+
kind: SelectorKind.Attribute;
|
|
101
|
+
match: ({
|
|
102
|
+
type: MatcherType.String;
|
|
103
|
+
} | {
|
|
104
|
+
type: MatcherType.ObjectKey;
|
|
105
|
+
})[];
|
|
106
|
+
name: string;
|
|
107
|
+
} | {
|
|
108
|
+
kind: SelectorKind.Variable;
|
|
109
|
+
match: {
|
|
110
|
+
type: MatcherType.String;
|
|
111
|
+
}[];
|
|
112
|
+
name: string;
|
|
113
|
+
})[];
|
|
114
|
+
//# sourceMappingURL=default-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-options.d.ts","sourceRoot":"","sources":["../../src/options/default-options.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAM7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;IAchB,CAAC;AAEtB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;IAiFnB,CAAC;AAEtB,eAAO,MAAM,sBAAsB;;MAsBd,CAAC;AAEtB,eAAO,MAAM,0BAA0B;;;;;;GA4BlB,CAAC;AAEtB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;IAGb,CAAC;AAEtB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKT,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { CC } from "./callees/cc.js";
|
|
2
|
+
import { CLB } from "./callees/clb.js";
|
|
3
|
+
import { CLSX } from "./callees/clsx.js";
|
|
4
|
+
import { CN } from "./callees/cn.js";
|
|
5
|
+
import { CNB } from "./callees/cnb.js";
|
|
6
|
+
import { CTL } from "./callees/ctl.js";
|
|
7
|
+
import { CVA } from "./callees/cva.js";
|
|
8
|
+
import { CX } from "./callees/cx.js";
|
|
9
|
+
import { DCNB } from "./callees/dcnb.js";
|
|
10
|
+
import { OBJSTR } from "./callees/objstr.js";
|
|
11
|
+
import { TV } from "./callees/tv.js";
|
|
12
|
+
import { TW_JOIN } from "./callees/twJoin.js";
|
|
13
|
+
import { TW_MERGE } from "./callees/twMerge.js";
|
|
14
|
+
import { TWC } from "./tags/twc.js";
|
|
15
|
+
import { TWX } from "./tags/twx.js";
|
|
16
|
+
import { MatcherType, SelectorKind } from "../types/rule.js";
|
|
17
|
+
export const DEFAULT_CALLEE_SELECTORS = [
|
|
18
|
+
...CC,
|
|
19
|
+
...CLB,
|
|
20
|
+
...CLSX,
|
|
21
|
+
...CN,
|
|
22
|
+
...CNB,
|
|
23
|
+
...CTL,
|
|
24
|
+
...CVA,
|
|
25
|
+
...CX,
|
|
26
|
+
...DCNB,
|
|
27
|
+
...OBJSTR,
|
|
28
|
+
...TV,
|
|
29
|
+
...TW_JOIN,
|
|
30
|
+
...TW_MERGE
|
|
31
|
+
];
|
|
32
|
+
export const DEFAULT_ATTRIBUTE_SELECTORS = [
|
|
33
|
+
{
|
|
34
|
+
kind: SelectorKind.Attribute,
|
|
35
|
+
name: "^class(?:Name)?$"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
kind: SelectorKind.Attribute,
|
|
39
|
+
match: [
|
|
40
|
+
{
|
|
41
|
+
type: MatcherType.String
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
name: "^class(?:Name)?$"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
kind: SelectorKind.Attribute,
|
|
48
|
+
match: [
|
|
49
|
+
{
|
|
50
|
+
type: MatcherType.String
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
name: "^class:.*$"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
kind: SelectorKind.Attribute,
|
|
57
|
+
name: "(?:^\\[class\\]$)|(?:^\\[ngClass\\]$)"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
kind: SelectorKind.Attribute,
|
|
61
|
+
match: [
|
|
62
|
+
{
|
|
63
|
+
type: MatcherType.String
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
name: "(?:^\\[class\\..*\\]$)"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
kind: SelectorKind.Attribute,
|
|
70
|
+
match: [
|
|
71
|
+
{
|
|
72
|
+
type: MatcherType.String
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: MatcherType.ObjectKey
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
name: "(?:^\\[class\\]$)|(?:^\\[ngClass\\]$)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
kind: SelectorKind.Attribute,
|
|
82
|
+
match: [
|
|
83
|
+
{
|
|
84
|
+
type: MatcherType.String
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: MatcherType.ObjectKey
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
name: "^v-bind:class$"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
kind: SelectorKind.Attribute,
|
|
94
|
+
match: [
|
|
95
|
+
{
|
|
96
|
+
type: MatcherType.String
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: MatcherType.ObjectKey
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
name: "^class:list$"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
kind: SelectorKind.Attribute,
|
|
106
|
+
match: [
|
|
107
|
+
{
|
|
108
|
+
type: MatcherType.ObjectKey
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
name: "^classList$"
|
|
112
|
+
}
|
|
113
|
+
];
|
|
114
|
+
export const DEFAULT_VARIABLE_NAMES = [
|
|
115
|
+
[
|
|
116
|
+
"^classNames?$", [
|
|
117
|
+
{
|
|
118
|
+
match: MatcherType.String
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
"^classes$", [
|
|
124
|
+
{
|
|
125
|
+
match: MatcherType.String
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
],
|
|
129
|
+
[
|
|
130
|
+
"^styles?$", [
|
|
131
|
+
{
|
|
132
|
+
match: MatcherType.String
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
]
|
|
136
|
+
];
|
|
137
|
+
export const DEFAULT_VARIABLE_SELECTORS = [
|
|
138
|
+
{
|
|
139
|
+
kind: SelectorKind.Variable,
|
|
140
|
+
match: [
|
|
141
|
+
{
|
|
142
|
+
type: MatcherType.String
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
name: "^classNames?$"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
kind: SelectorKind.Variable,
|
|
149
|
+
match: [
|
|
150
|
+
{
|
|
151
|
+
type: MatcherType.String
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
name: "^classes$"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
kind: SelectorKind.Variable,
|
|
158
|
+
match: [
|
|
159
|
+
{
|
|
160
|
+
type: MatcherType.String
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
name: "^styles?$"
|
|
164
|
+
}
|
|
165
|
+
];
|
|
166
|
+
export const DEFAULT_TAG_SELECTORS = [
|
|
167
|
+
...TWC,
|
|
168
|
+
...TWX
|
|
169
|
+
];
|
|
170
|
+
export const DEFAULT_SELECTORS = [
|
|
171
|
+
...DEFAULT_ATTRIBUTE_SELECTORS,
|
|
172
|
+
...DEFAULT_CALLEE_SELECTORS,
|
|
173
|
+
...DEFAULT_VARIABLE_SELECTORS,
|
|
174
|
+
...DEFAULT_TAG_SELECTORS
|
|
175
|
+
];
|
|
176
|
+
//# sourceMappingURL=default-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-options.js","sourceRoot":"","sources":["../../src/options/default-options.ts"],"names":[],"mappings":"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"}
|