Meta tags:
description= ESLint config for UnoCSS (@unocss/eslint-config).;
author= Anthony Fu;
Headings (most frequently used words):
rules, unocss, eslint, config, guides, integrations, installation, prior, arts, rule, options, optional, order, blocklist, enforce, class, compile,
Text of the page (most frequently used words):
unocss (28), #config (21), eslint (17), rule (11), for (9), class (9), this (8), default (8), rules (8), #enforce (7), attributify (7), presets (7), the (6), you (6), error (6), name (6), order (6), page (5), svelte (5), compile (5), blocklist (5), eslintrc (5), flat (5), style (5), can (4), with (4), prefix (4), options (4), specific (4), warn (4), are (4), add (4), names (4), bash (4), integrations (4), extension (4), overview (4), extractor (4), twoslash (3), next (3), postcss (3), plugin (3), scoped (3), when (3), string (3), uno (3), and (3), auto (3), use (3), instead (3), message (3), export (3), matched (3), these (3), not (3), optional (3), selectors (3), legacy (3), safelist (3), file (3), jsx (2), looking (2), used (2), combination (2), attributes (2), directives (2), throw (2), warning (2), red (2), them (2), using (2), utilities (2), another (2), extends (2), json (2), from (2), import (2), mark (2), variable (2), patterns (2), classnames (2), bun (2), npm (2), yarn (2), pnpm (2), examples (2), zed (2), jetbrains (2), ide (2), code (2), lsp (2), support (2), cli (2), runtime (2), webpack (2), astro (2), nuxt (2), vite (2), extracting (2), reset (2), why (2), getting (2), started (2), navigation (2), variants (2), extractors (2), transformers (2), guide (2), copyright, 2021, present, anthony, released, under, mit, license, previous, pager, last, updated, suggest, changes, thanks, devunt, prior, arts, currently, only, vue, supported, want, might, mode, contribute, note, boolean, gradual, migration, true, false, enablefix, custom, automatically, adds, all, attribute, directive, doesn, start, designed, work, transformer, replace, 600, 500, defineconfig, customize, messages, blocked, make, more, informative, context, property, meta, object, listed, get, enabled, enable, following, your, declarations, regex, flags, example, will, match, buttonclassnames, clsbutton, cls, unovariables, function, calls, plain, case, insensitive, clsx, unofunctions, orders, themselves, does, sort, inside, values, such, before, text, center, font, sans, color, gray, disallow, available, depends, configuration, other, configs, install, installation, llm, read, better, optimized, documentation, markdown, format, guides, sidebar, return, top, menu, appearance, contributing, release, notes, v66, team, tutorial, playground, interactive, docs, resources, arbitrary, mdc, pug, variant, group, rem, tagify, compat, web, fonts, typography, icons, wind4, wind3, mini, community, autocomplete, layers, preflights, theme, shortcuts, concepts, main, ctrl, search, skip, content,
Text of the page (random words):
unocss eslint config skip to content unocss search ctrl k main navigation guide guide getting started why unocss presets style reset config file extracting safelist integrations overview integrations vite nuxt next astro svelte scoped webpack runtime cli postcss eslint twoslash lsp support vs code extension jetbrains ide plugin zed extension examples config config file concepts overview rules variants shortcuts theme extractors preflights safelist layers presets transformers autocomplete presets overview community presets presets mini wind3 wind4 icons attributify typography web fonts legacy compat tagify rem to px transformers variant group directives compile class attributify jsx extractors pug extractor mdc extractor svelte extractor arbitrary variants extractor resources interactive docs playground tutorial team v66 7 5 release notes contributing appearance menu return to top sidebar navigation guides getting started why unocss presets style reset config file extracting safelist integrations overview vite nuxt next astro svelte scoped webpack runtime cli postcss eslint twoslash lsp support vs code extension jetbrains ide plugin zed extension examples config presets on this page are you an llm you can read better optimized documentation at integrations eslint md for this page in markdown format eslint config eslint config for unocss unocss eslint config installation pnpm yarn npm bun bash pnpm add d unocss eslint config bash yarn add d unocss eslint config bash npm install d unocss eslint config bash bun add d unocss eslint config in flat config style eslint config js js import unocss from unocss eslint config flat export default unocss other configs in legacy eslintrc style eslintrc json extends unocss rules the rule prefix depends on the eslint configuration style flat config unocss rule name legacy eslintrc unocss rule name available rules order enforce a specific order for class selectors order attributify enforce a specific order for attributify selectors blocklist disallow specific class selectors optional enforce class compile enforce class compile optional order attributify orders attributify attributes themselves it does not sort utilities inside attributify values such as un before text center font sans color gray rule options order unofunctions string mark function calls of matched names to enforce this rule these are plain names not patterns case insensitive default clsx classnames unovariables string mark variable declarations of matched names to enforce this rule these are regex patterns with flags i default cls classnames for example will match variable names clsbutton and buttonclassnames optional rules these rules are not enabled by default to enable them add the following to your flat config or eslintrc eslint config js js import unocss from unocss eslint config flat export default unocss rules unocss rule name warn or error unocss another rule name warn or error options eslintrc json extends unocss rules unocss rule name warn or error unocss another rule name warn or error options unocss blocklist throw warning or error when using utilities listed in blocklist get matched you can customize messages for blocked rules to make them more informative and context specific by using the message property of the meta object unocss config ts ts export default defineconfig blocklist bg red 500 message use bg red 600 instead auto message s use s replace auto a instead my auto is in blocklist use my a instead unocss enforce class compile this rule is designed to work in combination with compile class transformer throw warning or error when class attribute or directive doesn t start with uno automatically adds prefix uno to all class attributes and directives options prefix string can be used in combination with custom prefix default uno enablefix boolean can be used for gradual migration when false default true note currently only vue supported contribute a pr if you want this in jsx if you re looking for this in svelte you might be looking for svelte scoped mode prior arts thanks to eslint plugin unocss by devunt suggest changes to this page last updated pager previous page postcss next page twoslash released under the mit license copyright 2021 present anthony fu
|