@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,227 @@
|
|
|
1
|
+
export declare const noDeprecatedClasses: {
|
|
2
|
+
category: "stylistic";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly irreplaceable: "Class \"{{ className }}\" is deprecated. Check the tailwindcss documentation for more information: https://tailwindcss.com/docs/upgrade-guide#removed-deprecated-utilities";
|
|
5
|
+
readonly replaceable: "Deprecated class detected. Replace \"{{ className }}\" with \"{{fix}}\".";
|
|
6
|
+
} | undefined;
|
|
7
|
+
name: "no-deprecated-classes";
|
|
8
|
+
readonly options: {
|
|
9
|
+
cwd?: string | undefined;
|
|
10
|
+
rootFontSize?: number | undefined;
|
|
11
|
+
detectComponentClasses: boolean;
|
|
12
|
+
tsconfig?: string | undefined;
|
|
13
|
+
tailwindConfig?: string | undefined;
|
|
14
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
15
|
+
entryPoint?: string | undefined;
|
|
16
|
+
tags?: (string | [string, ({
|
|
17
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
18
|
+
} | {
|
|
19
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
20
|
+
pathPattern?: string | undefined;
|
|
21
|
+
} | {
|
|
22
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
23
|
+
pathPattern?: string | undefined;
|
|
24
|
+
})[]])[] | undefined;
|
|
25
|
+
variables?: (string | [string, ({
|
|
26
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
27
|
+
} | {
|
|
28
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
29
|
+
pathPattern?: string | undefined;
|
|
30
|
+
} | {
|
|
31
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
32
|
+
pathPattern?: string | undefined;
|
|
33
|
+
})[]])[] | undefined;
|
|
34
|
+
attributes?: (string | [string, ({
|
|
35
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
36
|
+
} | {
|
|
37
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
38
|
+
pathPattern?: string | undefined;
|
|
39
|
+
} | {
|
|
40
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
41
|
+
pathPattern?: string | undefined;
|
|
42
|
+
})[]])[] | undefined;
|
|
43
|
+
callees?: (string | [string, ({
|
|
44
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
45
|
+
} | {
|
|
46
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
47
|
+
pathPattern?: string | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
50
|
+
pathPattern?: string | undefined;
|
|
51
|
+
})[]])[] | undefined;
|
|
52
|
+
selectors: ({
|
|
53
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
54
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
55
|
+
match?: ({
|
|
56
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
57
|
+
} | {
|
|
58
|
+
path?: string | undefined;
|
|
59
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
60
|
+
} | {
|
|
61
|
+
path?: string | undefined;
|
|
62
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
63
|
+
} | {
|
|
64
|
+
match: ({
|
|
65
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
66
|
+
} | {
|
|
67
|
+
path?: string | undefined;
|
|
68
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
69
|
+
} | {
|
|
70
|
+
path?: string | undefined;
|
|
71
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
72
|
+
})[];
|
|
73
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
74
|
+
})[] | undefined;
|
|
75
|
+
name: string;
|
|
76
|
+
path?: string | undefined;
|
|
77
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
78
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
81
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
82
|
+
match?: ({
|
|
83
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
84
|
+
} | {
|
|
85
|
+
path?: string | undefined;
|
|
86
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
87
|
+
} | {
|
|
88
|
+
path?: string | undefined;
|
|
89
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
90
|
+
} | {
|
|
91
|
+
match: ({
|
|
92
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
93
|
+
} | {
|
|
94
|
+
path?: string | undefined;
|
|
95
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
96
|
+
} | {
|
|
97
|
+
path?: string | undefined;
|
|
98
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
99
|
+
})[];
|
|
100
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
101
|
+
})[] | undefined;
|
|
102
|
+
name?: string | undefined;
|
|
103
|
+
path: string;
|
|
104
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
105
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
106
|
+
} | {
|
|
107
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
108
|
+
match?: ({
|
|
109
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
110
|
+
} | {
|
|
111
|
+
path?: string | undefined;
|
|
112
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
113
|
+
} | {
|
|
114
|
+
path?: string | undefined;
|
|
115
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
116
|
+
} | {
|
|
117
|
+
match: ({
|
|
118
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
119
|
+
} | {
|
|
120
|
+
path?: string | undefined;
|
|
121
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
122
|
+
} | {
|
|
123
|
+
path?: string | undefined;
|
|
124
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
125
|
+
})[];
|
|
126
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
127
|
+
})[] | undefined;
|
|
128
|
+
name: string;
|
|
129
|
+
path?: string | undefined;
|
|
130
|
+
} | {
|
|
131
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
132
|
+
match?: ({
|
|
133
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
134
|
+
} | {
|
|
135
|
+
path?: string | undefined;
|
|
136
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
137
|
+
} | {
|
|
138
|
+
path?: string | undefined;
|
|
139
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
140
|
+
} | {
|
|
141
|
+
match: ({
|
|
142
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
143
|
+
} | {
|
|
144
|
+
path?: string | undefined;
|
|
145
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
146
|
+
} | {
|
|
147
|
+
path?: string | undefined;
|
|
148
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
149
|
+
})[];
|
|
150
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
151
|
+
})[] | undefined;
|
|
152
|
+
name?: string | undefined;
|
|
153
|
+
path: string;
|
|
154
|
+
} | {
|
|
155
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
156
|
+
match?: ({
|
|
157
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
158
|
+
} | {
|
|
159
|
+
path?: string | undefined;
|
|
160
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
161
|
+
} | {
|
|
162
|
+
path?: string | undefined;
|
|
163
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
164
|
+
} | {
|
|
165
|
+
match: ({
|
|
166
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
167
|
+
} | {
|
|
168
|
+
path?: string | undefined;
|
|
169
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
170
|
+
} | {
|
|
171
|
+
path?: string | undefined;
|
|
172
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
173
|
+
})[];
|
|
174
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
175
|
+
})[] | undefined;
|
|
176
|
+
name: string;
|
|
177
|
+
} | {
|
|
178
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
179
|
+
match?: ({
|
|
180
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
181
|
+
} | {
|
|
182
|
+
path?: string | undefined;
|
|
183
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
184
|
+
} | {
|
|
185
|
+
path?: string | undefined;
|
|
186
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
187
|
+
} | {
|
|
188
|
+
match: ({
|
|
189
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
190
|
+
} | {
|
|
191
|
+
path?: string | undefined;
|
|
192
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
193
|
+
} | {
|
|
194
|
+
path?: string | undefined;
|
|
195
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
196
|
+
})[];
|
|
197
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
198
|
+
})[] | undefined;
|
|
199
|
+
name: string;
|
|
200
|
+
})[];
|
|
201
|
+
} & {
|
|
202
|
+
[x: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
recommended: true;
|
|
205
|
+
rule: {
|
|
206
|
+
create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
|
|
207
|
+
meta: {
|
|
208
|
+
messages?: {
|
|
209
|
+
readonly irreplaceable: "Class \"{{ className }}\" is deprecated. Check the tailwindcss documentation for more information: https://tailwindcss.com/docs/upgrade-guide#removed-deprecated-utilities";
|
|
210
|
+
readonly replaceable: "Deprecated class detected. Replace \"{{ className }}\" with \"{{fix}}\".";
|
|
211
|
+
};
|
|
212
|
+
docs: {
|
|
213
|
+
description: string;
|
|
214
|
+
recommended: boolean;
|
|
215
|
+
url: string;
|
|
216
|
+
};
|
|
217
|
+
fixable: "code" | undefined;
|
|
218
|
+
schema: {
|
|
219
|
+
additionalProperties: false;
|
|
220
|
+
properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
|
|
221
|
+
type: "object";
|
|
222
|
+
}[];
|
|
223
|
+
type: "problem" | "layout";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
//# sourceMappingURL=no-deprecated-classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-deprecated-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-deprecated-classes.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB9B,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { createGetDissectedClasses, getDissectedClasses } from "../tailwindcss/dissect-classes.js";
|
|
2
|
+
import { buildClass } from "../utils/class.js";
|
|
3
|
+
import { async } from "../utils/context.js";
|
|
4
|
+
import { lintClasses } from "../utils/lint.js";
|
|
5
|
+
import { createRule } from "../utils/rule.js";
|
|
6
|
+
import { replacePlaceholders, splitClasses } from "../utils/utils.js";
|
|
7
|
+
export const noDeprecatedClasses = createRule({
|
|
8
|
+
autofix: true,
|
|
9
|
+
category: "stylistic",
|
|
10
|
+
description: "Disallow the use of deprecated Tailwind CSS classes.",
|
|
11
|
+
docs: "https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-deprecated-classes.md",
|
|
12
|
+
name: "no-deprecated-classes",
|
|
13
|
+
recommended: true,
|
|
14
|
+
messages: {
|
|
15
|
+
irreplaceable: "Class \"{{ className }}\" is deprecated. Check the tailwindcss documentation for more information: https://tailwindcss.com/docs/upgrade-guide#removed-deprecated-utilities",
|
|
16
|
+
replaceable: "Deprecated class detected. Replace \"{{ className }}\" with \"{{fix}}\"."
|
|
17
|
+
},
|
|
18
|
+
initialize: ctx => {
|
|
19
|
+
createGetDissectedClasses(ctx);
|
|
20
|
+
},
|
|
21
|
+
lintLiterals: (ctx, literals) => lintLiterals(ctx, literals)
|
|
22
|
+
});
|
|
23
|
+
const deprecations = [
|
|
24
|
+
[
|
|
25
|
+
{ major: 4, minor: 0 }, [
|
|
26
|
+
[/^shadow$/, "shadow-sm"],
|
|
27
|
+
[/^inset-shadow$/, "inset-shadow-sm"],
|
|
28
|
+
[/^drop-shadow$/, "drop-shadow-sm"],
|
|
29
|
+
[/^blur$/, "blur-sm"],
|
|
30
|
+
[/^backdrop-blur$/, "backdrop-blur-sm"],
|
|
31
|
+
[/^rounded$/, "rounded-sm"],
|
|
32
|
+
[/^bg-opacity-(.*)$/],
|
|
33
|
+
[/^text-opacity-(.*)$/],
|
|
34
|
+
[/^border-opacity-(.*)$/],
|
|
35
|
+
[/^divide-opacity-(.*)$/],
|
|
36
|
+
[/^ring-opacity-(.*)$/],
|
|
37
|
+
[/^placeholder-opacity-(.*)$/],
|
|
38
|
+
[/^flex-shrink$/, "shrink"],
|
|
39
|
+
[/^flex-shrink-(.*)$/, "shrink-$1"],
|
|
40
|
+
[/^flex-grow$/, "grow"],
|
|
41
|
+
[/^flex-grow-(.*)$/, "grow-$1"],
|
|
42
|
+
[/^overflow-ellipsis$/, "text-ellipsis"],
|
|
43
|
+
[/^decoration-slice$/, "box-decoration-slice"],
|
|
44
|
+
[/^decoration-clone$/, "box-decoration-clone"]
|
|
45
|
+
]
|
|
46
|
+
], [
|
|
47
|
+
{ major: 4, minor: 1 }, [
|
|
48
|
+
[/^bg-left-top$/, "bg-top-left"],
|
|
49
|
+
[/^bg-left-bottom$/, "bg-bottom-left"],
|
|
50
|
+
[/^bg-right-top$/, "bg-top-right"],
|
|
51
|
+
[/^bg-right-bottom$/, "bg-bottom-right"],
|
|
52
|
+
[/^object-left-top$/, "object-top-left"],
|
|
53
|
+
[/^object-left-bottom$/, "object-bottom-left"],
|
|
54
|
+
[/^object-right-top$/, "object-top-right"],
|
|
55
|
+
[/^object-right-bottom$/, "object-bottom-right"]
|
|
56
|
+
]
|
|
57
|
+
]
|
|
58
|
+
];
|
|
59
|
+
function lintLiterals(ctx, literals) {
|
|
60
|
+
const { major, minor } = ctx.version;
|
|
61
|
+
const asyncCtx = async(ctx);
|
|
62
|
+
for (const literal of literals) {
|
|
63
|
+
const classes = splitClasses(literal.content);
|
|
64
|
+
const { dissectedClasses, warnings } = getDissectedClasses(asyncCtx, classes);
|
|
65
|
+
lintClasses(ctx, literal, className => {
|
|
66
|
+
const dissectedClass = dissectedClasses[className];
|
|
67
|
+
if (!dissectedClass) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
for (const [version, deprecation] of deprecations) {
|
|
71
|
+
if (major < version.major || major === version.major && minor < version.minor) {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
for (const [pattern, replacement] of deprecation) {
|
|
75
|
+
const match = dissectedClass.base.match(pattern);
|
|
76
|
+
if (!match) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (!replacement) {
|
|
80
|
+
return {
|
|
81
|
+
data: {
|
|
82
|
+
className
|
|
83
|
+
},
|
|
84
|
+
id: "irreplaceable",
|
|
85
|
+
warnings
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const fix = buildClass(ctx, { ...dissectedClass, base: replacePlaceholders(replacement, match) });
|
|
89
|
+
return {
|
|
90
|
+
data: {
|
|
91
|
+
className,
|
|
92
|
+
fix
|
|
93
|
+
},
|
|
94
|
+
fix,
|
|
95
|
+
id: "replaceable",
|
|
96
|
+
warnings
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=no-deprecated-classes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-deprecated-classes.js","sourceRoot":"","sources":["../../src/rules/no-deprecated-classes.ts"],"names":[],"mappings":"AAAA,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,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAMtF,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;IAC5C,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,sDAAsD;IACnE,IAAI,EAAE,2GAA2G;IACjH,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,IAAI;IAEjB,QAAQ,EAAE;QACR,aAAa,EAAE,4KAA4K;QAC3L,WAAW,EAAE,0EAA0E;KACxF;IAED,UAAU,EAAE,GAAG,CAAC,EAAE;QAChB,yBAAyB,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,YAAY,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC;CAC7D,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG;IACnB;QACE,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;YACtB,CAAC,UAAU,EAAE,WAAW,CAAC;YACzB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;YACrC,CAAC,eAAe,EAAE,gBAAgB,CAAC;YACnC,CAAC,QAA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
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export declare const noDuplicateClasses: {
|
|
2
|
+
category: "stylistic";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly duplicate: "Duplicate classname: \"{{ className }}\".";
|
|
5
|
+
} | undefined;
|
|
6
|
+
name: "no-duplicate-classes";
|
|
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: true;
|
|
204
|
+
rule: {
|
|
205
|
+
create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
|
|
206
|
+
meta: {
|
|
207
|
+
messages?: {
|
|
208
|
+
readonly duplicate: "Duplicate classname: \"{{ 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=no-duplicate-classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-duplicate-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-duplicate-classes.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { lintClasses } from "../utils/lint.js";
|
|
2
|
+
import { createRule } from "../utils/rule.js";
|
|
3
|
+
import { isClassSticky, splitClasses } from "../utils/utils.js";
|
|
4
|
+
export const noDuplicateClasses = createRule({
|
|
5
|
+
autofix: true,
|
|
6
|
+
category: "stylistic",
|
|
7
|
+
description: "Disallow duplicate class names in tailwind classes.",
|
|
8
|
+
docs: "https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-duplicate-classes.md",
|
|
9
|
+
name: "no-duplicate-classes",
|
|
10
|
+
recommended: true,
|
|
11
|
+
messages: {
|
|
12
|
+
duplicate: "Duplicate classname: \"{{ className }}\"."
|
|
13
|
+
},
|
|
14
|
+
lintLiterals: (ctx, literals) => lintLiterals(ctx, literals)
|
|
15
|
+
});
|
|
16
|
+
function lintLiterals(ctx, literals) {
|
|
17
|
+
for (const literal of literals) {
|
|
18
|
+
const parentClasses = literal.priorLiterals
|
|
19
|
+
? getClassesFromLiteralNodes(literal.priorLiterals)
|
|
20
|
+
: [];
|
|
21
|
+
lintClasses(ctx, literal, (className, index, _, after) => {
|
|
22
|
+
const duplicateClassIndex = after.findIndex((afterClass, afterIndex) => afterClass === className && afterIndex < index);
|
|
23
|
+
// always keep sticky classes
|
|
24
|
+
if (isClassSticky(literal, index) || isClassSticky(literal, duplicateClassIndex)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (parentClasses.includes(className) || duplicateClassIndex !== -1) {
|
|
28
|
+
return {
|
|
29
|
+
data: { className },
|
|
30
|
+
fix: "",
|
|
31
|
+
id: "duplicate"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function getClassesFromLiteralNodes(literals) {
|
|
38
|
+
return literals.reduce((combinedClasses, literal) => {
|
|
39
|
+
if (!literal) {
|
|
40
|
+
return combinedClasses;
|
|
41
|
+
}
|
|
42
|
+
const classes = literal.content;
|
|
43
|
+
const split = splitClasses(classes);
|
|
44
|
+
for (const className of split) {
|
|
45
|
+
if (!combinedClasses.includes(className)) {
|
|
46
|
+
combinedClasses.push(className);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return combinedClasses;
|
|
50
|
+
}, []);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=no-duplicate-classes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-duplicate-classes.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-classes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAMhF,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,qDAAqD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