Skip to content
SiteEmail

Every Gameface rule uses the gameface/ prefix. Defaults below match the flat/recommended preset.

Add a config object after you spread the preset so your overrides win.

export default [
...gameface.configs["flat/recommended"],
{
rules: {
"gameface/html-partial-features": "off",
},
},
];
rules: {
"gameface/css-partial-selectors": "warn",
"gameface/js-partial-member-access": "error",
},

Some rules accept a second argument (options object):

rules: {
"gameface/html-parsed-no-impl": [
"error",
{
scope: "all",
ignoreTags: ["meta", "link", "noscript"],
},
],
"gameface/html-partial-features": [
"warn",
{ mode: "attribute-checks", warnAllowlist: false },
],
},
export default [
...gameface.configs["flat/recommended"],
{
files: ["legacy/**/*.html"],
rules: {
"gameface/html-parsed-no-impl": "off",
},
},
];
SeverityMeaning
"error"Fails ESLint (and usually CI)
"warn"Shows a warning; does not fail unless you use --max-warnings 0
"off"Rule is disabled


Rule idDefaultWhat it reports
gameface/css-no-unsupported-propertieserrorA property Gameface does not support (for example from your unsupported CSS list).
gameface/css-partial-property-valueserrorA value on a property that is only partly supported (often a keyword Gameface rejects).
gameface/css-no-unsupported-functionserrorA CSS function Gameface marks as missing (for example clamp(), min()).
gameface/css-no-unsupported-selectorserrorA selector or pseudo-class Gameface does not support.
gameface/css-partial-selectorswarnA selector/pseudo that works in browsers but is only partially supported in Gameface.
gameface/css-no-var-in-keyframeserrorvar() used inside @keyframes (documented Gameface limit).
gameface/css-no-calc-in-keyframeserrorcalc() used inside @keyframes.
gameface/css-var-no-fallbackerrorvar(--name, fallback) — second argument (fallback) is not allowed.
gameface/css-calc-no-mixed-percent-unitserrorcalc() mixes % with px/rem/etc. (for example calc(50% - 20px)).
gameface/css-svg-keyframes-sizing-unitserrorIn SVG-related @keyframes, width / height / font-size need units (not bare numbers).
gameface/css-svg-keyframes-path-arc-animationwarn@keyframes animates SVG path d with elliptical arc commands.
gameface/css-svg-stroke-dash-non-patherrorstroke-dasharray / stroke-dashoffset on a non-<path> SVG selector.
gameface/css-svg-keyframes-stroke-dash-path-onlywarn@keyframes animates stroke dash properties (only effective on <path> in Gameface).

Rule idDefaultWhat it reports
gameface/html-parsed-no-implerrorAn HTML tag Gameface parses but does not implement. Default curated scope focuses on tags like <select>, table model, <iframe>; use option scope: "all" for every parsed-no-impl tag.
gameface/html-partial-featureswarnA tag/attribute combination that is only partly supported (default: attribute-based checks).
Options: mode, warnAllowlist.

Rule idDefaultWhat it reports
gameface/html-embedded-css-no-unsupported-propertieserrorUnsupported property inside a <style> block.
gameface/html-embedded-css-partial-property-valueserrorUnsupported keyword/value on a partial property in <style>.
gameface/html-embedded-css-no-unsupported-functionserrorUnsupported CSS function in <style>.
gameface/html-embedded-css-no-unsupported-selectorserrorUnsupported selector/pseudo in <style>.
gameface/html-embedded-css-partial-selectorswarnPartially supported selector in <style>.
gameface/html-embedded-css-no-var-in-keyframeserrorvar() in @keyframes in <style>.
gameface/html-embedded-css-no-calc-in-keyframeserrorcalc() in @keyframes in <style>.
gameface/html-embedded-css-var-no-fallbackerrorvar() with fallback in <style>.
gameface/html-embedded-css-calc-no-mixed-percent-unitserrorMixed % in calc() in <style>.
gameface/html-embedded-css-svg-keyframes-sizing-unitserrorSVG keyframe sizing units in <style>.
gameface/html-embedded-css-svg-keyframes-path-arc-animationwarnSVG path arc animation in <style> keyframes.
gameface/html-embedded-css-svg-stroke-dash-non-patherrorStroke dash on non-path in <style>.
gameface/html-embedded-css-svg-keyframes-stroke-dash-path-onlywarnStroke dash keyframes in <style>.
gameface/html-inline-css-no-unsupported-propertieserrorUnsupported property in style="...".
gameface/html-inline-css-partial-property-valueserrorPartial property value in style="...".
gameface/html-inline-css-no-unsupported-functionserrorUnsupported function in style="...".
gameface/html-inline-css-no-var-in-keyframeserrorvar() in keyframes inside inline style (when parsed as CSS).
gameface/html-inline-css-no-calc-in-keyframeserrorcalc() in keyframes inside inline style.
gameface/html-inline-css-var-no-fallbackerrorvar() fallback in inline style.
gameface/html-inline-css-calc-no-mixed-percent-unitserrorMixed % in calc() in inline style.
gameface/html-inline-css-svg-keyframes-sizing-unitserrorSVG keyframe sizing in inline style.
gameface/html-inline-css-svg-keyframes-path-arc-animationwarnSVG path arc keyframes in inline style.
gameface/html-inline-css-svg-keyframes-stroke-dash-path-onlywarnStroke dash keyframes in inline style.

Rule idDefaultWhat it reports
gameface/jsx-inline-css-no-unsupported-propertieserrorUnsupported CSS property in style (string or object keys).
gameface/jsx-inline-css-partial-property-valueserrorUnsupported value for a partial property (string CSS or object literal values).
gameface/jsx-inline-css-no-unsupported-functionserrorUnsupported function in a string style only.
gameface/jsx-inline-css-no-var-in-keyframeserrorvar() in @keyframes inside a string style.
gameface/jsx-inline-css-no-calc-in-keyframeserrorcalc() in @keyframes in a string style.
gameface/jsx-inline-css-var-no-fallbackerrorvar() with fallback in a string style.
gameface/jsx-inline-css-calc-no-mixed-percent-unitserrorMixed % in calc() in a string style.
gameface/jsx-inline-css-svg-keyframes-sizing-unitserrorSVG keyframe sizing units in a string style.
gameface/jsx-inline-css-svg-keyframes-path-arc-animationwarnSVG path arc keyframes in a string style.
gameface/jsx-inline-css-svg-keyframes-stroke-dash-path-onlywarnStroke dash keyframes in a string style.

Rule idDefaultWhat it reports
gameface/html-databind-spellingerrorUnknown or misspelled data-bind-* attribute name.
gameface/html-databind-curly-bracketserrorBinding value missing {{ / }}.
gameface/html-databind-property-accessorserrorBroken model path (for example {{Model.}}, split braces).
gameface/html-databind-bind-forerrorInvalid data-bind-for / iterator syntax.
gameface/html-databind-class-toggleerrorInvalid data-bind-class-toggle segment (class:{{condition}}).
gameface/html-databind-model-propertieswarnModel path does not match a field in settings.gameface.modelsDir JSON.
gameface/jsx-databind-spellingerrorSame as HTML, on JSX attributes.
gameface/jsx-databind-curly-bracketserrorSame as HTML, on JSX.
gameface/jsx-databind-property-accessorserrorSame as HTML, on JSX.
gameface/jsx-databind-bind-forerrorSame as HTML, on JSX.
gameface/jsx-databind-class-toggleerrorSame as HTML, on JSX.
gameface/jsx-databind-model-propertieswarnSame as HTML, on JSX.

Rule idDefaultWhat it reports
gameface/js-no-unsupported-globalserrorUse of a global object/API Gameface does not provide.
gameface/js-partial-member-accesswarnAccess to Something.member where member is known to be missing on that type in Gameface.

Rule idDefaultWhat it reports
gameface/html-svg-no-unsupported-elementserrorSVG tag or SMIL element not supported inside HTML <svg>.
gameface/jsx-svg-no-unsupported-elementserrorSame, inside JSX <svg>.
gameface/html-svg-mask-clip-path-conflictwarnBoth mask and clip-path use url(#…) on the same element.
gameface/jsx-svg-mask-clip-path-conflictwarnSame, in JSX.
gameface/html-svg-tspan-ignoredoffOptional: <tspan> styling is merged into parent <text> (enable with "warn" if you want the hint).
gameface/html-svg-stroke-dash-non-patherrorstroke-dasharray / stroke-dashoffset on a shape other than <path>.
gameface/jsx-svg-stroke-dash-non-patherrorSame, in JSX (attributes or inline style).