eslint-plugin-better-tailwindcss 3.7.9 → 4.0.0-beta.1
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/README.md +1 -1
- package/lib/cjs/api/defaults.d.ts +0 -1
- package/lib/cjs/api/defaults.d.ts.map +1 -1
- package/lib/cjs/api/defaults.js +0 -5
- package/lib/cjs/api/defaults.js.map +1 -1
- package/lib/cjs/async-utils/path.d.ts +2 -0
- package/lib/cjs/async-utils/path.d.ts.map +1 -0
- package/lib/cjs/async-utils/path.js +10 -0
- package/lib/cjs/async-utils/path.js.map +1 -0
- package/lib/cjs/async-utils/resolvers.d.ts +1 -1
- package/lib/cjs/async-utils/resolvers.d.ts.map +1 -1
- package/lib/cjs/async-utils/worker.d.ts.map +1 -1
- package/lib/cjs/async-utils/worker.js +7 -1
- package/lib/cjs/async-utils/worker.js.map +1 -1
- package/lib/cjs/configs/config.d.ts +5 -29
- package/lib/cjs/configs/config.d.ts.map +1 -1
- package/lib/cjs/configs/config.js +32 -28
- package/lib/cjs/configs/config.js.map +1 -1
- package/lib/cjs/options/default-options.d.ts.map +1 -1
- package/lib/cjs/options/default-options.js.map +1 -1
- package/lib/cjs/options/descriptions.d.ts +152 -66
- package/lib/cjs/options/descriptions.d.ts.map +1 -1
- package/lib/cjs/options/descriptions.js +16 -273
- package/lib/cjs/options/descriptions.js.map +1 -1
- package/lib/cjs/options/schemas/attributes.d.ts +104 -0
- package/lib/cjs/options/schemas/attributes.d.ts.map +1 -0
- package/lib/cjs/options/schemas/attributes.js +23 -0
- package/lib/cjs/options/schemas/attributes.js.map +1 -0
- package/lib/cjs/options/schemas/callees.d.ts +108 -0
- package/lib/cjs/options/schemas/callees.d.ts.map +1 -0
- package/lib/cjs/options/schemas/callees.js +23 -0
- package/lib/cjs/options/schemas/callees.js.map +1 -0
- package/lib/cjs/options/schemas/common.d.ts +14 -0
- package/lib/cjs/options/schemas/common.d.ts.map +1 -0
- package/lib/cjs/options/schemas/common.js +14 -0
- package/lib/cjs/options/schemas/common.js.map +1 -0
- package/lib/cjs/options/schemas/matchers.d.ts +13 -0
- package/lib/cjs/options/schemas/matchers.d.ts.map +1 -0
- package/lib/cjs/options/schemas/matchers.js +17 -0
- package/lib/cjs/options/schemas/matchers.js.map +1 -0
- package/lib/cjs/options/schemas/tags.d.ts +101 -0
- package/lib/cjs/options/schemas/tags.d.ts.map +1 -0
- package/lib/cjs/options/schemas/tags.js +23 -0
- package/lib/cjs/options/schemas/tags.js.map +1 -0
- package/lib/cjs/options/schemas/variables.d.ts +102 -0
- package/lib/cjs/options/schemas/variables.d.ts.map +1 -0
- package/lib/cjs/options/schemas/variables.js +23 -0
- package/lib/cjs/options/schemas/variables.js.map +1 -0
- package/lib/cjs/parsers/angular.d.ts +1 -1
- package/lib/cjs/parsers/angular.d.ts.map +1 -1
- package/lib/cjs/parsers/angular.js +5 -15
- package/lib/cjs/parsers/angular.js.map +1 -1
- package/lib/cjs/parsers/es.d.ts +4 -2
- package/lib/cjs/parsers/es.d.ts.map +1 -1
- package/lib/cjs/parsers/es.js +0 -34
- package/lib/cjs/parsers/es.js.map +1 -1
- package/lib/cjs/parsers/html.d.ts +1 -1
- package/lib/cjs/parsers/html.d.ts.map +1 -1
- package/lib/cjs/parsers/html.js +0 -3
- package/lib/cjs/parsers/html.js.map +1 -1
- package/lib/cjs/parsers/jsx.d.ts +1 -1
- package/lib/cjs/parsers/jsx.d.ts.map +1 -1
- package/lib/cjs/parsers/jsx.js +0 -3
- package/lib/cjs/parsers/jsx.js.map +1 -1
- package/lib/cjs/parsers/svelte.d.ts +1 -1
- package/lib/cjs/parsers/svelte.d.ts.map +1 -1
- package/lib/cjs/parsers/svelte.js +0 -3
- package/lib/cjs/parsers/svelte.js.map +1 -1
- package/lib/cjs/parsers/vue.d.ts +1 -1
- package/lib/cjs/parsers/vue.d.ts.map +1 -1
- package/lib/cjs/parsers/vue.js +0 -3
- package/lib/cjs/parsers/vue.js.map +1 -1
- package/lib/cjs/rules/enforce-consistent-class-order.d.ts +3 -20
- package/lib/cjs/rules/enforce-consistent-class-order.d.ts.map +1 -1
- package/lib/cjs/rules/enforce-consistent-class-order.js +72 -117
- package/lib/cjs/rules/enforce-consistent-class-order.js.map +1 -1
- package/lib/cjs/rules/enforce-consistent-important-position.d.ts +44 -19
- package/lib/cjs/rules/enforce-consistent-important-position.d.ts.map +1 -1
- package/lib/cjs/rules/enforce-consistent-important-position.js +52 -89
- package/lib/cjs/rules/enforce-consistent-important-position.js.map +1 -1
- package/lib/cjs/rules/enforce-consistent-line-wrapping.d.ts +51 -15
- package/lib/cjs/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
- package/lib/cjs/rules/enforce-consistent-line-wrapping.js +57 -163
- package/lib/cjs/rules/enforce-consistent-line-wrapping.js.map +1 -1
- package/lib/cjs/rules/enforce-consistent-variable-syntax.d.ts +45 -17
- package/lib/cjs/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
- package/lib/cjs/rules/enforce-consistent-variable-syntax.js +45 -74
- package/lib/cjs/rules/enforce-consistent-variable-syntax.js.map +1 -1
- package/lib/cjs/rules/enforce-shorthand-classes.d.ts +46 -18
- package/lib/cjs/rules/enforce-shorthand-classes.d.ts.map +1 -1
- package/lib/cjs/rules/enforce-shorthand-classes.js +36 -68
- package/lib/cjs/rules/enforce-shorthand-classes.js.map +1 -1
- package/lib/cjs/rules/no-conflicting-classes.d.ts +45 -18
- package/lib/cjs/rules/no-conflicting-classes.d.ts.map +1 -1
- package/lib/cjs/rules/no-conflicting-classes.js +24 -50
- package/lib/cjs/rules/no-conflicting-classes.js.map +1 -1
- package/lib/cjs/rules/no-deprecated-classes.d.ts +46 -18
- package/lib/cjs/rules/no-deprecated-classes.d.ts.map +1 -1
- package/lib/cjs/rules/no-deprecated-classes.js +30 -54
- package/lib/cjs/rules/no-deprecated-classes.js.map +1 -1
- package/lib/cjs/rules/no-duplicate-classes.d.ts +45 -5
- package/lib/cjs/rules/no-duplicate-classes.d.ts.map +1 -1
- package/lib/cjs/rules/no-duplicate-classes.js +12 -42
- package/lib/cjs/rules/no-duplicate-classes.js.map +1 -1
- package/lib/cjs/rules/no-restricted-classes.d.ts +44 -22
- package/lib/cjs/rules/no-restricted-classes.d.ts.map +1 -1
- package/lib/cjs/rules/no-restricted-classes.js +20 -79
- package/lib/cjs/rules/no-restricted-classes.js.map +1 -1
- package/lib/cjs/rules/no-unknown-classes.d.ts +47 -0
- package/lib/cjs/rules/no-unknown-classes.d.ts.map +1 -0
- package/lib/cjs/rules/no-unknown-classes.js +71 -0
- package/lib/cjs/rules/no-unknown-classes.js.map +1 -0
- package/lib/cjs/rules/no-unnecessary-whitespace.d.ts +45 -7
- package/lib/cjs/rules/no-unnecessary-whitespace.d.ts.map +1 -1
- package/lib/cjs/rules/no-unnecessary-whitespace.js +32 -70
- package/lib/cjs/rules/no-unnecessary-whitespace.js.map +1 -1
- package/lib/cjs/tailwindcss/class-order.async.worker.v3.js +2 -4
- package/lib/cjs/tailwindcss/class-order.async.worker.v3.js.map +1 -1
- package/lib/cjs/tailwindcss/class-order.async.worker.v4.js +2 -4
- package/lib/cjs/tailwindcss/class-order.async.worker.v4.js.map +1 -1
- package/lib/cjs/tailwindcss/class-order.d.ts +5 -8
- package/lib/cjs/tailwindcss/class-order.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/class-order.js +9 -7
- package/lib/cjs/tailwindcss/class-order.js.map +1 -1
- package/lib/cjs/tailwindcss/conflicting-classes.async.worker.v3.js +1 -1
- package/lib/cjs/tailwindcss/conflicting-classes.async.worker.v3.js.map +1 -1
- package/lib/cjs/tailwindcss/conflicting-classes.async.worker.v4.js +2 -4
- package/lib/cjs/tailwindcss/conflicting-classes.async.worker.v4.js.map +1 -1
- package/lib/cjs/tailwindcss/conflicting-classes.d.ts +5 -8
- package/lib/cjs/tailwindcss/conflicting-classes.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/conflicting-classes.js +9 -7
- package/lib/cjs/tailwindcss/conflicting-classes.js.map +1 -1
- package/lib/cjs/tailwindcss/context.async.v3.d.ts +1 -1
- package/lib/cjs/tailwindcss/context.async.v3.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/context.async.v3.js +9 -15
- package/lib/cjs/tailwindcss/context.async.v3.js.map +1 -1
- package/lib/cjs/tailwindcss/context.async.v4.d.ts +1 -1
- package/lib/cjs/tailwindcss/context.async.v4.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/context.async.v4.js +3 -32
- package/lib/cjs/tailwindcss/context.async.v4.js.map +1 -1
- package/lib/cjs/tailwindcss/custom-component-classes.async.v3.d.ts +1 -3
- package/lib/cjs/tailwindcss/custom-component-classes.async.v3.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/custom-component-classes.async.v3.js +4 -4
- package/lib/cjs/tailwindcss/custom-component-classes.async.v3.js.map +1 -1
- package/lib/cjs/tailwindcss/custom-component-classes.async.v4.d.ts +1 -3
- package/lib/cjs/tailwindcss/custom-component-classes.async.v4.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/custom-component-classes.async.v4.js +4 -4
- package/lib/cjs/tailwindcss/custom-component-classes.async.v4.js.map +1 -1
- package/lib/cjs/tailwindcss/custom-component-classes.d.ts +5 -7
- package/lib/cjs/tailwindcss/custom-component-classes.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/custom-component-classes.js +9 -5
- package/lib/cjs/tailwindcss/custom-component-classes.js.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.v3.d.ts +2 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.v3.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.v3.js +5 -4
- package/lib/cjs/tailwindcss/dissect-classes.async.v3.js.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.v4.d.ts +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.v4.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.v4.js +4 -4
- package/lib/cjs/tailwindcss/dissect-classes.async.v4.js.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.worker.v3.js +4 -6
- package/lib/cjs/tailwindcss/dissect-classes.async.worker.v3.js.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.async.worker.v4.js +4 -6
- package/lib/cjs/tailwindcss/dissect-classes.async.worker.v4.js.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.d.ts +5 -8
- package/lib/cjs/tailwindcss/dissect-classes.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/dissect-classes.js +9 -7
- package/lib/cjs/tailwindcss/dissect-classes.js.map +1 -1
- package/lib/cjs/tailwindcss/prefix.async.v4.d.ts +2 -2
- package/lib/cjs/tailwindcss/prefix.async.v4.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/prefix.async.worker.v3.js +2 -4
- package/lib/cjs/tailwindcss/prefix.async.worker.v3.js.map +1 -1
- package/lib/cjs/tailwindcss/prefix.async.worker.v4.js +2 -4
- package/lib/cjs/tailwindcss/prefix.async.worker.v4.js.map +1 -1
- package/lib/cjs/tailwindcss/prefix.d.ts +6 -8
- package/lib/cjs/tailwindcss/prefix.d.ts.map +1 -1
- package/lib/cjs/tailwindcss/prefix.js +9 -7
- package/lib/cjs/tailwindcss/prefix.js.map +1 -1
- package/lib/cjs/tailwindcss/unknown-classes.async.v3.d.ts +4 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.v3.d.ts.map +1 -0
- package/lib/cjs/tailwindcss/{unregistered-classes.async.v3.js → unknown-classes.async.v3.js} +6 -5
- package/lib/cjs/tailwindcss/unknown-classes.async.v3.js.map +1 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.v4.d.ts +3 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.v4.d.ts.map +1 -0
- package/lib/cjs/tailwindcss/{unregistered-classes.async.v4.js → unknown-classes.async.v4.js} +3 -3
- package/lib/cjs/tailwindcss/unknown-classes.async.v4.js.map +1 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v3.d.ts +2 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v3.d.ts.map +1 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v3.js +11 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v3.js.map +1 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v4.d.ts +2 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v4.d.ts.map +1 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v4.js +11 -0
- package/lib/cjs/tailwindcss/unknown-classes.async.worker.v4.js.map +1 -0
- package/lib/cjs/tailwindcss/unknown-classes.d.ts +11 -0
- package/lib/cjs/tailwindcss/unknown-classes.d.ts.map +1 -0
- package/lib/cjs/tailwindcss/unknown-classes.js +24 -0
- package/lib/cjs/tailwindcss/unknown-classes.js.map +1 -0
- package/lib/cjs/types/async.d.ts +2 -2
- package/lib/cjs/types/async.d.ts.map +1 -1
- package/lib/cjs/types/rule.d.ts +72 -34
- package/lib/cjs/types/rule.d.ts.map +1 -1
- package/lib/cjs/types/rule.js.map +1 -1
- package/lib/cjs/utils/ast.d.ts +4 -0
- package/lib/cjs/utils/ast.d.ts.map +1 -0
- package/lib/cjs/utils/ast.js +12 -0
- package/lib/cjs/utils/ast.js.map +1 -0
- package/lib/cjs/utils/class.d.ts +2 -1
- package/lib/cjs/utils/class.d.ts.map +1 -1
- package/lib/cjs/utils/class.js +2 -4
- package/lib/cjs/utils/class.js.map +1 -1
- package/lib/cjs/utils/context.d.ts +20 -0
- package/lib/cjs/utils/context.d.ts.map +1 -0
- package/lib/cjs/utils/context.js +95 -0
- package/lib/cjs/utils/context.js.map +1 -0
- package/lib/cjs/utils/lint.d.ts +13 -4
- package/lib/cjs/utils/lint.d.ts.map +1 -1
- package/lib/cjs/utils/lint.js +10 -15
- package/lib/cjs/utils/lint.js.map +1 -1
- package/lib/cjs/utils/matchers.d.ts +6 -6
- package/lib/cjs/utils/matchers.d.ts.map +1 -1
- package/lib/cjs/utils/matchers.js +0 -16
- package/lib/cjs/utils/matchers.js.map +1 -1
- package/lib/cjs/utils/rule.d.ts +4 -3
- package/lib/cjs/utils/rule.d.ts.map +1 -1
- package/lib/cjs/utils/rule.js +111 -16
- package/lib/cjs/utils/rule.js.map +1 -1
- package/lib/cjs/utils/utils.d.ts +10 -1
- package/lib/cjs/utils/utils.d.ts.map +1 -1
- package/lib/cjs/utils/utils.js +11 -2
- package/lib/cjs/utils/utils.js.map +1 -1
- package/lib/cjs/utils/version.d.ts +7 -0
- package/lib/cjs/utils/version.d.ts.map +1 -0
- package/lib/cjs/utils/version.js +9 -0
- package/lib/cjs/utils/version.js.map +1 -0
- package/lib/esm/api/defaults.d.ts +0 -1
- package/lib/esm/api/defaults.d.ts.map +1 -1
- package/lib/esm/api/defaults.js +0 -4
- package/lib/esm/api/defaults.js.map +1 -1
- package/lib/esm/async-utils/path.d.ts +2 -0
- package/lib/esm/async-utils/path.d.ts.map +1 -0
- package/lib/esm/async-utils/path.js +7 -0
- package/lib/esm/async-utils/path.js.map +1 -0
- package/lib/esm/async-utils/resolvers.d.ts +1 -1
- package/lib/esm/async-utils/resolvers.d.ts.map +1 -1
- package/lib/esm/async-utils/worker.d.ts.map +1 -1
- package/lib/esm/async-utils/worker.js +7 -1
- package/lib/esm/async-utils/worker.js.map +1 -1
- package/lib/esm/configs/config.d.ts +5 -29
- package/lib/esm/configs/config.d.ts.map +1 -1
- package/lib/esm/configs/config.js +32 -28
- package/lib/esm/configs/config.js.map +1 -1
- package/lib/esm/options/default-options.d.ts.map +1 -1
- package/lib/esm/options/default-options.js.map +1 -1
- package/lib/esm/options/descriptions.d.ts +152 -66
- package/lib/esm/options/descriptions.d.ts.map +1 -1
- package/lib/esm/options/descriptions.js +15 -272
- package/lib/esm/options/descriptions.js.map +1 -1
- package/lib/esm/options/schemas/attributes.d.ts +104 -0
- package/lib/esm/options/schemas/attributes.d.ts.map +1 -0
- package/lib/esm/options/schemas/attributes.js +20 -0
- package/lib/esm/options/schemas/attributes.js.map +1 -0
- package/lib/esm/options/schemas/callees.d.ts +108 -0
- package/lib/esm/options/schemas/callees.d.ts.map +1 -0
- package/lib/esm/options/schemas/callees.js +20 -0
- package/lib/esm/options/schemas/callees.js.map +1 -0
- package/lib/esm/options/schemas/common.d.ts +14 -0
- package/lib/esm/options/schemas/common.d.ts.map +1 -0
- package/lib/esm/options/schemas/common.js +11 -0
- package/lib/esm/options/schemas/common.js.map +1 -0
- package/lib/esm/options/schemas/matchers.d.ts +13 -0
- package/lib/esm/options/schemas/matchers.d.ts.map +1 -0
- package/lib/esm/options/schemas/matchers.js +14 -0
- package/lib/esm/options/schemas/matchers.js.map +1 -0
- package/lib/esm/options/schemas/tags.d.ts +101 -0
- package/lib/esm/options/schemas/tags.d.ts.map +1 -0
- package/lib/esm/options/schemas/tags.js +20 -0
- package/lib/esm/options/schemas/tags.js.map +1 -0
- package/lib/esm/options/schemas/variables.d.ts +102 -0
- package/lib/esm/options/schemas/variables.d.ts.map +1 -0
- package/lib/esm/options/schemas/variables.js +20 -0
- package/lib/esm/options/schemas/variables.js.map +1 -0
- package/lib/esm/parsers/angular.d.ts +1 -1
- package/lib/esm/parsers/angular.d.ts.map +1 -1
- package/lib/esm/parsers/angular.js +2 -12
- package/lib/esm/parsers/angular.js.map +1 -1
- package/lib/esm/parsers/es.d.ts +4 -2
- package/lib/esm/parsers/es.d.ts.map +1 -1
- package/lib/esm/parsers/es.js +1 -34
- package/lib/esm/parsers/es.js.map +1 -1
- package/lib/esm/parsers/html.d.ts +1 -1
- package/lib/esm/parsers/html.d.ts.map +1 -1
- package/lib/esm/parsers/html.js +1 -4
- package/lib/esm/parsers/html.js.map +1 -1
- package/lib/esm/parsers/jsx.d.ts +1 -1
- package/lib/esm/parsers/jsx.d.ts.map +1 -1
- package/lib/esm/parsers/jsx.js +2 -5
- package/lib/esm/parsers/jsx.js.map +1 -1
- package/lib/esm/parsers/svelte.d.ts +1 -1
- package/lib/esm/parsers/svelte.d.ts.map +1 -1
- package/lib/esm/parsers/svelte.js +2 -5
- package/lib/esm/parsers/svelte.js.map +1 -1
- package/lib/esm/parsers/vue.d.ts +1 -1
- package/lib/esm/parsers/vue.d.ts.map +1 -1
- package/lib/esm/parsers/vue.js +2 -5
- package/lib/esm/parsers/vue.js.map +1 -1
- package/lib/esm/rules/enforce-consistent-class-order.d.ts +3 -20
- package/lib/esm/rules/enforce-consistent-class-order.d.ts.map +1 -1
- package/lib/esm/rules/enforce-consistent-class-order.js +76 -120
- package/lib/esm/rules/enforce-consistent-class-order.js.map +1 -1
- package/lib/esm/rules/enforce-consistent-important-position.d.ts +44 -19
- package/lib/esm/rules/enforce-consistent-important-position.d.ts.map +1 -1
- package/lib/esm/rules/enforce-consistent-important-position.js +55 -91
- package/lib/esm/rules/enforce-consistent-important-position.js.map +1 -1
- package/lib/esm/rules/enforce-consistent-line-wrapping.d.ts +51 -15
- package/lib/esm/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
- package/lib/esm/rules/enforce-consistent-line-wrapping.js +60 -166
- package/lib/esm/rules/enforce-consistent-line-wrapping.js.map +1 -1
- package/lib/esm/rules/enforce-consistent-variable-syntax.d.ts +45 -17
- package/lib/esm/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
- package/lib/esm/rules/enforce-consistent-variable-syntax.js +47 -75
- package/lib/esm/rules/enforce-consistent-variable-syntax.js.map +1 -1
- package/lib/esm/rules/enforce-shorthand-classes.d.ts +46 -18
- package/lib/esm/rules/enforce-shorthand-classes.d.ts.map +1 -1
- package/lib/esm/rules/enforce-shorthand-classes.js +39 -70
- package/lib/esm/rules/enforce-shorthand-classes.js.map +1 -1
- package/lib/esm/rules/no-conflicting-classes.d.ts +45 -18
- package/lib/esm/rules/no-conflicting-classes.d.ts.map +1 -1
- package/lib/esm/rules/no-conflicting-classes.js +27 -52
- package/lib/esm/rules/no-conflicting-classes.js.map +1 -1
- package/lib/esm/rules/no-deprecated-classes.d.ts +46 -18
- package/lib/esm/rules/no-deprecated-classes.d.ts.map +1 -1
- package/lib/esm/rules/no-deprecated-classes.js +33 -56
- package/lib/esm/rules/no-deprecated-classes.js.map +1 -1
- package/lib/esm/rules/no-duplicate-classes.d.ts +45 -5
- package/lib/esm/rules/no-duplicate-classes.d.ts.map +1 -1
- package/lib/esm/rules/no-duplicate-classes.js +13 -43
- package/lib/esm/rules/no-duplicate-classes.js.map +1 -1
- package/lib/esm/rules/no-restricted-classes.d.ts +44 -22
- package/lib/esm/rules/no-restricted-classes.d.ts.map +1 -1
- package/lib/esm/rules/no-restricted-classes.js +21 -79
- package/lib/esm/rules/no-restricted-classes.js.map +1 -1
- package/lib/esm/rules/no-unknown-classes.d.ts +47 -0
- package/lib/esm/rules/no-unknown-classes.d.ts.map +1 -0
- package/lib/esm/rules/no-unknown-classes.js +68 -0
- package/lib/esm/rules/no-unknown-classes.js.map +1 -0
- package/lib/esm/rules/no-unnecessary-whitespace.d.ts +45 -7
- package/lib/esm/rules/no-unnecessary-whitespace.d.ts.map +1 -1
- package/lib/esm/rules/no-unnecessary-whitespace.js +34 -72
- package/lib/esm/rules/no-unnecessary-whitespace.js.map +1 -1
- package/lib/esm/tailwindcss/class-order.async.worker.v3.js +2 -4
- package/lib/esm/tailwindcss/class-order.async.worker.v3.js.map +1 -1
- package/lib/esm/tailwindcss/class-order.async.worker.v4.js +2 -4
- package/lib/esm/tailwindcss/class-order.async.worker.v4.js.map +1 -1
- package/lib/esm/tailwindcss/class-order.d.ts +5 -8
- package/lib/esm/tailwindcss/class-order.d.ts.map +1 -1
- package/lib/esm/tailwindcss/class-order.js +7 -7
- package/lib/esm/tailwindcss/class-order.js.map +1 -1
- package/lib/esm/tailwindcss/conflicting-classes.async.worker.v3.js +1 -1
- package/lib/esm/tailwindcss/conflicting-classes.async.worker.v3.js.map +1 -1
- package/lib/esm/tailwindcss/conflicting-classes.async.worker.v4.js +2 -4
- package/lib/esm/tailwindcss/conflicting-classes.async.worker.v4.js.map +1 -1
- package/lib/esm/tailwindcss/conflicting-classes.d.ts +5 -8
- package/lib/esm/tailwindcss/conflicting-classes.d.ts.map +1 -1
- package/lib/esm/tailwindcss/conflicting-classes.js +7 -7
- package/lib/esm/tailwindcss/conflicting-classes.js.map +1 -1
- package/lib/esm/tailwindcss/context.async.v3.d.ts +1 -1
- package/lib/esm/tailwindcss/context.async.v3.d.ts.map +1 -1
- package/lib/esm/tailwindcss/context.async.v3.js +9 -12
- package/lib/esm/tailwindcss/context.async.v3.js.map +1 -1
- package/lib/esm/tailwindcss/context.async.v4.d.ts +1 -1
- package/lib/esm/tailwindcss/context.async.v4.d.ts.map +1 -1
- package/lib/esm/tailwindcss/context.async.v4.js +3 -29
- package/lib/esm/tailwindcss/context.async.v4.js.map +1 -1
- package/lib/esm/tailwindcss/custom-component-classes.async.v3.d.ts +1 -3
- package/lib/esm/tailwindcss/custom-component-classes.async.v3.d.ts.map +1 -1
- package/lib/esm/tailwindcss/custom-component-classes.async.v3.js +4 -3
- package/lib/esm/tailwindcss/custom-component-classes.async.v3.js.map +1 -1
- package/lib/esm/tailwindcss/custom-component-classes.async.v4.d.ts +1 -3
- package/lib/esm/tailwindcss/custom-component-classes.async.v4.d.ts.map +1 -1
- package/lib/esm/tailwindcss/custom-component-classes.async.v4.js +4 -3
- package/lib/esm/tailwindcss/custom-component-classes.async.v4.js.map +1 -1
- package/lib/esm/tailwindcss/custom-component-classes.d.ts +5 -7
- package/lib/esm/tailwindcss/custom-component-classes.d.ts.map +1 -1
- package/lib/esm/tailwindcss/custom-component-classes.js +7 -5
- package/lib/esm/tailwindcss/custom-component-classes.js.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.async.v3.d.ts +2 -1
- package/lib/esm/tailwindcss/dissect-classes.async.v3.d.ts.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.async.v3.js +5 -4
- package/lib/esm/tailwindcss/dissect-classes.async.v3.js.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.async.v4.d.ts +1 -1
- package/lib/esm/tailwindcss/dissect-classes.async.v4.d.ts.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.async.v4.js +4 -4
- package/lib/esm/tailwindcss/dissect-classes.async.v4.js.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.async.worker.v3.js +4 -6
- package/lib/esm/tailwindcss/dissect-classes.async.worker.v3.js.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.async.worker.v4.js +4 -6
- package/lib/esm/tailwindcss/dissect-classes.async.worker.v4.js.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.d.ts +5 -8
- package/lib/esm/tailwindcss/dissect-classes.d.ts.map +1 -1
- package/lib/esm/tailwindcss/dissect-classes.js +7 -7
- package/lib/esm/tailwindcss/dissect-classes.js.map +1 -1
- package/lib/esm/tailwindcss/prefix.async.v4.d.ts +2 -2
- package/lib/esm/tailwindcss/prefix.async.v4.d.ts.map +1 -1
- package/lib/esm/tailwindcss/prefix.async.worker.v3.js +2 -4
- package/lib/esm/tailwindcss/prefix.async.worker.v3.js.map +1 -1
- package/lib/esm/tailwindcss/prefix.async.worker.v4.js +2 -4
- package/lib/esm/tailwindcss/prefix.async.worker.v4.js.map +1 -1
- package/lib/esm/tailwindcss/prefix.d.ts +6 -8
- package/lib/esm/tailwindcss/prefix.d.ts.map +1 -1
- package/lib/esm/tailwindcss/prefix.js +7 -7
- package/lib/esm/tailwindcss/prefix.js.map +1 -1
- package/lib/esm/tailwindcss/unknown-classes.async.v3.d.ts +4 -0
- package/lib/esm/tailwindcss/unknown-classes.async.v3.d.ts.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.async.v3.js +10 -0
- package/lib/esm/tailwindcss/unknown-classes.async.v3.js.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.async.v4.d.ts +3 -0
- package/lib/esm/tailwindcss/unknown-classes.async.v4.d.ts.map +1 -0
- package/lib/esm/tailwindcss/{unregistered-classes.async.v4.js → unknown-classes.async.v4.js} +2 -2
- package/lib/esm/tailwindcss/unknown-classes.async.v4.js.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v3.d.ts +2 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v3.d.ts.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v3.js +9 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v3.js.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v4.d.ts +2 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v4.d.ts.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v4.js +9 -0
- package/lib/esm/tailwindcss/unknown-classes.async.worker.v4.js.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.d.ts +11 -0
- package/lib/esm/tailwindcss/unknown-classes.d.ts.map +1 -0
- package/lib/esm/tailwindcss/unknown-classes.js +19 -0
- package/lib/esm/tailwindcss/unknown-classes.js.map +1 -0
- package/lib/esm/types/async.d.ts +2 -2
- package/lib/esm/types/async.d.ts.map +1 -1
- package/lib/esm/types/rule.d.ts +72 -34
- package/lib/esm/types/rule.d.ts.map +1 -1
- package/lib/esm/types/rule.js.map +1 -1
- package/lib/esm/utils/ast.d.ts +4 -0
- package/lib/esm/utils/ast.d.ts.map +1 -0
- package/lib/esm/utils/ast.js +9 -0
- package/lib/esm/utils/ast.js.map +1 -0
- package/lib/esm/utils/class.d.ts +2 -1
- package/lib/esm/utils/class.d.ts.map +1 -1
- package/lib/esm/utils/class.js +2 -4
- package/lib/esm/utils/class.js.map +1 -1
- package/lib/esm/utils/context.d.ts +20 -0
- package/lib/esm/utils/context.d.ts.map +1 -0
- package/lib/esm/utils/context.js +91 -0
- package/lib/esm/utils/context.js.map +1 -0
- package/lib/esm/utils/lint.d.ts +13 -4
- package/lib/esm/utils/lint.d.ts.map +1 -1
- package/lib/esm/utils/lint.js +11 -16
- package/lib/esm/utils/lint.js.map +1 -1
- package/lib/esm/utils/matchers.d.ts +6 -6
- package/lib/esm/utils/matchers.d.ts.map +1 -1
- package/lib/esm/utils/matchers.js +0 -12
- package/lib/esm/utils/matchers.js.map +1 -1
- package/lib/esm/utils/rule.d.ts +4 -3
- package/lib/esm/utils/rule.d.ts.map +1 -1
- package/lib/esm/utils/rule.js +110 -16
- package/lib/esm/utils/rule.js.map +1 -1
- package/lib/esm/utils/utils.d.ts +10 -1
- package/lib/esm/utils/utils.d.ts.map +1 -1
- package/lib/esm/utils/utils.js +11 -2
- package/lib/esm/utils/utils.js.map +1 -1
- package/lib/esm/utils/version.d.ts +7 -0
- package/lib/esm/utils/version.d.ts.map +1 -0
- package/lib/esm/utils/version.js +6 -0
- package/lib/esm/utils/version.js.map +1 -0
- package/package.json +6 -7
- package/lib/cjs/async-utils/config.d.ts +0 -16
- package/lib/cjs/async-utils/config.d.ts.map +0 -1
- package/lib/cjs/async-utils/config.js +0 -63
- package/lib/cjs/async-utils/config.js.map +0 -1
- package/lib/cjs/async-utils/context.d.ts +0 -22
- package/lib/cjs/async-utils/context.d.ts.map +0 -1
- package/lib/cjs/async-utils/context.js +0 -21
- package/lib/cjs/async-utils/context.js.map +0 -1
- package/lib/cjs/async-utils/tailwindcss.d.ts +0 -16
- package/lib/cjs/async-utils/tailwindcss.d.ts.map +0 -1
- package/lib/cjs/async-utils/tailwindcss.js +0 -46
- package/lib/cjs/async-utils/tailwindcss.js.map +0 -1
- package/lib/cjs/async-utils/tsconfig.d.ts +0 -11
- package/lib/cjs/async-utils/tsconfig.d.ts.map +0 -1
- package/lib/cjs/async-utils/tsconfig.js +0 -33
- package/lib/cjs/async-utils/tsconfig.js.map +0 -1
- package/lib/cjs/rules/deprecated/multiline.d.ts +0 -3
- package/lib/cjs/rules/deprecated/multiline.d.ts.map +0 -1
- package/lib/cjs/rules/deprecated/multiline.js +0 -27
- package/lib/cjs/rules/deprecated/multiline.js.map +0 -1
- package/lib/cjs/rules/deprecated/sort-classes.d.ts +0 -3
- package/lib/cjs/rules/deprecated/sort-classes.d.ts.map +0 -1
- package/lib/cjs/rules/deprecated/sort-classes.js +0 -26
- package/lib/cjs/rules/deprecated/sort-classes.js.map +0 -1
- package/lib/cjs/rules/no-unregistered-classes.d.ts +0 -24
- package/lib/cjs/rules/no-unregistered-classes.d.ts.map +0 -1
- package/lib/cjs/rules/no-unregistered-classes.js +0 -116
- package/lib/cjs/rules/no-unregistered-classes.js.map +0 -1
- package/lib/cjs/tailwindcss/context.async.d.ts +0 -3
- package/lib/cjs/tailwindcss/context.async.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/context.async.js +0 -16
- package/lib/cjs/tailwindcss/context.async.js.map +0 -1
- package/lib/cjs/tailwindcss/custom-component-classes.async.worker.d.ts +0 -2
- package/lib/cjs/tailwindcss/custom-component-classes.async.worker.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/custom-component-classes.async.worker.js +0 -44
- package/lib/cjs/tailwindcss/custom-component-classes.async.worker.js.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.v3.d.ts +0 -3
- package/lib/cjs/tailwindcss/unregistered-classes.async.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.v4.d.ts +0 -3
- package/lib/cjs/tailwindcss/unregistered-classes.async.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v3.d.ts +0 -2
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v3.js +0 -13
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v4.d.ts +0 -2
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v4.js +0 -13
- package/lib/cjs/tailwindcss/unregistered-classes.async.worker.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.d.ts +0 -14
- package/lib/cjs/tailwindcss/unregistered-classes.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/unregistered-classes.js +0 -22
- package/lib/cjs/tailwindcss/unregistered-classes.js.map +0 -1
- package/lib/cjs/utils/options.d.ts +0 -10
- package/lib/cjs/utils/options.d.ts.map +0 -1
- package/lib/cjs/utils/options.js +0 -32
- package/lib/cjs/utils/options.js.map +0 -1
- package/lib/cjs/utils/regex.d.ts +0 -9
- package/lib/cjs/utils/regex.d.ts.map +0 -1
- package/lib/cjs/utils/regex.js +0 -66
- package/lib/cjs/utils/regex.js.map +0 -1
- package/lib/esm/async-utils/config.d.ts +0 -16
- package/lib/esm/async-utils/config.d.ts.map +0 -1
- package/lib/esm/async-utils/config.js +0 -60
- package/lib/esm/async-utils/config.js.map +0 -1
- package/lib/esm/async-utils/context.d.ts +0 -22
- package/lib/esm/async-utils/context.d.ts.map +0 -1
- package/lib/esm/async-utils/context.js +0 -18
- package/lib/esm/async-utils/context.js.map +0 -1
- package/lib/esm/async-utils/tailwindcss.d.ts +0 -16
- package/lib/esm/async-utils/tailwindcss.d.ts.map +0 -1
- package/lib/esm/async-utils/tailwindcss.js +0 -44
- package/lib/esm/async-utils/tailwindcss.js.map +0 -1
- package/lib/esm/async-utils/tsconfig.d.ts +0 -11
- package/lib/esm/async-utils/tsconfig.d.ts.map +0 -1
- package/lib/esm/async-utils/tsconfig.js +0 -29
- package/lib/esm/async-utils/tsconfig.js.map +0 -1
- package/lib/esm/rules/deprecated/multiline.d.ts +0 -3
- package/lib/esm/rules/deprecated/multiline.d.ts.map +0 -1
- package/lib/esm/rules/deprecated/multiline.js +0 -24
- package/lib/esm/rules/deprecated/multiline.js.map +0 -1
- package/lib/esm/rules/deprecated/sort-classes.d.ts +0 -3
- package/lib/esm/rules/deprecated/sort-classes.d.ts.map +0 -1
- package/lib/esm/rules/deprecated/sort-classes.js +0 -23
- package/lib/esm/rules/deprecated/sort-classes.js.map +0 -1
- package/lib/esm/rules/no-unregistered-classes.d.ts +0 -24
- package/lib/esm/rules/no-unregistered-classes.d.ts.map +0 -1
- package/lib/esm/rules/no-unregistered-classes.js +0 -112
- package/lib/esm/rules/no-unregistered-classes.js.map +0 -1
- package/lib/esm/tailwindcss/context.async.d.ts +0 -3
- package/lib/esm/tailwindcss/context.async.d.ts.map +0 -1
- package/lib/esm/tailwindcss/context.async.js +0 -13
- package/lib/esm/tailwindcss/context.async.js.map +0 -1
- package/lib/esm/tailwindcss/custom-component-classes.async.worker.d.ts +0 -2
- package/lib/esm/tailwindcss/custom-component-classes.async.worker.d.ts.map +0 -1
- package/lib/esm/tailwindcss/custom-component-classes.async.worker.js +0 -9
- package/lib/esm/tailwindcss/custom-component-classes.async.worker.js.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.v3.d.ts +0 -3
- package/lib/esm/tailwindcss/unregistered-classes.async.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.v3.js +0 -9
- package/lib/esm/tailwindcss/unregistered-classes.async.v3.js.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.v4.d.ts +0 -3
- package/lib/esm/tailwindcss/unregistered-classes.async.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.v4.js.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v3.d.ts +0 -2
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v3.js +0 -11
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v3.js.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v4.d.ts +0 -2
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v4.js +0 -11
- package/lib/esm/tailwindcss/unregistered-classes.async.worker.v4.js.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.d.ts +0 -14
- package/lib/esm/tailwindcss/unregistered-classes.d.ts.map +0 -1
- package/lib/esm/tailwindcss/unregistered-classes.js +0 -19
- package/lib/esm/tailwindcss/unregistered-classes.js.map +0 -1
- package/lib/esm/utils/options.d.ts +0 -10
- package/lib/esm/utils/options.d.ts.map +0 -1
- package/lib/esm/utils/options.js +0 -29
- package/lib/esm/utils/options.js.map +0 -1
- package/lib/esm/utils/regex.d.ts +0 -9
- package/lib/esm/utils/regex.d.ts.map +0 -1
- package/lib/esm/utils/regex.js +0 -63
- package/lib/esm/utils/regex.js.map +0 -1
package/README.md
CHANGED
|
@@ -160,7 +160,7 @@ The table below lists all available rules, the Tailwind CSS versions they suppor
|
|
|
160
160
|
|
|
161
161
|
| Name | Description | `tw3` | `tw4` | `recommended` | autofix |
|
|
162
162
|
| :--- | :--- | :---: | :---: | :---: | :---: |
|
|
163
|
-
| [no-
|
|
163
|
+
| [no-unknown-classes](docs/rules/no-unknown-classes.md) | Report classes not registered with tailwindcss. | ✔ | ✔ | ✔ | |
|
|
164
164
|
| [no-conflicting-classes](docs/rules/no-conflicting-classes.md) | Report classes that produce conflicting styles. | | ✔ | | |
|
|
165
165
|
| [no-restricted-classes](docs/rules/no-restricted-classes.md) | Disallow restricted classes. | ✔ | ✔ | | ✔ |
|
|
166
166
|
|
|
@@ -15,5 +15,4 @@ export declare function getDefaultVariables(): [string, {
|
|
|
15
15
|
match: import("./types").MatcherType.String;
|
|
16
16
|
}[]][];
|
|
17
17
|
export declare function getDefaultTags(): never[];
|
|
18
|
-
export declare function getDefaultIgnoredUnregisteredClasses(): never[];
|
|
19
18
|
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/api/defaults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/api/defaults.ts"],"names":[],"mappings":"AAQA,wBAAgB,iBAAiB;;;;;;;QAEhC;AAED,wBAAgB,oBAAoB;;;;SAEnC;AAED,wBAAgB,mBAAmB;;OAElC;AAED,wBAAgB,cAAc,YAE7B"}
|
package/lib/cjs/api/defaults.js
CHANGED
|
@@ -4,9 +4,7 @@ exports.getDefaultCallees = getDefaultCallees;
|
|
|
4
4
|
exports.getDefaultAttributes = getDefaultAttributes;
|
|
5
5
|
exports.getDefaultVariables = getDefaultVariables;
|
|
6
6
|
exports.getDefaultTags = getDefaultTags;
|
|
7
|
-
exports.getDefaultIgnoredUnregisteredClasses = getDefaultIgnoredUnregisteredClasses;
|
|
8
7
|
const default_options_js_1 = require("../options/default-options.js");
|
|
9
|
-
const no_unregistered_classes_js_1 = require("../rules/no-unregistered-classes.js");
|
|
10
8
|
function getDefaultCallees() {
|
|
11
9
|
return default_options_js_1.DEFAULT_CALLEE_NAMES;
|
|
12
10
|
}
|
|
@@ -19,7 +17,4 @@ function getDefaultVariables() {
|
|
|
19
17
|
function getDefaultTags() {
|
|
20
18
|
return default_options_js_1.DEFAULT_TAG_NAMES;
|
|
21
19
|
}
|
|
22
|
-
function getDefaultIgnoredUnregisteredClasses() {
|
|
23
|
-
return no_unregistered_classes_js_1.DEFAULT_IGNORED_UNREGISTERED_CLASSES;
|
|
24
|
-
}
|
|
25
20
|
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/api/defaults.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/api/defaults.ts"],"names":[],"mappings":";;AAQA,8CAEC;AAED,oDAEC;AAED,kDAEC;AAED,wCAEC;AAtBD,sFAKuD;AAGvD,SAAgB,iBAAiB;IAC/B,OAAO,yCAAoB,CAAC;AAC9B,CAAC;AAED,SAAgB,oBAAoB;IAClC,OAAO,4CAAuB,CAAC;AACjC,CAAC;AAED,SAAgB,mBAAmB;IACjC,OAAO,2CAAsB,CAAC;AAChC,CAAC;AAED,SAAgB,cAAc;IAC5B,OAAO,sCAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../src/async-utils/path.ts"],"names":[],"mappings":"AAMA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalize = normalize;
|
|
4
|
+
const node_url_1 = require("node:url");
|
|
5
|
+
const module_js_1 = require("./module.js");
|
|
6
|
+
const platform_js_1 = require("./platform.js");
|
|
7
|
+
function normalize(path) {
|
|
8
|
+
return (0, platform_js_1.isWindows)() && (0, module_js_1.isESModule)() ? (0, node_url_1.pathToFileURL)(path).toString() : path;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../../src/async-utils/path.ts"],"names":[],"mappings":";;AAMA,8BAEC;AARD,uCAAyC;AAEzC,2CAAyC;AACzC,+CAA0C;AAG1C,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,IAAA,uBAAS,GAAE,IAAI,IAAA,sBAAU,GAAE,CAAC,CAAC,CAAC,IAAA,wBAAa,EAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AsyncContext } from "../
|
|
1
|
+
import type { AsyncContext } from "../utils/context.js";
|
|
2
2
|
export declare function resolveJs(path: string, cwd: string): string;
|
|
3
3
|
export declare function resolveJs(ctx: AsyncContext, path: string, cwd?: string): string;
|
|
4
4
|
export declare function resolveCss(path: string, cwd: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/async-utils/resolvers.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/async-utils/resolvers.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAwCxD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;AAC7D,wBAAgB,SAAS,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;AAajF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;AAC9D,wBAAgB,UAAU,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;AAalF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAM7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/async-utils/worker.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,wBAAgB,gBAAgB,IAAI,cAAc,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/async-utils/worker.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,wBAAgB,gBAAgB,IAAI,cAAc,GAAG,SAAS,CAW7D"}
|
|
@@ -6,7 +6,13 @@ const synckit_1 = require("synckit");
|
|
|
6
6
|
function getWorkerOptions() {
|
|
7
7
|
if (node_process_1.env.NODE_ENV === "test") {
|
|
8
8
|
return {
|
|
9
|
-
|
|
9
|
+
timeout: 10000,
|
|
10
|
+
tsRunner: synckit_1.TsRunner.OXC
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return {
|
|
15
|
+
timeout: 10000
|
|
10
16
|
};
|
|
11
17
|
}
|
|
12
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/async-utils/worker.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/async-utils/worker.ts"],"names":[],"mappings":";;AAOA,4CAWC;AAlBD,+CAAmC;AAEnC,qCAAmC;AAKnC,SAAgB,gBAAgB;IAC9B,IAAG,kBAAG,CAAC,QAAQ,KAAK,MAAM,EAAC,CAAC;QAC1B,OAAO;YACL,OAAO,EAAE,KAAM;YACf,QAAQ,EAAE,kBAAQ,CAAC,GAAG;SACvB,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE,KAAM;SAChB,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,42 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { enforceConsistentClassOrder } from "../rules/enforce-consistent-class-order.js";
|
|
4
|
-
import { enforceConsistentImportantPosition } from "../rules/enforce-consistent-important-position.js";
|
|
5
|
-
import { enforceConsistentLineWrapping } from "../rules/enforce-consistent-line-wrapping.js";
|
|
6
|
-
import { enforceConsistentVariableSyntax } from "../rules/enforce-consistent-variable-syntax.js";
|
|
7
|
-
import { enforceShorthandClasses } from "../rules/enforce-shorthand-classes.js";
|
|
8
|
-
import { noConflictingClasses } from "../rules/no-conflicting-classes.js";
|
|
9
|
-
import { noDeprecatedClasses } from "../rules/no-deprecated-classes.js";
|
|
10
|
-
import { noDuplicateClasses } from "../rules/no-duplicate-classes.js";
|
|
11
|
-
import { noRestrictedClasses } from "../rules/no-restricted-classes.js";
|
|
12
|
-
import { noUnnecessaryWhitespace } from "../rules/no-unnecessary-whitespace.js";
|
|
13
|
-
import { noUnregisteredClasses } from "../rules/no-unregistered-classes.js";
|
|
1
|
+
import type { JSRuleDefinition } from "eslint";
|
|
2
|
+
type Severity = "error" | "warn";
|
|
14
3
|
export declare const config: {
|
|
15
4
|
configs: {
|
|
16
5
|
[x: string]: {
|
|
17
6
|
plugins: string[];
|
|
18
7
|
rules: {
|
|
19
|
-
[x: string]:
|
|
8
|
+
[x: string]: Severity;
|
|
20
9
|
};
|
|
21
10
|
};
|
|
22
11
|
};
|
|
23
12
|
meta: {
|
|
24
13
|
name: string;
|
|
25
14
|
};
|
|
26
|
-
rules:
|
|
27
|
-
[multiline.name]: import("eslint").Rule.RuleModule;
|
|
28
|
-
[sortClasses.name]: import("eslint").Rule.RuleModule;
|
|
29
|
-
[enforceConsistentClassOrder.name]: import("eslint").Rule.RuleModule;
|
|
30
|
-
[enforceConsistentImportantPosition.name]: import("eslint").Rule.RuleModule;
|
|
31
|
-
[enforceConsistentLineWrapping.name]: import("eslint").Rule.RuleModule;
|
|
32
|
-
[enforceConsistentVariableSyntax.name]: import("eslint").Rule.RuleModule;
|
|
33
|
-
[enforceShorthandClasses.name]: import("eslint").Rule.RuleModule;
|
|
34
|
-
[noConflictingClasses.name]: import("eslint").Rule.RuleModule;
|
|
35
|
-
[noDeprecatedClasses.name]: import("eslint").Rule.RuleModule;
|
|
36
|
-
[noDuplicateClasses.name]: import("eslint").Rule.RuleModule;
|
|
37
|
-
[noRestrictedClasses.name]: import("eslint").Rule.RuleModule;
|
|
38
|
-
[noUnnecessaryWhitespace.name]: import("eslint").Rule.RuleModule;
|
|
39
|
-
[noUnregisteredClasses.name]: import("eslint").Rule.RuleModule;
|
|
40
|
-
};
|
|
15
|
+
rules: Record<string, JSRuleDefinition>;
|
|
41
16
|
};
|
|
17
|
+
export {};
|
|
42
18
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/configs/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/configs/config.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAU,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAGvD,KAAK,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAyEjC,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAWM,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.config = void 0;
|
|
4
|
-
const multiline_js_1 = require("../rules/deprecated/multiline.js");
|
|
5
|
-
const sort_classes_js_1 = require("../rules/deprecated/sort-classes.js");
|
|
6
4
|
const enforce_consistent_class_order_js_1 = require("../rules/enforce-consistent-class-order.js");
|
|
7
5
|
const enforce_consistent_important_position_js_1 = require("../rules/enforce-consistent-important-position.js");
|
|
8
6
|
const enforce_consistent_line_wrapping_js_1 = require("../rules/enforce-consistent-line-wrapping.js");
|
|
@@ -12,42 +10,48 @@ const no_conflicting_classes_js_1 = require("../rules/no-conflicting-classes.js"
|
|
|
12
10
|
const no_deprecated_classes_js_1 = require("../rules/no-deprecated-classes.js");
|
|
13
11
|
const no_duplicate_classes_js_1 = require("../rules/no-duplicate-classes.js");
|
|
14
12
|
const no_restricted_classes_js_1 = require("../rules/no-restricted-classes.js");
|
|
13
|
+
const no_unknown_classes_js_1 = require("../rules/no-unknown-classes.js");
|
|
15
14
|
const no_unnecessary_whitespace_js_1 = require("../rules/no-unnecessary-whitespace.js");
|
|
16
|
-
const
|
|
15
|
+
const rules = [
|
|
16
|
+
enforce_consistent_class_order_js_1.enforceConsistentClassOrder,
|
|
17
|
+
enforce_consistent_important_position_js_1.enforceConsistentImportantPosition,
|
|
18
|
+
enforce_consistent_line_wrapping_js_1.enforceConsistentLineWrapping,
|
|
19
|
+
enforce_consistent_variable_syntax_js_1.enforceConsistentVariableSyntax,
|
|
20
|
+
enforce_shorthand_classes_js_1.enforceShorthandClasses,
|
|
21
|
+
no_conflicting_classes_js_1.noConflictingClasses,
|
|
22
|
+
no_deprecated_classes_js_1.noDeprecatedClasses,
|
|
23
|
+
no_duplicate_classes_js_1.noDuplicateClasses,
|
|
24
|
+
no_restricted_classes_js_1.noRestrictedClasses,
|
|
25
|
+
no_unnecessary_whitespace_js_1.noUnnecessaryWhitespace,
|
|
26
|
+
no_unknown_classes_js_1.noUnknownClasses
|
|
27
|
+
];
|
|
17
28
|
const plugin = {
|
|
18
29
|
meta: {
|
|
19
30
|
name: "better-tailwindcss"
|
|
20
31
|
},
|
|
21
|
-
rules: {
|
|
22
|
-
[
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[enforce_consistent_important_position_js_1.enforceConsistentImportantPosition.name]: enforce_consistent_important_position_js_1.enforceConsistentImportantPosition.rule,
|
|
26
|
-
[enforce_consistent_line_wrapping_js_1.enforceConsistentLineWrapping.name]: enforce_consistent_line_wrapping_js_1.enforceConsistentLineWrapping.rule,
|
|
27
|
-
[enforce_consistent_variable_syntax_js_1.enforceConsistentVariableSyntax.name]: enforce_consistent_variable_syntax_js_1.enforceConsistentVariableSyntax.rule,
|
|
28
|
-
[enforce_shorthand_classes_js_1.enforceShorthandClasses.name]: enforce_shorthand_classes_js_1.enforceShorthandClasses.rule,
|
|
29
|
-
[no_conflicting_classes_js_1.noConflictingClasses.name]: no_conflicting_classes_js_1.noConflictingClasses.rule,
|
|
30
|
-
[no_deprecated_classes_js_1.noDeprecatedClasses.name]: no_deprecated_classes_js_1.noDeprecatedClasses.rule,
|
|
31
|
-
[no_duplicate_classes_js_1.noDuplicateClasses.name]: no_duplicate_classes_js_1.noDuplicateClasses.rule,
|
|
32
|
-
[no_restricted_classes_js_1.noRestrictedClasses.name]: no_restricted_classes_js_1.noRestrictedClasses.rule,
|
|
33
|
-
[no_unnecessary_whitespace_js_1.noUnnecessaryWhitespace.name]: no_unnecessary_whitespace_js_1.noUnnecessaryWhitespace.rule,
|
|
34
|
-
[no_unregistered_classes_js_1.noUnregisteredClasses.name]: no_unregistered_classes_js_1.noUnregisteredClasses.rule
|
|
35
|
-
}
|
|
32
|
+
rules: rules.reduce((acc, { name, rule }) => {
|
|
33
|
+
acc[name] = rule;
|
|
34
|
+
return acc;
|
|
35
|
+
}, {})
|
|
36
36
|
};
|
|
37
37
|
const plugins = [plugin.meta.name];
|
|
38
38
|
const getStylisticRules = (severity = "warn") => {
|
|
39
|
-
return {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
[`${plugin.meta.name}/${
|
|
44
|
-
|
|
39
|
+
return rules.reduce((acc, { name, rule }) => {
|
|
40
|
+
if (rule.meta?.type !== "layout") {
|
|
41
|
+
return acc;
|
|
42
|
+
}
|
|
43
|
+
acc[`${plugin.meta.name}/${name}`] = severity;
|
|
44
|
+
return acc;
|
|
45
|
+
}, {});
|
|
45
46
|
};
|
|
46
47
|
const getCorrectnessRules = (severity = "error") => {
|
|
47
|
-
return {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
return rules.reduce((acc, { name, rule }) => {
|
|
49
|
+
if (rule.meta?.type !== "problem") {
|
|
50
|
+
return acc;
|
|
51
|
+
}
|
|
52
|
+
acc[`${plugin.meta.name}/${name}`] = severity;
|
|
53
|
+
return acc;
|
|
54
|
+
}, {});
|
|
51
55
|
};
|
|
52
56
|
const createConfig = (name, getRulesFunction) => {
|
|
53
57
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/configs/config.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/configs/config.ts"],"names":[],"mappings":";;;AAAA,kHAAyG;AACzG,gIAAuH;AACvH,sHAA6G;AAC7G,0HAAiH;AACjH,wGAAgG;AAChG,kGAA0F;AAC1F,gGAAwF;AACxF,8FAAsF;AACtF,gGAAwF;AACxF,0FAAkF;AAClF,wGAAgG;AAOhG,MAAM,KAAK,GAAG;IACZ,+DAA2B;IAC3B,6EAAkC;IAClC,mEAA6B;IAC7B,uEAA+B;IAC/B,sDAAuB;IACvB,gDAAoB;IACpB,8CAAmB;IACnB,4CAAkB;IAClB,8CAAmB;IACnB,sDAAuB;IACvB,wCAAgB;CACjB,CAAC;AAEF,MAAM,MAAM,GAAG;IACb,IAAI,EAAE;QACJ,IAAI,EAAE,oBAAoB;KAC3B;IACD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAmC,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;QAC5E,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACjB,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC;CACiB,CAAC;AAE1B,MAAM,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAGnC,MAAM,iBAAiB,GAAG,CAAC,WAAqB,MAAM,EAAE,EAAE;IACxD,OAAO,KAAK,CAAC,MAAM,CAA2B,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;QACpE,IAAG,IAAI,CAAC,IAAI,EAAE,IAAI,KAAK,QAAQ,EAAC,CAAC;YAC/B,OAAO,GAAG,CAAC;QACb,CAAC;QAED,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,WAAqB,OAAO,EAAE,EAAE;IAC3D,OAAO,KAAK,CAAC,MAAM,CAA2B,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;QACpE,IAAG,IAAI,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,EAAC,CAAC;YAChC,OAAO,GAAG,CAAC;QACb,CAAC;QAED,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,IAAY,EACZ,gBAEC,EACD,EAAE;IACF,OAAO;QACL,CAAC,GAAG,IAAI,QAAQ,CAAC,EAAE;YACjB,OAAO;YACP,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC;SACjC;QACD,CAAC,GAAG,IAAI,OAAO,CAAC,EAAE;YAChB,OAAO;YACP,KAAK,EAAE,gBAAgB,CAAC,MAAM,CAAC;SAChC;QACD,CAAC,IAAI,CAAC,EAAE;YACN,OAAO;YACP,KAAK,EAAE,gBAAgB,EAAE;SAC1B;KACF,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,MAAM,GAAG;IACpB,GAAG,MAAM;IAET,OAAO,EAAE;QACP,GAAG,YAAY,CAAC,WAAW,EAAE,iBAAiB,CAAC;QAC/C,GAAG,YAAY,CAAC,aAAa,EAAE,mBAAmB,CAAC;QACnD,GAAG,YAAY,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YAC1C,GAAG,iBAAiB,CAAC,QAAQ,CAAC;YAC9B,GAAG,mBAAmB,CAAC,QAAQ,CAAC;SACjC,CAAC,CAAC;KACJ;CACsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-options.d.ts","sourceRoot":"","sources":["../../../src/options/default-options.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"default-options.d.ts","sourceRoot":"","sources":["../../../src/options/default-options.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQ/D,eAAO,MAAM,oBAAoB;;;;;;;OAcd,CAAC;AAEpB,eAAO,MAAM,uBAAuB;;;;QA+Cd,CAAC;AAEvB,eAAO,MAAM,sBAAsB;;MAsBd,CAAC;AAEtB,eAAO,MAAM,iBAAiB,SAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-options.js","sourceRoot":"","sources":["../../../src/options/default-options.ts"],"names":[],"mappings":";;;AAAA,oEAA8D;AAC9D,sEAAgE;AAChE,wEAAkE;AAClE,oEAA8D;AAC9D,sEAAgE;AAChE,sEAAgE;AAChE,sEAAgE;AAChE,oEAA8D;AAC9D,wEAAkE;AAClE,4EAAsE;AACtE,oEAA8D;AAC9D,4EAAuE;AACvE,8EAAyE;AACzE,8DAA+D;
|
|
1
|
+
{"version":3,"file":"default-options.js","sourceRoot":"","sources":["../../../src/options/default-options.ts"],"names":[],"mappings":";;;AAAA,oEAA8D;AAC9D,sEAAgE;AAChE,wEAAkE;AAClE,oEAA8D;AAC9D,sEAAgE;AAChE,sEAAgE;AAChE,sEAAgE;AAChE,oEAA8D;AAC9D,wEAAkE;AAClE,4EAAsE;AACtE,oEAA8D;AAC9D,4EAAuE;AACvE,8EAAyE;AACzE,8DAA+D;AAQlD,QAAA,oBAAoB,GAAG;IAClC,GAAG,UAAE;IACL,GAAG,YAAG;IACN,GAAG,cAAI;IACP,GAAG,UAAE;IACL,GAAG,YAAG;IACN,GAAG,YAAG;IACN,GAAG,YAAG;IACN,GAAG,UAAE;IACL,GAAG,cAAI;IACP,GAAG,kBAAM;IACT,GAAG,UAAE;IACL,GAAG,mBAAO;IACV,GAAG,qBAAQ;CACM,CAAC;AAEP,QAAA,uBAAuB,GAAG;IACrC,UAAU;IACV,kBAAkB;IAClB;QACE,kBAAkB,EAAE;YAClB;gBACE,KAAK,EAAE,qBAAW,CAAC,MAAM;aAC1B;SACF;KACF;IAED,UAAU;IACV,uCAAuC;IACvC;QACE,uCAAuC,EAAE;YACvC;gBACE,KAAK,EAAE,qBAAW,CAAC,MAAM;aAC1B;YACD;gBACE,KAAK,EAAE,qBAAW,CAAC,SAAS;aAC7B;SACF;KACF;IAED,MAAM;IACN;QACE,gBAAgB,EAAE;YAChB;gBACE,KAAK,EAAE,qBAAW,CAAC,MAAM;aAC1B;YACD;gBACE,KAAK,EAAE,qBAAW,CAAC,SAAS;aAC7B;SACF;KACF;IAED,QAAQ;IACR;QACE,cAAc,EAAE;YACd;gBACE,KAAK,EAAE,qBAAW,CAAC,MAAM;aAC1B;YACD;gBACE,KAAK,EAAE,qBAAW,CAAC,SAAS;aAC7B;SACF;KACF;CACmB,CAAC;AAEV,QAAA,sBAAsB,GAAG;IACpC;QACE,eAAe,EAAE;YACf;gBACE,KAAK,EAAE,qBAAW,CAAC,MAAM;aAC1B;SACF;KACF;IACD;QACE,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,qBAAW,CAAC,MAAM;aAC1B;SACF;KACF;IACD;QACE,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,qBAAW,CAAC,MAAM;aAC1B;SACF;KACF;CACkB,CAAC;AAET,QAAA,iBAAiB,GAAG,EAAiB,CAAC"}
|
|
@@ -1,67 +1,153 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
tags
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
1
|
+
import type { InferOutput } from "valibot";
|
|
2
|
+
export declare const COMMON_OPTIONS: import("valibot").ObjectSchema<{
|
|
3
|
+
readonly tsconfig: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The path to the tsconfig file. Is used to resolve path aliases in the tsconfig.">]>, undefined>;
|
|
4
|
+
readonly tailwindConfig: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The path to the tailwind config file. If not specified, the plugin will try to find it automatically or falls back to the default configuration.">]>, undefined>;
|
|
5
|
+
readonly entryPoint: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The path to the css entry point of the project. If not specified, the plugin will fall back to the default tailwind classes.">]>, undefined>;
|
|
6
|
+
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").ObjectSchema<{
|
|
7
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
8
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
10
|
+
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>;
|
|
11
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
13
|
+
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>;
|
|
14
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
15
|
+
match: import("../types/rule").MatcherType.String;
|
|
16
|
+
} | {
|
|
17
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
18
|
+
pathPattern?: string | undefined;
|
|
19
|
+
} | {
|
|
20
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
21
|
+
pathPattern?: string | undefined;
|
|
22
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
23
|
+
match: import("../types/rule").MatcherType.String;
|
|
24
|
+
} | {
|
|
25
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
26
|
+
pathPattern?: string | undefined;
|
|
27
|
+
} | {
|
|
28
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
29
|
+
pathPattern?: string | undefined;
|
|
30
|
+
})[]], "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, ({
|
|
31
|
+
match: import("../types/rule").MatcherType.String;
|
|
32
|
+
} | {
|
|
33
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
34
|
+
pathPattern?: string | undefined;
|
|
35
|
+
} | {
|
|
36
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
37
|
+
pathPattern?: string | undefined;
|
|
38
|
+
})[]])[], "List of template literal tags that should get linted.">]>, never[]>;
|
|
39
|
+
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").ObjectSchema<{
|
|
40
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
41
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
42
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
43
|
+
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>;
|
|
44
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
45
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
46
|
+
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>;
|
|
47
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
48
|
+
match: import("../types/rule").MatcherType.String;
|
|
49
|
+
} | {
|
|
50
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
51
|
+
pathPattern?: string | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
54
|
+
pathPattern?: string | undefined;
|
|
55
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
56
|
+
match: import("../types/rule").MatcherType.String;
|
|
57
|
+
} | {
|
|
58
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
59
|
+
pathPattern?: string | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
62
|
+
pathPattern?: string | undefined;
|
|
63
|
+
})[]], "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, ({
|
|
64
|
+
match: import("../types/rule").MatcherType.String;
|
|
65
|
+
} | {
|
|
66
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
67
|
+
pathPattern?: string | undefined;
|
|
68
|
+
} | {
|
|
69
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
70
|
+
pathPattern?: string | undefined;
|
|
71
|
+
})[]])[], "List of variable names which values should get linted.">]>, [string, {
|
|
72
|
+
match: import("../types/rule").MatcherType.String;
|
|
73
|
+
}[]][]>;
|
|
74
|
+
readonly attributes: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name that for which children get linted.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
75
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
76
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
77
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
78
|
+
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>;
|
|
79
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
80
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
81
|
+
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>;
|
|
82
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
83
|
+
match: import("../types/rule").MatcherType.String;
|
|
84
|
+
} | {
|
|
85
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
86
|
+
pathPattern?: string | undefined;
|
|
87
|
+
} | {
|
|
88
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
89
|
+
pathPattern?: string | undefined;
|
|
90
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
91
|
+
match: import("../types/rule").MatcherType.String;
|
|
92
|
+
} | {
|
|
93
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
94
|
+
pathPattern?: string | undefined;
|
|
95
|
+
} | {
|
|
96
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
97
|
+
pathPattern?: string | undefined;
|
|
98
|
+
})[]], "List of matchers that will automatically be matched.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
99
|
+
match: import("../types/rule").MatcherType.String;
|
|
100
|
+
} | {
|
|
101
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
102
|
+
pathPattern?: string | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
105
|
+
pathPattern?: string | undefined;
|
|
106
|
+
})[]])[], "List of attribute names that should get linted.">]>, (string | [string, ({
|
|
107
|
+
match: import("../types/rule").MatcherType.String;
|
|
108
|
+
} | {
|
|
109
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
110
|
+
})[]])[]>;
|
|
111
|
+
readonly callees: 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, "Callee name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
112
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
113
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
114
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
115
|
+
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>;
|
|
116
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
117
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
118
|
+
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>;
|
|
119
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
120
|
+
match: import("../types/rule").MatcherType.String;
|
|
121
|
+
} | {
|
|
122
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
123
|
+
pathPattern?: string | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
126
|
+
pathPattern?: string | undefined;
|
|
127
|
+
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
128
|
+
match: import("../types/rule").MatcherType.String;
|
|
129
|
+
} | {
|
|
130
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
131
|
+
pathPattern?: string | undefined;
|
|
132
|
+
} | {
|
|
133
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
134
|
+
pathPattern?: string | undefined;
|
|
135
|
+
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Callee name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
136
|
+
match: import("../types/rule").MatcherType.String;
|
|
137
|
+
} | {
|
|
138
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
139
|
+
pathPattern?: string | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
142
|
+
pathPattern?: string | undefined;
|
|
143
|
+
})[]])[], "List of function names which arguments should get linted.">]>, ([string, {
|
|
144
|
+
match: import("../types/rule").MatcherType.String;
|
|
145
|
+
}[]] | [string, {
|
|
146
|
+
match: import("../types/rule").MatcherType.ObjectKey;
|
|
147
|
+
}[]] | [string, {
|
|
148
|
+
match: import("../types/rule").MatcherType.ObjectValue;
|
|
149
|
+
pathPattern: string;
|
|
150
|
+
}[]])[]>;
|
|
151
|
+
}, undefined>;
|
|
152
|
+
export type CommonOptions = InferOutput<typeof COMMON_OPTIONS>;
|
|
67
153
|
//# sourceMappingURL=descriptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../../../src/options/descriptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../../../src/options/descriptions.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAQzB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC"}
|