@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 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/options/schemas/selectors.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAE7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA8K3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAK1B,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAG5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAElC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { array, description, literal, number, optional, pipe, strictObject, string, union } from "valibot";
|
|
2
|
+
import { DEFAULT_SELECTORS } from "../default-options.js";
|
|
3
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
4
|
+
const STRING_SELECTOR_MATCHER_SCHEMA = strictObject({
|
|
5
|
+
type: pipe(literal(MatcherType.String), description("Matcher type that will be applied."))
|
|
6
|
+
});
|
|
7
|
+
const OBJECT_KEY_SELECTOR_MATCHER_SCHEMA = strictObject({
|
|
8
|
+
path: optional(pipe(string(), description("Regular expression that filters the object key and matches the content for further processing in a group."))),
|
|
9
|
+
type: pipe(literal(MatcherType.ObjectKey), description("Matcher type that will be applied."))
|
|
10
|
+
});
|
|
11
|
+
const OBJECT_VALUE_SELECTOR_MATCHER_SCHEMA = strictObject({
|
|
12
|
+
path: optional(pipe(string(), description("Regular expression that filters the object value and matches the content for further processing in a group."))),
|
|
13
|
+
type: pipe(literal(MatcherType.ObjectValue), description("Matcher type that will be applied."))
|
|
14
|
+
});
|
|
15
|
+
const ANONYMOUS_FUNCTION_RETURN_SELECTOR_MATCHER_SCHEMA = strictObject({
|
|
16
|
+
match: pipe(array(union([
|
|
17
|
+
STRING_SELECTOR_MATCHER_SCHEMA,
|
|
18
|
+
OBJECT_KEY_SELECTOR_MATCHER_SCHEMA,
|
|
19
|
+
OBJECT_VALUE_SELECTOR_MATCHER_SCHEMA
|
|
20
|
+
])), description("List of nested matchers that target the return value of anonymous functions.")),
|
|
21
|
+
type: pipe(literal(MatcherType.AnonymousFunctionReturn), description("Matcher type that will be applied."))
|
|
22
|
+
});
|
|
23
|
+
const SELECTOR_MATCH_SCHEMA = pipe(optional(array(union([
|
|
24
|
+
STRING_SELECTOR_MATCHER_SCHEMA,
|
|
25
|
+
OBJECT_KEY_SELECTOR_MATCHER_SCHEMA,
|
|
26
|
+
OBJECT_VALUE_SELECTOR_MATCHER_SCHEMA,
|
|
27
|
+
ANONYMOUS_FUNCTION_RETURN_SELECTOR_MATCHER_SCHEMA
|
|
28
|
+
]))), description("Optional list of matchers that will be applied."));
|
|
29
|
+
const SELECTOR_NAME_SCHEMA = pipe(string(), description("Regular expression for names that should be linted."));
|
|
30
|
+
const CALLEE_SELECTOR_PATH_SCHEMA = pipe(string(), description("Regular expression for callee paths that should be linted."));
|
|
31
|
+
const TAG_SELECTOR_PATH_SCHEMA = pipe(string(), description("Regular expression for tag paths that should be linted."));
|
|
32
|
+
const CALLEE_SELECTOR_TARGET_VALUE_SCHEMA = optional(union([
|
|
33
|
+
literal("all"),
|
|
34
|
+
literal("first"),
|
|
35
|
+
literal("last"),
|
|
36
|
+
number()
|
|
37
|
+
]));
|
|
38
|
+
const CALLEE_SELECTOR_TARGET_ARGUMENT_SCHEMA = pipe(CALLEE_SELECTOR_TARGET_VALUE_SCHEMA, description("Optional argument target for call arguments: index, first, last, or all."));
|
|
39
|
+
const CALLEE_SELECTOR_TARGET_CALL_SCHEMA = pipe(CALLEE_SELECTOR_TARGET_VALUE_SCHEMA, description("Optional call target for curried callees: index, first, last, or all."));
|
|
40
|
+
const CALLEE_SELECTOR_LEGACY_CALL_TARGET_SCHEMA = pipe(optional(union([
|
|
41
|
+
literal("all"),
|
|
42
|
+
literal("first"),
|
|
43
|
+
literal("last"),
|
|
44
|
+
number()
|
|
45
|
+
])), description("Optional call target for curried callees: index, first, last, or all."));
|
|
46
|
+
const ATTRIBUTE_SELECTOR_SCHEMA = strictObject({
|
|
47
|
+
kind: pipe(literal(SelectorKind.Attribute), description("Selector kind that determines where matching is applied.")),
|
|
48
|
+
match: SELECTOR_MATCH_SCHEMA,
|
|
49
|
+
name: SELECTOR_NAME_SCHEMA
|
|
50
|
+
});
|
|
51
|
+
const CALLEE_SELECTOR_SCHEMA = union([
|
|
52
|
+
strictObject({
|
|
53
|
+
callTarget: CALLEE_SELECTOR_LEGACY_CALL_TARGET_SCHEMA,
|
|
54
|
+
kind: pipe(literal(SelectorKind.Callee), description("Selector kind that determines where matching is applied.")),
|
|
55
|
+
match: SELECTOR_MATCH_SCHEMA,
|
|
56
|
+
name: SELECTOR_NAME_SCHEMA,
|
|
57
|
+
path: optional(CALLEE_SELECTOR_PATH_SCHEMA),
|
|
58
|
+
targetArgument: CALLEE_SELECTOR_TARGET_ARGUMENT_SCHEMA,
|
|
59
|
+
targetCall: CALLEE_SELECTOR_TARGET_CALL_SCHEMA
|
|
60
|
+
}),
|
|
61
|
+
strictObject({
|
|
62
|
+
callTarget: CALLEE_SELECTOR_LEGACY_CALL_TARGET_SCHEMA,
|
|
63
|
+
kind: pipe(literal(SelectorKind.Callee), description("Selector kind that determines where matching is applied.")),
|
|
64
|
+
match: SELECTOR_MATCH_SCHEMA,
|
|
65
|
+
name: optional(SELECTOR_NAME_SCHEMA),
|
|
66
|
+
path: CALLEE_SELECTOR_PATH_SCHEMA,
|
|
67
|
+
targetArgument: CALLEE_SELECTOR_TARGET_ARGUMENT_SCHEMA,
|
|
68
|
+
targetCall: CALLEE_SELECTOR_TARGET_CALL_SCHEMA
|
|
69
|
+
})
|
|
70
|
+
]);
|
|
71
|
+
const TAG_SELECTOR_SCHEMA = union([
|
|
72
|
+
strictObject({
|
|
73
|
+
kind: pipe(literal(SelectorKind.Tag), description("Selector kind that determines where matching is applied.")),
|
|
74
|
+
match: SELECTOR_MATCH_SCHEMA,
|
|
75
|
+
name: SELECTOR_NAME_SCHEMA,
|
|
76
|
+
path: optional(TAG_SELECTOR_PATH_SCHEMA)
|
|
77
|
+
}),
|
|
78
|
+
strictObject({
|
|
79
|
+
kind: pipe(literal(SelectorKind.Tag), description("Selector kind that determines where matching is applied.")),
|
|
80
|
+
match: SELECTOR_MATCH_SCHEMA,
|
|
81
|
+
name: optional(SELECTOR_NAME_SCHEMA),
|
|
82
|
+
path: TAG_SELECTOR_PATH_SCHEMA
|
|
83
|
+
})
|
|
84
|
+
]);
|
|
85
|
+
const VARIABLE_SELECTOR_SCHEMA = strictObject({
|
|
86
|
+
kind: pipe(literal(SelectorKind.Variable), description("Selector kind that determines where matching is applied.")),
|
|
87
|
+
match: SELECTOR_MATCH_SCHEMA,
|
|
88
|
+
name: SELECTOR_NAME_SCHEMA
|
|
89
|
+
});
|
|
90
|
+
export const SELECTOR_SCHEMA = union([
|
|
91
|
+
ATTRIBUTE_SELECTOR_SCHEMA,
|
|
92
|
+
CALLEE_SELECTOR_SCHEMA,
|
|
93
|
+
TAG_SELECTOR_SCHEMA,
|
|
94
|
+
VARIABLE_SELECTOR_SCHEMA
|
|
95
|
+
]);
|
|
96
|
+
export const SELECTORS_SCHEMA = pipe(array(SELECTOR_SCHEMA), description("Flat list of selectors that should get linted."));
|
|
97
|
+
export const SELECTORS_OPTION_SCHEMA = strictObject({
|
|
98
|
+
selectors: optional(SELECTORS_SCHEMA, DEFAULT_SELECTORS)
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../src/options/schemas/selectors.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { InferOutput } from "valibot";
|
|
2
|
+
declare const TAG_MATCHER_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
3
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
4
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
5
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
6
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
8
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
9
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
10
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
11
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
12
|
+
} | {
|
|
13
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
14
|
+
pathPattern?: string | undefined;
|
|
15
|
+
} | {
|
|
16
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
17
|
+
pathPattern?: string | undefined;
|
|
18
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
19
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
20
|
+
} | {
|
|
21
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
22
|
+
pathPattern?: string | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
25
|
+
pathPattern?: string | undefined;
|
|
26
|
+
})[]], "List of matchers that will automatically be matched.">]>;
|
|
27
|
+
export type TagMatchers = InferOutput<typeof TAG_MATCHER_CONFIG>;
|
|
28
|
+
declare const TAG_NAME_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>;
|
|
29
|
+
export type TagName = InferOutput<typeof TAG_NAME_CONFIG>;
|
|
30
|
+
export declare const TAGS_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
31
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
32
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
33
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
34
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
35
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
36
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
37
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
38
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
39
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
40
|
+
} | {
|
|
41
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
42
|
+
pathPattern?: string | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
45
|
+
pathPattern?: string | undefined;
|
|
46
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
47
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
48
|
+
} | {
|
|
49
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
50
|
+
pathPattern?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
53
|
+
pathPattern?: string | undefined;
|
|
54
|
+
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
55
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
56
|
+
} | {
|
|
57
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
58
|
+
pathPattern?: string | undefined;
|
|
59
|
+
} | {
|
|
60
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
61
|
+
pathPattern?: string | undefined;
|
|
62
|
+
})[]])[], "List of template literal tags that should get linted.">]>;
|
|
63
|
+
export type Tags = InferOutput<typeof TAGS_SCHEMA>;
|
|
64
|
+
export declare const TAGS_OPTIONS_SCHEMA: import("valibot").StrictObjectSchema<{
|
|
65
|
+
readonly tags: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
66
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
67
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
68
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
69
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
70
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
71
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
72
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
73
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
74
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
75
|
+
} | {
|
|
76
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
77
|
+
pathPattern?: string | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
80
|
+
pathPattern?: string | undefined;
|
|
81
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
82
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
83
|
+
} | {
|
|
84
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
85
|
+
pathPattern?: string | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
88
|
+
pathPattern?: string | undefined;
|
|
89
|
+
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
90
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
91
|
+
} | {
|
|
92
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
93
|
+
pathPattern?: string | undefined;
|
|
94
|
+
} | {
|
|
95
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
96
|
+
pathPattern?: string | undefined;
|
|
97
|
+
})[]])[], "List of template literal tags that should get linted.">]>, undefined>;
|
|
98
|
+
}, undefined>;
|
|
99
|
+
export type TagsOptions = InferOutput<typeof TAGS_OPTIONS_SCHEMA>;
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/options/schemas/tags.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;gEAkBvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,QAAA,MAAM,eAAe,qLAGpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAQvB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAE9B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { array, description, optional, pipe, strictObject, string, tuple, union } from "valibot";
|
|
2
|
+
import { OBJECT_KEY_MATCHER_SCHEMA, OBJECT_VALUE_MATCHER_SCHEMA, STRING_MATCHER_SCHEMA } from "../schemas/matchers.js";
|
|
3
|
+
const TAG_MATCHER_CONFIG = pipe(tuple([
|
|
4
|
+
pipe(string(), description("Template literal tag for which children get linted if matched.")),
|
|
5
|
+
pipe(array(union([
|
|
6
|
+
STRING_MATCHER_SCHEMA,
|
|
7
|
+
OBJECT_KEY_MATCHER_SCHEMA,
|
|
8
|
+
OBJECT_VALUE_MATCHER_SCHEMA
|
|
9
|
+
])), description("List of matchers that will be applied."))
|
|
10
|
+
]), description("List of matchers that will automatically be matched."));
|
|
11
|
+
const TAG_NAME_CONFIG = pipe(string(), description("Template literal tag that should get linted."));
|
|
12
|
+
export const TAGS_SCHEMA = pipe(array(union([
|
|
13
|
+
TAG_MATCHER_CONFIG,
|
|
14
|
+
TAG_NAME_CONFIG
|
|
15
|
+
])), description("List of template literal tags that should get linted."));
|
|
16
|
+
export const TAGS_OPTIONS_SCHEMA = strictObject({
|
|
17
|
+
tags: optional(TAGS_SCHEMA)
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../src/options/schemas/tags.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,KAAK,EACL,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,gDAAgD,CAAC;AAKxD,MAAM,kBAAkB,GAAG,IAAI,CAC7B,KAAK,CAAC;IACJ,IAAI,CACF,MAAM,EAAE,EACR,WAAW,CAAC,gEAAgE,CAAC,CAC9E;IACD,IAAI,CACF,KAAK,CACH,KAAK,CAAC;QACJ,qBAAqB;QACrB,yBAAyB;QACzB,2BAA2B;KAC5B,CAAC,CACH,EACD,WAAW,CAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,WAAW,CAAC,sDAAsD,CAAC,CACpE,CAAC;AAIF,MAAM,eAAe,GAAG,IAAI,CAC1B,MAAM,EAAE,EACR,WAAW,CAAC,8CAA8C,CAAC,CAC5D,CAAC;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAC7B,KAAK,CACH,KAAK,CAAC;IACJ,kBAAkB;IAClB,eAAe;CAChB,CAAC,CACH,EACD,WAAW,CAAC,uDAAuD,CAAC,CACrE,CAAC;AAIF,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC9C,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { InferOutput } from "valibot";
|
|
2
|
+
export declare const VARIABLE_MATCHER_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
3
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
4
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
5
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
6
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
8
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
9
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
10
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
11
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
12
|
+
} | {
|
|
13
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
14
|
+
pathPattern?: string | undefined;
|
|
15
|
+
} | {
|
|
16
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
17
|
+
pathPattern?: string | undefined;
|
|
18
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
19
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
20
|
+
} | {
|
|
21
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
22
|
+
pathPattern?: string | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
25
|
+
pathPattern?: string | undefined;
|
|
26
|
+
})[]], "List of matchers that will automatically be matched.">]>;
|
|
27
|
+
export type VariableMatchers = InferOutput<typeof VARIABLE_MATCHER_CONFIG>;
|
|
28
|
+
export declare const VARIABLE_NAME_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>;
|
|
29
|
+
export type VariableName = InferOutput<typeof VARIABLE_NAME_CONFIG>;
|
|
30
|
+
export declare const VARIABLES_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
31
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
32
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
33
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
34
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
35
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
36
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
37
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
38
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
39
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
40
|
+
} | {
|
|
41
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
42
|
+
pathPattern?: string | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
45
|
+
pathPattern?: string | undefined;
|
|
46
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
47
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
48
|
+
} | {
|
|
49
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
50
|
+
pathPattern?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
53
|
+
pathPattern?: string | undefined;
|
|
54
|
+
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
55
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
56
|
+
} | {
|
|
57
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
58
|
+
pathPattern?: string | undefined;
|
|
59
|
+
} | {
|
|
60
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
61
|
+
pathPattern?: string | undefined;
|
|
62
|
+
})[]])[], "List of variable names which values should get linted.">]>;
|
|
63
|
+
export type Variables = InferOutput<typeof VARIABLES_SCHEMA>;
|
|
64
|
+
export declare const VARIABLES_OPTION_SCHEMA: import("valibot").StrictObjectSchema<{
|
|
65
|
+
readonly variables: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
66
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
67
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
68
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
69
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
|
|
70
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
71
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
72
|
+
readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
|
|
73
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
74
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
75
|
+
} | {
|
|
76
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
77
|
+
pathPattern?: string | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
80
|
+
pathPattern?: string | undefined;
|
|
81
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
82
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
83
|
+
} | {
|
|
84
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
85
|
+
pathPattern?: string | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
88
|
+
pathPattern?: string | undefined;
|
|
89
|
+
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
90
|
+
match: import("../../types/rule.js").MatcherType.String;
|
|
91
|
+
} | {
|
|
92
|
+
match: import("../../types/rule.js").MatcherType.ObjectKey;
|
|
93
|
+
pathPattern?: string | undefined;
|
|
94
|
+
} | {
|
|
95
|
+
match: import("../../types/rule.js").MatcherType.ObjectValue;
|
|
96
|
+
pathPattern?: string | undefined;
|
|
97
|
+
})[]])[], "List of variable names which values should get linted.">]>, undefined>;
|
|
98
|
+
}, undefined>;
|
|
99
|
+
export type VariablesOptions = InferOutput<typeof VARIABLES_OPTION_SCHEMA>;
|
|
100
|
+
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/options/schemas/variables.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;gEAkBnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,oBAAoB,qLAGhC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEpE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAQ5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAElC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { array, description, optional, pipe, strictObject, string, tuple, union } from "valibot";
|
|
2
|
+
import { OBJECT_KEY_MATCHER_SCHEMA, OBJECT_VALUE_MATCHER_SCHEMA, STRING_MATCHER_SCHEMA } from "../schemas/matchers.js";
|
|
3
|
+
export const VARIABLE_MATCHER_CONFIG = pipe(tuple([
|
|
4
|
+
pipe(string(), description("Variable name for which children get linted if matched.")),
|
|
5
|
+
pipe(array(union([
|
|
6
|
+
STRING_MATCHER_SCHEMA,
|
|
7
|
+
OBJECT_KEY_MATCHER_SCHEMA,
|
|
8
|
+
OBJECT_VALUE_MATCHER_SCHEMA
|
|
9
|
+
])), description("List of matchers that will be applied."))
|
|
10
|
+
]), description("List of matchers that will automatically be matched."));
|
|
11
|
+
export const VARIABLE_NAME_CONFIG = pipe(string(), description("Variable name for which children get linted."));
|
|
12
|
+
export const VARIABLES_SCHEMA = pipe(array(union([
|
|
13
|
+
VARIABLE_MATCHER_CONFIG,
|
|
14
|
+
VARIABLE_NAME_CONFIG
|
|
15
|
+
])), description("List of variable names which values should get linted."));
|
|
16
|
+
export const VARIABLES_OPTION_SCHEMA = strictObject({
|
|
17
|
+
variables: optional(VARIABLES_SCHEMA)
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../src/options/schemas/variables.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,KAAK,EACL,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,gDAAgD,CAAC;AAKxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CACzC,KAAK,CAAC;IACJ,IAAI,CACF,MAAM,EAAE,EACR,WAAW,CAAC,yDAAyD,CAAC,CACvE;IACD,IAAI,CACF,KAAK,CACH,KAAK,CAAC;QACJ,qBAAqB;QACrB,yBAAyB;QACzB,2BAA2B;KAC5B,CAAC,CACH,EACD,WAAW,CAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,WAAW,CAAC,sDAAsD,CAAC,CACpE,CAAC;AAIF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CACtC,MAAM,EAAE,EACR,WAAW,CAAC,8CAA8C,CAAC,CAC5D,CAAC;AAIF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAClC,KAAK,CACH,KAAK,CAAC;IACJ,uBAAuB;IACvB,oBAAoB;CACrB,CAAC,CACH,EACD,WAAW,CAAC,wDAAwD,CAAC,CACtE,CAAC;AAIF,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC;IAClD,SAAS,EAAE,QAAQ,CAAC,gBAAgB,CAAC;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export declare const TWC_TAG: {
|
|
3
|
+
kind: SelectorKind.Tag;
|
|
4
|
+
path: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const TWC_CALLEE_STRINGS: {
|
|
7
|
+
kind: SelectorKind.Callee;
|
|
8
|
+
match: ({
|
|
9
|
+
type: MatcherType.String;
|
|
10
|
+
match?: never;
|
|
11
|
+
} | {
|
|
12
|
+
match: {
|
|
13
|
+
type: MatcherType.String;
|
|
14
|
+
}[];
|
|
15
|
+
type: MatcherType.AnonymousFunctionReturn;
|
|
16
|
+
})[];
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
/** @see https://github.com/gregberge/twc */
|
|
20
|
+
export declare const TWC: ({
|
|
21
|
+
kind: SelectorKind.Tag;
|
|
22
|
+
path: string;
|
|
23
|
+
} | {
|
|
24
|
+
kind: SelectorKind.Callee;
|
|
25
|
+
match: ({
|
|
26
|
+
type: MatcherType.String;
|
|
27
|
+
match?: never;
|
|
28
|
+
} | {
|
|
29
|
+
match: {
|
|
30
|
+
type: MatcherType.String;
|
|
31
|
+
}[];
|
|
32
|
+
type: MatcherType.AnonymousFunctionReturn;
|
|
33
|
+
})[];
|
|
34
|
+
path: string;
|
|
35
|
+
})[];
|
|
36
|
+
//# sourceMappingURL=twc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twc.d.ts","sourceRoot":"","sources":["../../../src/options/tags/twc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,eAAO,MAAM,OAAO;;;CAGG,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAcL,CAAC;AAE3B,4CAA4C;AAC5C,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;IAGK,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export const TWC_TAG = {
|
|
3
|
+
kind: SelectorKind.Tag,
|
|
4
|
+
path: "twc(\\.\\w+)?"
|
|
5
|
+
};
|
|
6
|
+
export const TWC_CALLEE_STRINGS = {
|
|
7
|
+
kind: SelectorKind.Callee,
|
|
8
|
+
match: [
|
|
9
|
+
{
|
|
10
|
+
type: MatcherType.String
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
match: [{
|
|
14
|
+
type: MatcherType.String
|
|
15
|
+
}],
|
|
16
|
+
type: MatcherType.AnonymousFunctionReturn
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
path: "^twc\\.\\w+"
|
|
20
|
+
};
|
|
21
|
+
/** @see https://github.com/gregberge/twc */
|
|
22
|
+
export const TWC = [
|
|
23
|
+
TWC_TAG,
|
|
24
|
+
TWC_CALLEE_STRINGS
|
|
25
|
+
];
|
|
26
|
+
//# sourceMappingURL=twc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twc.js","sourceRoot":"","sources":["../../../src/options/tags/twc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC,GAAG;IACtB,IAAI,EAAE,eAAe;CACA,CAAC;AAExB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,MAAM;SACzB;QACD;YACE,KAAK,EAAE,CAAC;oBACN,IAAI,EAAE,WAAW,CAAC,MAAM;iBACzB,CAAC;YACF,IAAI,EAAE,WAAW,CAAC,uBAAuB;SAC1C;KACF;IACD,IAAI,EAAE,aAAa;CACK,CAAC;AAE3B,4CAA4C;AAC5C,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,OAAO;IACP,kBAAkB;CACC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export declare const TWX_TAG: {
|
|
3
|
+
kind: SelectorKind.Tag;
|
|
4
|
+
path: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const TWX_CALLEE_STRINGS: {
|
|
7
|
+
kind: SelectorKind.Callee;
|
|
8
|
+
match: ({
|
|
9
|
+
type: MatcherType.String;
|
|
10
|
+
match?: never;
|
|
11
|
+
} | {
|
|
12
|
+
match: {
|
|
13
|
+
type: MatcherType.String;
|
|
14
|
+
}[];
|
|
15
|
+
type: MatcherType.AnonymousFunctionReturn;
|
|
16
|
+
})[];
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
/** @see https://github.com/gregberge/twc */
|
|
20
|
+
export declare const TWX: ({
|
|
21
|
+
kind: SelectorKind.Tag;
|
|
22
|
+
path: string;
|
|
23
|
+
} | {
|
|
24
|
+
kind: SelectorKind.Callee;
|
|
25
|
+
match: ({
|
|
26
|
+
type: MatcherType.String;
|
|
27
|
+
match?: never;
|
|
28
|
+
} | {
|
|
29
|
+
match: {
|
|
30
|
+
type: MatcherType.String;
|
|
31
|
+
}[];
|
|
32
|
+
type: MatcherType.AnonymousFunctionReturn;
|
|
33
|
+
})[];
|
|
34
|
+
path: string;
|
|
35
|
+
})[];
|
|
36
|
+
//# sourceMappingURL=twx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twx.d.ts","sourceRoot":"","sources":["../../../src/options/tags/twx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,eAAO,MAAM,OAAO;;;CAGG,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAcL,CAAC;AAE3B,4CAA4C;AAC5C,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;IAGK,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MatcherType, SelectorKind } from "../../types/rule.js";
|
|
2
|
+
export const TWX_TAG = {
|
|
3
|
+
kind: SelectorKind.Tag,
|
|
4
|
+
path: "twx(\\.\\w+)?"
|
|
5
|
+
};
|
|
6
|
+
export const TWX_CALLEE_STRINGS = {
|
|
7
|
+
kind: SelectorKind.Callee,
|
|
8
|
+
match: [
|
|
9
|
+
{
|
|
10
|
+
type: MatcherType.String
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
match: [{
|
|
14
|
+
type: MatcherType.String
|
|
15
|
+
}],
|
|
16
|
+
type: MatcherType.AnonymousFunctionReturn
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
path: "^twx\\.\\w+"
|
|
20
|
+
};
|
|
21
|
+
/** @see https://github.com/gregberge/twc */
|
|
22
|
+
export const TWX = [
|
|
23
|
+
TWX_TAG,
|
|
24
|
+
TWX_CALLEE_STRINGS
|
|
25
|
+
];
|
|
26
|
+
//# sourceMappingURL=twx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twx.js","sourceRoot":"","sources":["../../../src/options/tags/twx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC,GAAG;IACtB,IAAI,EAAE,eAAe;CACA,CAAC;AAExB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,YAAY,CAAC,MAAM;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW,CAAC,MAAM;SACzB;QACD;YACE,KAAK,EAAE,CAAC;oBACN,IAAI,EAAE,WAAW,CAAC,MAAM;iBACzB,CAAC;YACF,IAAI,EAAE,WAAW,CAAC,uBAAuB;SAC1C;KACF;IACD,IAAI,EAAE,aAAa;CACK,CAAC;AAE3B,4CAA4C;AAC5C,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,OAAO;IACP,kBAAkB;CACC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AST, TmplAstBoundAttribute, TmplAstElement, TmplAstTextAttribute } from "@angular/compiler";
|
|
2
|
+
import type { Rule } from "eslint";
|
|
3
|
+
import type { Literal } from "../types/ast.js";
|
|
4
|
+
import type { AttributeSelector } from "../types/rule.js";
|
|
5
|
+
export declare function getAttributesByAngularElement(ctx: Rule.RuleContext, node: TmplAstElement): (TmplAstBoundAttribute | TmplAstTextAttribute)[];
|
|
6
|
+
export declare function getLiteralsByAngularAttribute(ctx: Rule.RuleContext, attribute: TmplAstBoundAttribute | TmplAstTextAttribute, selectors: AttributeSelector[]): Literal[];
|
|
7
|
+
export type Parent = {
|
|
8
|
+
parent: AST;
|
|
9
|
+
};
|
|
10
|
+
export declare function isAST(ast: unknown): ast is AST;
|
|
11
|
+
//# sourceMappingURL=angular.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../src/parsers/angular.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,GAAG,EAcH,qBAAqB,EACrB,cAAc,EAEd,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,KAAK,EAAc,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAqC,MAAM,kCAAkC,CAAC;AAK7G,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,cAAc,GAAG,CAAC,qBAAqB,GAAG,oBAAoB,CAAC,EAAE,CAK3I;AAED,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,qBAAqB,GAAG,oBAAoB,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,OAAO,EAAE,CA6BvK;AAkeD,MAAM,MAAM,MAAM,GAAG;IACnB,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AAgWF,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,GAAG,CAE9C"}
|