@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 noRestrictedClasses: {
|
|
2
|
+
category: "correctness";
|
|
3
|
+
messages: Record<string, string> | undefined;
|
|
4
|
+
name: "no-restricted-classes";
|
|
5
|
+
readonly options: {
|
|
6
|
+
cwd?: string | undefined;
|
|
7
|
+
rootFontSize?: number | undefined;
|
|
8
|
+
detectComponentClasses: boolean;
|
|
9
|
+
tsconfig?: string | undefined;
|
|
10
|
+
tailwindConfig?: string | undefined;
|
|
11
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
12
|
+
entryPoint?: string | undefined;
|
|
13
|
+
tags?: (string | [string, ({
|
|
14
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
15
|
+
} | {
|
|
16
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
17
|
+
pathPattern?: string | undefined;
|
|
18
|
+
} | {
|
|
19
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
20
|
+
pathPattern?: string | undefined;
|
|
21
|
+
})[]])[] | undefined;
|
|
22
|
+
variables?: (string | [string, ({
|
|
23
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
24
|
+
} | {
|
|
25
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
26
|
+
pathPattern?: string | undefined;
|
|
27
|
+
} | {
|
|
28
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
29
|
+
pathPattern?: string | undefined;
|
|
30
|
+
})[]])[] | undefined;
|
|
31
|
+
attributes?: (string | [string, ({
|
|
32
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
33
|
+
} | {
|
|
34
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
35
|
+
pathPattern?: string | undefined;
|
|
36
|
+
} | {
|
|
37
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
38
|
+
pathPattern?: string | undefined;
|
|
39
|
+
})[]])[] | undefined;
|
|
40
|
+
callees?: (string | [string, ({
|
|
41
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
42
|
+
} | {
|
|
43
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
44
|
+
pathPattern?: string | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
47
|
+
pathPattern?: string | undefined;
|
|
48
|
+
})[]])[] | undefined;
|
|
49
|
+
selectors: ({
|
|
50
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
51
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
52
|
+
match?: ({
|
|
53
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
54
|
+
} | {
|
|
55
|
+
path?: string | undefined;
|
|
56
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
57
|
+
} | {
|
|
58
|
+
path?: string | undefined;
|
|
59
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
60
|
+
} | {
|
|
61
|
+
match: ({
|
|
62
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
63
|
+
} | {
|
|
64
|
+
path?: string | undefined;
|
|
65
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
66
|
+
} | {
|
|
67
|
+
path?: string | undefined;
|
|
68
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
69
|
+
})[];
|
|
70
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
71
|
+
})[] | undefined;
|
|
72
|
+
name: string;
|
|
73
|
+
path?: string | undefined;
|
|
74
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
75
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
78
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
79
|
+
match?: ({
|
|
80
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
81
|
+
} | {
|
|
82
|
+
path?: string | undefined;
|
|
83
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
84
|
+
} | {
|
|
85
|
+
path?: string | undefined;
|
|
86
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
87
|
+
} | {
|
|
88
|
+
match: ({
|
|
89
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
90
|
+
} | {
|
|
91
|
+
path?: string | undefined;
|
|
92
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
93
|
+
} | {
|
|
94
|
+
path?: string | undefined;
|
|
95
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
96
|
+
})[];
|
|
97
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
98
|
+
})[] | undefined;
|
|
99
|
+
name?: string | undefined;
|
|
100
|
+
path: string;
|
|
101
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
102
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
105
|
+
match?: ({
|
|
106
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
107
|
+
} | {
|
|
108
|
+
path?: string | undefined;
|
|
109
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
110
|
+
} | {
|
|
111
|
+
path?: string | undefined;
|
|
112
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
113
|
+
} | {
|
|
114
|
+
match: ({
|
|
115
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
116
|
+
} | {
|
|
117
|
+
path?: string | undefined;
|
|
118
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
119
|
+
} | {
|
|
120
|
+
path?: string | undefined;
|
|
121
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
122
|
+
})[];
|
|
123
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
124
|
+
})[] | undefined;
|
|
125
|
+
name: string;
|
|
126
|
+
path?: string | undefined;
|
|
127
|
+
} | {
|
|
128
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
129
|
+
match?: ({
|
|
130
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
131
|
+
} | {
|
|
132
|
+
path?: string | undefined;
|
|
133
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
134
|
+
} | {
|
|
135
|
+
path?: string | undefined;
|
|
136
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
137
|
+
} | {
|
|
138
|
+
match: ({
|
|
139
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
140
|
+
} | {
|
|
141
|
+
path?: string | undefined;
|
|
142
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
143
|
+
} | {
|
|
144
|
+
path?: string | undefined;
|
|
145
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
146
|
+
})[];
|
|
147
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
148
|
+
})[] | undefined;
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
path: string;
|
|
151
|
+
} | {
|
|
152
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
153
|
+
match?: ({
|
|
154
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
155
|
+
} | {
|
|
156
|
+
path?: string | undefined;
|
|
157
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
158
|
+
} | {
|
|
159
|
+
path?: string | undefined;
|
|
160
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
161
|
+
} | {
|
|
162
|
+
match: ({
|
|
163
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
164
|
+
} | {
|
|
165
|
+
path?: string | undefined;
|
|
166
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
167
|
+
} | {
|
|
168
|
+
path?: string | undefined;
|
|
169
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
170
|
+
})[];
|
|
171
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
172
|
+
})[] | undefined;
|
|
173
|
+
name: string;
|
|
174
|
+
} | {
|
|
175
|
+
kind: import("../types/rule.js").SelectorKind.Variable;
|
|
176
|
+
match?: ({
|
|
177
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
178
|
+
} | {
|
|
179
|
+
path?: string | undefined;
|
|
180
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
181
|
+
} | {
|
|
182
|
+
path?: string | undefined;
|
|
183
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
184
|
+
} | {
|
|
185
|
+
match: ({
|
|
186
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
187
|
+
} | {
|
|
188
|
+
path?: string | undefined;
|
|
189
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
190
|
+
} | {
|
|
191
|
+
path?: string | undefined;
|
|
192
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
193
|
+
})[];
|
|
194
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
195
|
+
})[] | undefined;
|
|
196
|
+
name: string;
|
|
197
|
+
})[];
|
|
198
|
+
} & {
|
|
199
|
+
restrict: (string | {
|
|
200
|
+
fix?: string | undefined;
|
|
201
|
+
message?: string | undefined;
|
|
202
|
+
pattern: string;
|
|
203
|
+
})[];
|
|
204
|
+
};
|
|
205
|
+
recommended: false;
|
|
206
|
+
rule: {
|
|
207
|
+
create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
|
|
208
|
+
meta: {
|
|
209
|
+
messages?: Record<string, string>;
|
|
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-restricted-classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-restricted-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-restricted-classes.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { array, description, optional, pipe, strictObject, string, union } from "valibot";
|
|
2
|
+
import { lintClasses } from "../utils/lint.js";
|
|
3
|
+
import { createRule } from "../utils/rule.js";
|
|
4
|
+
import { replacePlaceholders } from "../utils/utils.js";
|
|
5
|
+
export const noRestrictedClasses = createRule({
|
|
6
|
+
autofix: true,
|
|
7
|
+
category: "correctness",
|
|
8
|
+
description: "Disallow restricted classes.",
|
|
9
|
+
docs: "https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-restricted-classes.md",
|
|
10
|
+
name: "no-restricted-classes",
|
|
11
|
+
recommended: false,
|
|
12
|
+
schema: strictObject({
|
|
13
|
+
restrict: optional(array(union([
|
|
14
|
+
strictObject({
|
|
15
|
+
fix: optional(pipe(string(), description("A replacement class"))),
|
|
16
|
+
message: optional(pipe(string(), description("The message to report when a class is restricted."))),
|
|
17
|
+
pattern: pipe(string(), description("The regex pattern to match restricted classes."))
|
|
18
|
+
}),
|
|
19
|
+
string()
|
|
20
|
+
])), [])
|
|
21
|
+
}),
|
|
22
|
+
lintLiterals: (ctx, literals) => lintLiterals(ctx, literals)
|
|
23
|
+
});
|
|
24
|
+
function lintLiterals(ctx, literals) {
|
|
25
|
+
const { restrict: restrictions } = ctx.options;
|
|
26
|
+
for (const literal of literals) {
|
|
27
|
+
lintClasses(ctx, literal, className => {
|
|
28
|
+
for (const restriction of restrictions) {
|
|
29
|
+
const pattern = typeof restriction === "string"
|
|
30
|
+
? restriction
|
|
31
|
+
: restriction.pattern;
|
|
32
|
+
const matches = className.match(pattern);
|
|
33
|
+
if (!matches) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const message = typeof restriction === "string" || !restriction.message
|
|
37
|
+
? `Restricted class: "${className}".`
|
|
38
|
+
: replacePlaceholders(restriction.message, matches);
|
|
39
|
+
if (typeof restriction === "string") {
|
|
40
|
+
return {
|
|
41
|
+
message
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
if (restriction.fix !== undefined) {
|
|
45
|
+
return {
|
|
46
|
+
fix: replacePlaceholders(restriction.fix, matches),
|
|
47
|
+
message
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
message
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=no-restricted-classes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-restricted-classes.js","sourceRoot":"","sources":["../../src/rules/no-restricted-classes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAMxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;IAC5C,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,8BAA8B;IAC3C,IAAI,EAAE,2GAA2G;IACjH,IAAI,EAAE,uBAAu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I;oBACrC,CAAC,CAAC,mBAAmB,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAEtD,IAAG,OAAO,WAAW,KAAK,QAAQ,EAAC,CAAC;oBAClC,OAAO;wBACL,OAAO;qBACC,CAAC;gBACb,CAAC;gBAED,IAAG,WAAW,CAAC,GAAG,KAAK,SAAS,EAAC,CAAC;oBAChC,OAAO;wBACL,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC;wBAClD,OAAO;qBACC,CAAC;gBACb,CAAC;gBAED,OAAO;oBACL,OAAO;iBACC,CAAC;YACb,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export declare const noUnknownClasses: {
|
|
2
|
+
category: "correctness";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly unknown: "Unknown class detected: {{ className }}";
|
|
5
|
+
} | undefined;
|
|
6
|
+
name: "no-unknown-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
|
+
ignore: string[];
|
|
202
|
+
};
|
|
203
|
+
recommended: true;
|
|
204
|
+
rule: {
|
|
205
|
+
create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
|
|
206
|
+
meta: {
|
|
207
|
+
messages?: {
|
|
208
|
+
readonly unknown: "Unknown class detected: {{ 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-unknown-classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unknown-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-unknown-classes.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3B,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { array, description, optional, pipe, strictObject, string } from "valibot";
|
|
2
|
+
import { createGetCustomComponentClasses, getCustomComponentClasses } from "../tailwindcss/custom-component-classes.js";
|
|
3
|
+
import { createGetPrefix, getPrefix } from "../tailwindcss/prefix.js";
|
|
4
|
+
import { createGetUnknownClasses, getUnknownClasses } from "../tailwindcss/unknown-classes.js";
|
|
5
|
+
import { async } from "../utils/context.js";
|
|
6
|
+
import { escapeForRegex } from "../async-utils/escape.js";
|
|
7
|
+
import { lintClasses } from "../utils/lint.js";
|
|
8
|
+
import { getCachedRegex } from "../async-utils/regex.js";
|
|
9
|
+
import { createRule } from "../utils/rule.js";
|
|
10
|
+
import { isConcatenatedLeft, isConcatenatedRight, splitClasses } from "../utils/utils.js";
|
|
11
|
+
export const noUnknownClasses = createRule({
|
|
12
|
+
autofix: true,
|
|
13
|
+
category: "correctness",
|
|
14
|
+
description: "Disallow any css classes that are not registered in tailwindcss.",
|
|
15
|
+
docs: "https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unknown-classes.md",
|
|
16
|
+
name: "no-unknown-classes",
|
|
17
|
+
recommended: true,
|
|
18
|
+
messages: {
|
|
19
|
+
unknown: "Unknown class detected: {{ className }}"
|
|
20
|
+
},
|
|
21
|
+
schema: strictObject({
|
|
22
|
+
ignore: optional(pipe(array(string()), description("A list of regular expression patterns for classes that should be ignored by the rule.")), [])
|
|
23
|
+
}),
|
|
24
|
+
initialize: ctx => {
|
|
25
|
+
const { detectComponentClasses } = ctx.options;
|
|
26
|
+
createGetPrefix(ctx);
|
|
27
|
+
createGetUnknownClasses(ctx);
|
|
28
|
+
if (detectComponentClasses) {
|
|
29
|
+
createGetCustomComponentClasses(ctx);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
lintLiterals: (ctx, literals) => lintLiterals(ctx, literals)
|
|
33
|
+
});
|
|
34
|
+
function lintLiterals(ctx, literals) {
|
|
35
|
+
const { ignore } = ctx.options;
|
|
36
|
+
const asyncCtx = async(ctx);
|
|
37
|
+
const { prefix, suffix } = getPrefix(asyncCtx);
|
|
38
|
+
const ignoredGroups = getCachedRegex(`^${escapeForRegex(`${prefix}${suffix}`)}group(?:\\/(\\S*))?$`);
|
|
39
|
+
const ignoredPeers = getCachedRegex(`^${escapeForRegex(`${prefix}${suffix}`)}peer(?:\\/(\\S*))?$`);
|
|
40
|
+
const customComponentClassRegexes = getCustomComponentClassRegexes(ctx, asyncCtx);
|
|
41
|
+
for (const literal of literals) {
|
|
42
|
+
const classes = splitClasses(literal.content);
|
|
43
|
+
const { unknownClasses, warnings } = getUnknownClasses(asyncCtx, classes);
|
|
44
|
+
if (unknownClasses.length === 0) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
lintClasses(ctx, literal, (className, classIndex) => {
|
|
48
|
+
const isFirstClass = classIndex === 0;
|
|
49
|
+
const isLastClass = classIndex === classes.length - 1;
|
|
50
|
+
if (isFirstClass && isConcatenatedLeft(literal) ||
|
|
51
|
+
isLastClass && isConcatenatedRight(literal)) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (!unknownClasses.includes(className)) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (ignore.some(ignoredClass => getCachedRegex(ignoredClass).test(className)) ||
|
|
58
|
+
customComponentClassRegexes?.some(customComponentClassesRegex => customComponentClassesRegex.test(className)) ||
|
|
59
|
+
ignoredGroups.test(className) ||
|
|
60
|
+
ignoredPeers.test(className)) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
data: {
|
|
65
|
+
className
|
|
66
|
+
},
|
|
67
|
+
id: "unknown",
|
|
68
|
+
warnings
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function getCustomComponentClassRegexes(ctx, asyncCtx) {
|
|
74
|
+
const { detectComponentClasses } = ctx.options;
|
|
75
|
+
if (!detectComponentClasses) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const { customComponentClasses } = getCustomComponentClasses(asyncCtx);
|
|
79
|
+
const { prefix, suffix } = getPrefix(asyncCtx);
|
|
80
|
+
return customComponentClasses.map(className => getCachedRegex(`^${escapeForRegex(`${prefix}${suffix}`)}(?:.*:)?${escapeForRegex(className)}$`));
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=no-unknown-classes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unknown-classes.js","sourceRoot":"","sources":["../../src/rules/no-unknown-classes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEnF,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EAC1B,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,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,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAO1G,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACzC,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,wGAAwG;IAC9G,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,IAAI;IAEjB,QAAQ,EAAE;QACR,OAAO,EAAE,yCAAyC;KACnD;IAED,MAAM,EAAE,YAAY,CAAC;QACnB,MAAM,EAAE,QAAQ,CACd,IAAI,CACF,KAAK,CACH,MAAM,EAAE,CACT,EACD,WAAW,CAAC,uFAAuF,CAAC,CACrG,EACD,EAAE,CACH;K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