@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,225 @@
|
|
|
1
|
+
export declare const enforceConsistentVariableSyntax: {
|
|
2
|
+
category: "stylistic";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly incorrect: "Incorrect variable syntax: {{ className }}.";
|
|
5
|
+
} | undefined;
|
|
6
|
+
name: "enforce-consistent-variable-syntax";
|
|
7
|
+
readonly options: {
|
|
8
|
+
cwd?: string | undefined;
|
|
9
|
+
rootFontSize?: number | undefined;
|
|
10
|
+
detectComponentClasses: boolean;
|
|
11
|
+
tsconfig?: string | undefined;
|
|
12
|
+
tailwindConfig?: string | undefined;
|
|
13
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
14
|
+
entryPoint?: string | undefined;
|
|
15
|
+
tags?: (string | [string, ({
|
|
16
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
17
|
+
} | {
|
|
18
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
19
|
+
pathPattern?: string | undefined;
|
|
20
|
+
} | {
|
|
21
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
22
|
+
pathPattern?: string | undefined;
|
|
23
|
+
})[]])[] | undefined;
|
|
24
|
+
variables?: (string | [string, ({
|
|
25
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
26
|
+
} | {
|
|
27
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
28
|
+
pathPattern?: string | undefined;
|
|
29
|
+
} | {
|
|
30
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
31
|
+
pathPattern?: string | undefined;
|
|
32
|
+
})[]])[] | undefined;
|
|
33
|
+
attributes?: (string | [string, ({
|
|
34
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
35
|
+
} | {
|
|
36
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
37
|
+
pathPattern?: string | undefined;
|
|
38
|
+
} | {
|
|
39
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
40
|
+
pathPattern?: string | undefined;
|
|
41
|
+
})[]])[] | undefined;
|
|
42
|
+
callees?: (string | [string, ({
|
|
43
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
44
|
+
} | {
|
|
45
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
46
|
+
pathPattern?: string | undefined;
|
|
47
|
+
} | {
|
|
48
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
49
|
+
pathPattern?: string | undefined;
|
|
50
|
+
})[]])[] | undefined;
|
|
51
|
+
selectors: ({
|
|
52
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
53
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
54
|
+
match?: ({
|
|
55
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
56
|
+
} | {
|
|
57
|
+
path?: string | undefined;
|
|
58
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
59
|
+
} | {
|
|
60
|
+
path?: string | undefined;
|
|
61
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
62
|
+
} | {
|
|
63
|
+
match: ({
|
|
64
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
65
|
+
} | {
|
|
66
|
+
path?: string | undefined;
|
|
67
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
68
|
+
} | {
|
|
69
|
+
path?: string | undefined;
|
|
70
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
71
|
+
})[];
|
|
72
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
73
|
+
})[] | undefined;
|
|
74
|
+
name: string;
|
|
75
|
+
path?: string | undefined;
|
|
76
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
77
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
80
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
81
|
+
match?: ({
|
|
82
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
83
|
+
} | {
|
|
84
|
+
path?: string | undefined;
|
|
85
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
86
|
+
} | {
|
|
87
|
+
path?: string | undefined;
|
|
88
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
89
|
+
} | {
|
|
90
|
+
match: ({
|
|
91
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
92
|
+
} | {
|
|
93
|
+
path?: string | undefined;
|
|
94
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
95
|
+
} | {
|
|
96
|
+
path?: string | undefined;
|
|
97
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
98
|
+
})[];
|
|
99
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
100
|
+
})[] | undefined;
|
|
101
|
+
name?: string | undefined;
|
|
102
|
+
path: string;
|
|
103
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
104
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
107
|
+
match?: ({
|
|
108
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
109
|
+
} | {
|
|
110
|
+
path?: string | undefined;
|
|
111
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
112
|
+
} | {
|
|
113
|
+
path?: string | undefined;
|
|
114
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
115
|
+
} | {
|
|
116
|
+
match: ({
|
|
117
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
118
|
+
} | {
|
|
119
|
+
path?: string | undefined;
|
|
120
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
121
|
+
} | {
|
|
122
|
+
path?: string | undefined;
|
|
123
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
124
|
+
})[];
|
|
125
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
126
|
+
})[] | undefined;
|
|
127
|
+
name: string;
|
|
128
|
+
path?: string | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
131
|
+
match?: ({
|
|
132
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
133
|
+
} | {
|
|
134
|
+
path?: string | undefined;
|
|
135
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
136
|
+
} | {
|
|
137
|
+
path?: string | undefined;
|
|
138
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
139
|
+
} | {
|
|
140
|
+
match: ({
|
|
141
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
142
|
+
} | {
|
|
143
|
+
path?: string | undefined;
|
|
144
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
145
|
+
} | {
|
|
146
|
+
path?: string | undefined;
|
|
147
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
148
|
+
})[];
|
|
149
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
150
|
+
})[] | undefined;
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
path: string;
|
|
153
|
+
} | {
|
|
154
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
155
|
+
match?: ({
|
|
156
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
157
|
+
} | {
|
|
158
|
+
path?: string | undefined;
|
|
159
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
160
|
+
} | {
|
|
161
|
+
path?: string | undefined;
|
|
162
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
163
|
+
} | {
|
|
164
|
+
match: ({
|
|
165
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
166
|
+
} | {
|
|
167
|
+
path?: string | undefined;
|
|
168
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
169
|
+
} | {
|
|
170
|
+
path?: string | undefined;
|
|
171
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
172
|
+
})[];
|
|
173
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
174
|
+
})[] | undefined;
|
|
175
|
+
name: string;
|
|
176
|
+
} | {
|
|
177
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
178
|
+
match?: ({
|
|
179
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
180
|
+
} | {
|
|
181
|
+
path?: string | undefined;
|
|
182
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
183
|
+
} | {
|
|
184
|
+
path?: string | undefined;
|
|
185
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
186
|
+
} | {
|
|
187
|
+
match: ({
|
|
188
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
189
|
+
} | {
|
|
190
|
+
path?: string | undefined;
|
|
191
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
192
|
+
} | {
|
|
193
|
+
path?: string | undefined;
|
|
194
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
195
|
+
})[];
|
|
196
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
197
|
+
})[] | undefined;
|
|
198
|
+
name: string;
|
|
199
|
+
})[];
|
|
200
|
+
} & {
|
|
201
|
+
syntax: "variable" | "shorthand";
|
|
202
|
+
};
|
|
203
|
+
recommended: false;
|
|
204
|
+
rule: {
|
|
205
|
+
create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
|
|
206
|
+
meta: {
|
|
207
|
+
messages?: {
|
|
208
|
+
readonly incorrect: "Incorrect variable syntax: {{ className }}.";
|
|
209
|
+
};
|
|
210
|
+
docs: {
|
|
211
|
+
description: string;
|
|
212
|
+
recommended: boolean;
|
|
213
|
+
url: string;
|
|
214
|
+
};
|
|
215
|
+
fixable: "code" | undefined;
|
|
216
|
+
schema: {
|
|
217
|
+
additionalProperties: false;
|
|
218
|
+
properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
|
|
219
|
+
type: "object";
|
|
220
|
+
}[];
|
|
221
|
+
type: "problem" | "layout";
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
//# sourceMappingURL=enforce-consistent-variable-syntax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enforce-consistent-variable-syntax.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B1C,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { description, literal, optional, pipe, strictObject, union } from "valibot";
|
|
2
|
+
import { createGetDissectedClasses, getDissectedClasses } from "../tailwindcss/dissect-classes.js";
|
|
3
|
+
import { buildClass } from "../utils/class.js";
|
|
4
|
+
import { async } from "../utils/context.js";
|
|
5
|
+
import { lintClasses } from "../utils/lint.js";
|
|
6
|
+
import { getCachedRegex } from "../async-utils/regex.js";
|
|
7
|
+
import { createRule } from "../utils/rule.js";
|
|
8
|
+
import { splitClasses } from "../utils/utils.js";
|
|
9
|
+
export const enforceConsistentVariableSyntax = createRule({
|
|
10
|
+
autofix: true,
|
|
11
|
+
category: "stylistic",
|
|
12
|
+
description: "Enforce consistent syntax for css variables.",
|
|
13
|
+
docs: "https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-variable-syntax.md",
|
|
14
|
+
name: "enforce-consistent-variable-syntax",
|
|
15
|
+
recommended: false,
|
|
16
|
+
messages: {
|
|
17
|
+
incorrect: "Incorrect variable syntax: {{ className }}."
|
|
18
|
+
},
|
|
19
|
+
schema: strictObject({
|
|
20
|
+
syntax: optional(pipe(union([
|
|
21
|
+
literal("shorthand"),
|
|
22
|
+
literal("variable")
|
|
23
|
+
]), description("The syntax to enforce for css variables in tailwindcss class strings.")), "shorthand")
|
|
24
|
+
}),
|
|
25
|
+
initialize: ctx => {
|
|
26
|
+
createGetDissectedClasses(ctx);
|
|
27
|
+
},
|
|
28
|
+
lintLiterals: (ctx, literals) => lintLiterals(ctx, literals)
|
|
29
|
+
});
|
|
30
|
+
function lintLiterals(ctx, literals) {
|
|
31
|
+
const { syntax } = ctx.options;
|
|
32
|
+
const asyncCtx = async(ctx);
|
|
33
|
+
for (const literal of literals) {
|
|
34
|
+
const classes = splitClasses(literal.content);
|
|
35
|
+
const { dissectedClasses, warnings } = getDissectedClasses(asyncCtx, classes);
|
|
36
|
+
lintClasses(ctx, literal, className => {
|
|
37
|
+
const dissectedClass = dissectedClasses[className];
|
|
38
|
+
if (!dissectedClass) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
// skip variable definitions
|
|
42
|
+
if (dissectedClass.base.includes(":")) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const { after: afterParentheses, before: beforeParentheses, characters: charactersParentheses } = extractBalanced(dissectedClass.base);
|
|
46
|
+
const { after: afterSquareBrackets, before: beforeSquareBrackets, characters: charactersSquareBrackets } = extractBalanced(dissectedClass.base, "[", "]");
|
|
47
|
+
if (syntax === "shorthand") {
|
|
48
|
+
if (!charactersSquareBrackets) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (isBeginningOfArbitraryVariable(charactersSquareBrackets)) {
|
|
52
|
+
const { after, characters } = extractBalanced(charactersSquareBrackets);
|
|
53
|
+
if (trimTailwindWhitespace(after).length > 0) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const fixedClass = ctx.version.major >= 4
|
|
57
|
+
? buildClass(ctx, { ...dissectedClass, base: [...beforeSquareBrackets, `(${characters})`, ...afterSquareBrackets].join("") })
|
|
58
|
+
: buildClass(ctx, { ...dissectedClass, base: [...beforeSquareBrackets, `[${characters}]`, ...afterSquareBrackets].join("") });
|
|
59
|
+
return {
|
|
60
|
+
data: { className },
|
|
61
|
+
fix: fixedClass,
|
|
62
|
+
id: "incorrect",
|
|
63
|
+
warnings
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (isBeginningOfArbitraryShorthand(charactersSquareBrackets)) {
|
|
67
|
+
if (ctx.version.major <= 3) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const fixedClass = buildClass(ctx, {
|
|
71
|
+
...dissectedClass,
|
|
72
|
+
base: [...beforeSquareBrackets, `(${charactersSquareBrackets})`, ...afterSquareBrackets].join("")
|
|
73
|
+
});
|
|
74
|
+
return {
|
|
75
|
+
data: { className },
|
|
76
|
+
fix: fixedClass,
|
|
77
|
+
id: "incorrect",
|
|
78
|
+
warnings
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (syntax === "variable") {
|
|
83
|
+
if (charactersSquareBrackets && isBeginningOfArbitraryVariable(charactersSquareBrackets)) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (isBeginningOfArbitraryShorthand(charactersSquareBrackets)) {
|
|
87
|
+
const fixedClass = buildClass(ctx, {
|
|
88
|
+
...dissectedClass,
|
|
89
|
+
base: [...beforeSquareBrackets, `[var(${charactersSquareBrackets})]`, ...afterSquareBrackets].join("")
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
data: { className },
|
|
93
|
+
fix: fixedClass,
|
|
94
|
+
id: "incorrect",
|
|
95
|
+
warnings
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (isBeginningOfArbitraryShorthand(charactersParentheses)) {
|
|
99
|
+
const fixedClass = buildClass(ctx, {
|
|
100
|
+
...dissectedClass,
|
|
101
|
+
base: [
|
|
102
|
+
...beforeParentheses,
|
|
103
|
+
`[var(${charactersParentheses})]`,
|
|
104
|
+
...afterParentheses
|
|
105
|
+
].join("")
|
|
106
|
+
});
|
|
107
|
+
return {
|
|
108
|
+
data: { className },
|
|
109
|
+
fix: fixedClass,
|
|
110
|
+
id: "incorrect",
|
|
111
|
+
warnings
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function isBeginningOfArbitraryShorthand(base) {
|
|
119
|
+
return getCachedRegex(/^_*--(?![\w-]+\()/).test(base);
|
|
120
|
+
}
|
|
121
|
+
function isBeginningOfArbitraryVariable(base) {
|
|
122
|
+
return getCachedRegex(/^_*var\(_*--/).test(base);
|
|
123
|
+
}
|
|
124
|
+
function extractBalanced(className, start = "(", end = ")") {
|
|
125
|
+
const before = [];
|
|
126
|
+
const characters = [];
|
|
127
|
+
const after = [];
|
|
128
|
+
for (let i = 0, parenthesesCount = 0, hasStarted = false, hasEnded = false; i < className.length; i++) {
|
|
129
|
+
if (className[i] === start) {
|
|
130
|
+
parenthesesCount++;
|
|
131
|
+
if (!hasStarted) {
|
|
132
|
+
hasStarted = true;
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (!hasStarted && !hasEnded) {
|
|
137
|
+
before.push(className[i]);
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
if (className[i] === end) {
|
|
141
|
+
parenthesesCount--;
|
|
142
|
+
if (parenthesesCount === 0) {
|
|
143
|
+
hasEnded = true;
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if (!hasEnded) {
|
|
148
|
+
characters.push(className[i]);
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
after.push(className[i]);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
after: after.join(""),
|
|
157
|
+
before: before.join(""),
|
|
158
|
+
characters: characters.join("")
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function trimTailwindWhitespace(className) {
|
|
162
|
+
return className.replace(/^_+|_+$/g, "");
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=enforce-consistent-variable-syntax.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enforce-consistent-variable-syntax.js","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEpF,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAMjE,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,CAAC;IACxD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,wHAAwH;IAC9H,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE,KAAK;IAElB,QAAQ,EAAE;QACR,SAAS,EAAE,6CAA6C;KACzD;IAED,MAAM,EAAE,YAAY,CAAC;QACnB,MAAM,EAAE,QAAQ,CACd,IAAI,CACF,KAAK,CAAC;YACJ,OAAO,CAAC,WAAW,CAAC;YACpB,OAAO,CAAC,UAAU,CAAC;SACpB,CAAC,EACF,WAAW,CAAC,uEAAuE,CAAC,CACrF,EACD,WAAW,CACZ;KACF,CAAC;IAEF,UAAU,EAAE,GAAG,CAAC,EAAE;QAChB,yBAAyB,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IA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KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;KAChC,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAAC,SAAiB;IAC/C,OAAO,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export declare const enforceConsistentVariantOrder: {
|
|
2
|
+
category: "stylistic";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly order: "Incorrect variant order. '{{ className }}' should be '{{ fix }}'.";
|
|
5
|
+
} | undefined;
|
|
6
|
+
name: "enforce-consistent-variant-order";
|
|
7
|
+
readonly options: {
|
|
8
|
+
cwd?: string | undefined;
|
|
9
|
+
rootFontSize?: number | undefined;
|
|
10
|
+
detectComponentClasses: boolean;
|
|
11
|
+
tsconfig?: string | undefined;
|
|
12
|
+
tailwindConfig?: string | undefined;
|
|
13
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
14
|
+
entryPoint?: string | undefined;
|
|
15
|
+
tags?: (string | [string, ({
|
|
16
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
17
|
+
} | {
|
|
18
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
19
|
+
pathPattern?: string | undefined;
|
|
20
|
+
} | {
|
|
21
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
22
|
+
pathPattern?: string | undefined;
|
|
23
|
+
})[]])[] | undefined;
|
|
24
|
+
variables?: (string | [string, ({
|
|
25
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
26
|
+
} | {
|
|
27
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
28
|
+
pathPattern?: string | undefined;
|
|
29
|
+
} | {
|
|
30
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
31
|
+
pathPattern?: string | undefined;
|
|
32
|
+
})[]])[] | undefined;
|
|
33
|
+
attributes?: (string | [string, ({
|
|
34
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
35
|
+
} | {
|
|
36
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
37
|
+
pathPattern?: string | undefined;
|
|
38
|
+
} | {
|
|
39
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
40
|
+
pathPattern?: string | undefined;
|
|
41
|
+
})[]])[] | undefined;
|
|
42
|
+
callees?: (string | [string, ({
|
|
43
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
44
|
+
} | {
|
|
45
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
46
|
+
pathPattern?: string | undefined;
|
|
47
|
+
} | {
|
|
48
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
49
|
+
pathPattern?: string | undefined;
|
|
50
|
+
})[]])[] | undefined;
|
|
51
|
+
selectors: ({
|
|
52
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
53
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
54
|
+
match?: ({
|
|
55
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
56
|
+
} | {
|
|
57
|
+
path?: string | undefined;
|
|
58
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
59
|
+
} | {
|
|
60
|
+
path?: string | undefined;
|
|
61
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
62
|
+
} | {
|
|
63
|
+
match: ({
|
|
64
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
65
|
+
} | {
|
|
66
|
+
path?: string | undefined;
|
|
67
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
68
|
+
} | {
|
|
69
|
+
path?: string | undefined;
|
|
70
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
71
|
+
})[];
|
|
72
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
73
|
+
})[] | undefined;
|
|
74
|
+
name: string;
|
|
75
|
+
path?: string | undefined;
|
|
76
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
77
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
80
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
81
|
+
match?: ({
|
|
82
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
83
|
+
} | {
|
|
84
|
+
path?: string | undefined;
|
|
85
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
86
|
+
} | {
|
|
87
|
+
path?: string | undefined;
|
|
88
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
89
|
+
} | {
|
|
90
|
+
match: ({
|
|
91
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
92
|
+
} | {
|
|
93
|
+
path?: string | undefined;
|
|
94
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
95
|
+
} | {
|
|
96
|
+
path?: string | undefined;
|
|
97
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
98
|
+
})[];
|
|
99
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
100
|
+
})[] | undefined;
|
|
101
|
+
name?: string | undefined;
|
|
102
|
+
path: string;
|
|
103
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
104
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
107
|
+
match?: ({
|
|
108
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
109
|
+
} | {
|
|
110
|
+
path?: string | undefined;
|
|
111
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
112
|
+
} | {
|
|
113
|
+
path?: string | undefined;
|
|
114
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
115
|
+
} | {
|
|
116
|
+
match: ({
|
|
117
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
118
|
+
} | {
|
|
119
|
+
path?: string | undefined;
|
|
120
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
121
|
+
} | {
|
|
122
|
+
path?: string | undefined;
|
|
123
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
124
|
+
})[];
|
|
125
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
126
|
+
})[] | undefined;
|
|
127
|
+
name: string;
|
|
128
|
+
path?: string | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
131
|
+
match?: ({
|
|
132
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
133
|
+
} | {
|
|
134
|
+
path?: string | undefined;
|
|
135
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
136
|
+
} | {
|
|
137
|
+
path?: string | undefined;
|
|
138
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
139
|
+
} | {
|
|
140
|
+
match: ({
|
|
141
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
142
|
+
} | {
|
|
143
|
+
path?: string | undefined;
|
|
144
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
145
|
+
} | {
|
|
146
|
+
path?: string | undefined;
|
|
147
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
148
|
+
})[];
|
|
149
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
150
|
+
})[] | undefined;
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
path: string;
|
|
153
|
+
} | {
|
|
154
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
155
|
+
match?: ({
|
|
156
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
157
|
+
} | {
|
|
158
|
+
path?: string | undefined;
|
|
159
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
160
|
+
} | {
|
|
161
|
+
path?: string | undefined;
|
|
162
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
163
|
+
} | {
|
|
164
|
+
match: ({
|
|
165
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
166
|
+
} | {
|
|
167
|
+
path?: string | undefined;
|
|
168
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
169
|
+
} | {
|
|
170
|
+
path?: string | undefined;
|
|
171
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
172
|
+
})[];
|
|
173
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
174
|
+
})[] | undefined;
|
|
175
|
+
name: string;
|
|
176
|
+
} | {
|
|
177
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
178
|
+
match?: ({
|
|
179
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
180
|
+
} | {
|
|
181
|
+
path?: string | undefined;
|
|
182
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
183
|
+
} | {
|
|
184
|
+
path?: string | undefined;
|
|
185
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
186
|
+
} | {
|
|
187
|
+
match: ({
|
|
188
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
189
|
+
} | {
|
|
190
|
+
path?: string | undefined;
|
|
191
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
192
|
+
} | {
|
|
193
|
+
path?: string | undefined;
|
|
194
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
195
|
+
})[];
|
|
196
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
197
|
+
})[] | undefined;
|
|
198
|
+
name: string;
|
|
199
|
+
})[];
|
|
200
|
+
} & {
|
|
201
|
+
[x: string]: unknown;
|
|
202
|
+
};
|
|
203
|
+
recommended: false;
|
|
204
|
+
rule: {
|
|
205
|
+
create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
|
|
206
|
+
meta: {
|
|
207
|
+
messages?: {
|
|
208
|
+
readonly order: "Incorrect variant order. '{{ className }}' should be '{{ fix }}'.";
|
|
209
|
+
};
|
|
210
|
+
docs: {
|
|
211
|
+
description: string;
|
|
212
|
+
recommended: boolean;
|
|
213
|
+
url: string;
|
|
214
|
+
};
|
|
215
|
+
fixable: "code" | undefined;
|
|
216
|
+
schema: {
|
|
217
|
+
additionalProperties: false;
|
|
218
|
+
properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
|
|
219
|
+
type: "object";
|
|
220
|
+
}[];
|
|
221
|
+
type: "problem" | "layout";
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
//# sourceMappingURL=enforce-consistent-variant-order.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enforce-consistent-variant-order.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variant-order.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqExC,CAAC"}
|