From c478a17763eb46ad0c6f8513fddf9bc8dda43e6c Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Mon, 18 Dec 2023 15:38:39 -0300 Subject: [PATCH] fix(eslint-plugin): formating --- .prettierignore | 1 + packages/eslint-plugin/codegen/README.md | 11 +- .../generate-no-unsupported-style-rules.mjs | 8 +- packages/eslint-plugin/readme.md | 2 +- packages/eslint-plugin/src/index.ts | 2 +- .../src/rules/generated/index.ts | 250 +++++++++--------- .../rules/generated/no-css-accent-color.ts | 6 +- .../src/rules/generated/no-css-align-items.ts | 6 +- .../src/rules/generated/no-css-animation.ts | 6 +- .../rules/generated/no-css-aspect-ratio.ts | 6 +- .../generated/no-css-background-blend-mode.ts | 6 +- .../rules/generated/no-css-background-clip.ts | 6 +- .../generated/no-css-background-image.ts | 6 +- .../generated/no-css-background-origin.ts | 6 +- .../generated/no-css-block-inline-size.ts | 6 +- .../rules/generated/no-css-border-image.ts | 6 +- .../no-css-border-inline-block-individual.ts | 46 ++-- .../no-css-border-inline-block-longhand.ts | 11 +- .../generated/no-css-border-inline-block.ts | 6 +- .../generated/no-css-border-radius-logical.ts | 18 +- .../rules/generated/no-css-border-radius.ts | 6 +- .../src/rules/generated/no-css-box-shadow.ts | 6 +- .../src/rules/generated/no-css-box-sizing.ts | 6 +- .../src/rules/generated/no-css-clip-path.ts | 6 +- .../rules/generated/no-css-column-count.ts | 6 +- .../no-css-column-layout-properties.ts | 6 +- .../rules/generated/no-css-conic-gradient.ts | 6 +- .../rules/generated/no-css-display-flex.ts | 8 +- .../rules/generated/no-css-display-grid.ts | 8 +- .../src/rules/generated/no-css-filter.ts | 6 +- .../rules/generated/no-css-flex-direction.ts | 8 +- .../src/rules/generated/no-css-flex-wrap.ts | 8 +- .../rules/generated/no-css-font-kerning.ts | 6 +- .../rules/generated/no-css-function-clamp.ts | 6 +- .../rules/generated/no-css-function-max.ts | 6 +- .../rules/generated/no-css-function-min.ts | 6 +- .../src/rules/generated/no-css-gap.ts | 6 +- .../rules/generated/no-css-grid-template.ts | 11 +- .../src/rules/generated/no-css-hyphens.ts | 6 +- .../src/rules/generated/no-css-important.ts | 6 +- .../rules/generated/no-css-intrinsic-size.ts | 6 +- .../rules/generated/no-css-justify-content.ts | 6 +- .../generated/no-css-left-right-top-bottom.ts | 4 +- .../rules/generated/no-css-linear-gradient.ts | 6 +- .../generated/no-css-list-style-image.ts | 6 +- .../no-css-margin-block-start-end.ts | 6 +- .../generated/no-css-margin-inline-block.ts | 6 +- .../no-css-margin-inline-start-end.ts | 6 +- .../rules/generated/no-css-margin-inline.ts | 6 +- .../rules/generated/no-css-max-block-size.ts | 6 +- .../rules/generated/no-css-min-inline-size.ts | 6 +- .../rules/generated/no-css-mix-blend-mode.ts | 6 +- .../rules/generated/no-css-modern-color.ts | 6 +- .../src/rules/generated/no-css-object-fit.ts | 6 +- .../rules/generated/no-css-object-position.ts | 6 +- .../src/rules/generated/no-css-opacity.ts | 6 +- .../rules/generated/no-css-outline-offset.ts | 6 +- .../rules/generated/no-css-overflow-wrap.ts | 6 +- .../no-css-padding-block-start-end.ts | 6 +- .../generated/no-css-padding-inline-block.ts | 6 +- .../no-css-padding-inline-start-end.ts | 6 +- .../src/rules/generated/no-css-position.ts | 6 +- .../rules/generated/no-css-radial-gradient.ts | 6 +- .../src/rules/generated/no-css-rgba.ts | 6 +- .../src/rules/generated/no-css-scroll-snap.ts | 6 +- .../src/rules/generated/no-css-tab-size.ts | 6 +- .../rules/generated/no-css-table-layout.ts | 6 +- .../rules/generated/no-css-text-align-last.ts | 6 +- .../generated/no-css-text-decoration-color.ts | 6 +- .../no-css-text-decoration-thickness.ts | 6 +- .../no-css-text-emphasis-position.ts | 6 +- .../rules/generated/no-css-text-emphasis.ts | 6 +- .../rules/generated/no-css-text-overflow.ts | 6 +- .../src/rules/generated/no-css-text-shadow.ts | 6 +- .../generated/no-css-text-underline-offset.ts | 6 +- .../src/rules/generated/no-css-transform.ts | 6 +- .../src/rules/generated/no-css-unit-calc.ts | 6 +- .../src/rules/generated/no-css-unit-ch.ts | 6 +- .../rules/generated/no-css-unit-initial.ts | 6 +- .../src/rules/generated/no-css-unit-rem.ts | 6 +- .../src/rules/generated/no-css-unit-vh.ts | 6 +- .../src/rules/generated/no-css-unit-vmax.ts | 6 +- .../src/rules/generated/no-css-unit-vmin.ts | 6 +- .../src/rules/generated/no-css-visibility.ts | 6 +- .../src/rules/generated/no-css-word-break.ts | 6 +- .../rules/generated/no-css-writing-mode.ts | 6 +- .../src/rules/generated/no-html-abbr.ts | 6 +- .../rules/generated/no-html-anchor-links.ts | 6 +- .../generated/no-html-aria-describedby.ts | 6 +- .../rules/generated/no-html-aria-hidden.ts | 6 +- .../src/rules/generated/no-html-aria-label.ts | 6 +- .../generated/no-html-aria-labelledby.ts | 6 +- .../src/rules/generated/no-html-aria-live.ts | 6 +- .../src/rules/generated/no-html-audio.ts | 6 +- .../src/rules/generated/no-html-base.ts | 6 +- .../src/rules/generated/no-html-bdi.ts | 6 +- .../src/rules/generated/no-html-body.ts | 6 +- .../rules/generated/no-html-button-reset.ts | 6 +- .../rules/generated/no-html-button-submit.ts | 6 +- .../src/rules/generated/no-html-dfn.ts | 6 +- .../src/rules/generated/no-html-dialog.ts | 6 +- .../src/rules/generated/no-html-doctype.ts | 6 +- .../src/rules/generated/no-html-form.ts | 6 +- .../rules/generated/no-html-input-checkbox.ts | 6 +- .../rules/generated/no-html-input-hidden.ts | 6 +- .../rules/generated/no-html-input-radio.ts | 6 +- .../rules/generated/no-html-input-reset.ts | 6 +- .../rules/generated/no-html-input-submit.ts | 6 +- .../src/rules/generated/no-html-input-text.ts | 6 +- .../src/rules/generated/no-html-lang.ts | 6 +- .../src/rules/generated/no-html-link.ts | 6 +- .../generated/no-html-loading-attribute.ts | 6 +- .../src/rules/generated/no-html-marquee.ts | 6 +- .../src/rules/generated/no-html-meter.ts | 6 +- .../src/rules/generated/no-html-object.ts | 6 +- .../src/rules/generated/no-html-picture.ts | 6 +- .../src/rules/generated/no-html-progress.ts | 6 +- .../src/rules/generated/no-html-required.ts | 6 +- .../src/rules/generated/no-html-role.ts | 6 +- .../src/rules/generated/no-html-rp.ts | 6 +- .../src/rules/generated/no-html-rt.ts | 6 +- .../src/rules/generated/no-html-ruby.ts | 6 +- .../src/rules/generated/no-html-select.ts | 6 +- .../src/rules/generated/no-html-semantics.ts | 6 +- .../src/rules/generated/no-html-srcset.ts | 6 +- .../src/rules/generated/no-html-svg.ts | 6 +- .../src/rules/generated/no-html-target.ts | 6 +- .../src/rules/generated/no-html-textarea.ts | 6 +- .../src/rules/generated/no-html-video.ts | 6 +- .../src/rules/generated/no-html-wbr.ts | 6 +- packages/eslint-plugin/src/rules/index.ts | 4 +- .../utils/create-no-html-attribute-rule.ts | 22 +- .../src/utils/create-no-html-element-rule.ts | 22 +- .../utils/create-no-style-property-rule.ts | 34 ++- .../create-no-style-value-for-property.ts | 33 ++- .../create-no-style-value-keyword-rule.ts | 35 ++- 136 files changed, 646 insertions(+), 590 deletions(-) diff --git a/.prettierignore b/.prettierignore index 849ddff3b7..3ba7d6ed1e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ dist/ +caniemail diff --git a/packages/eslint-plugin/codegen/README.md b/packages/eslint-plugin/codegen/README.md index 336975cbb1..827758b436 100644 --- a/packages/eslint-plugin/codegen/README.md +++ b/packages/eslint-plugin/codegen/README.md @@ -1,6 +1,6 @@ ## What is this? -This is a folder used to generate the eslint rules based on the metadata on the markdown +This is a folder used to generate the eslint rules based on the metadata on the markdown for each specific possible feature of email templates. > [!NOTE] @@ -9,9 +9,9 @@ for each specific possible feature of email templates. ## How can I run this? -### 1. Clone caniemail +### 1. Clone caniemail -Before you run, you might have cloned the React Email repository without the +Before you run, you might have cloned the React Email repository without the caniemail submodule here so you will need to run: ```sh @@ -26,7 +26,7 @@ pnpm generate-rules ## What is this `manual-changes.patch`? -Every time the codegen runs it will try to generate the rules based on guesses of +Every time the codegen runs it will try to generate the rules based on guesses of what type of rule they are supposed to be. Lots of times this guess will fail and this is the way we are currently using to apply the changes and keep track of them in a good way. @@ -36,5 +36,4 @@ of them in a good way. Currently the way we are using for modifying it is to open it up manually and add the changes we need to the `manual-changes.patch` this may not be the best way for changing it so if you have any better ideas about this please open a issue, PR or discussion -for us to talk about it. - +for us to talk about it. diff --git a/packages/eslint-plugin/codegen/generate-no-unsupported-style-rules.mjs b/packages/eslint-plugin/codegen/generate-no-unsupported-style-rules.mjs index 0dbf2bd79c..7537f4cb1a 100644 --- a/packages/eslint-plugin/codegen/generate-no-unsupported-style-rules.mjs +++ b/packages/eslint-plugin/codegen/generate-no-unsupported-style-rules.mjs @@ -22,9 +22,9 @@ export async function generateNoUnsupportedStyleRules() { `import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - '${cssFeatureName}', + "${cssFeatureName}", ${supportPercetange * 100}, - 'https://www.caniemail.com/features/${featureNamePrefixed}/' + "https://www.caniemail.com/features/${featureNamePrefixed}/" ); `, ); @@ -34,9 +34,9 @@ export default createNoStylePropertyRule( `import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - '${cssFeatureName}', + "${cssFeatureName}", ${supportPercetange * 100}, - 'https://www.caniemail.com/features/${featureNamePrefixed}/' + "https://www.caniemail.com/features/${featureNamePrefixed}/" ); `, ); diff --git a/packages/eslint-plugin/readme.md b/packages/eslint-plugin/readme.md index bc1a9c6742..ddef8e333c 100644 --- a/packages/eslint-plugin/readme.md +++ b/packages/eslint-plugin/readme.md @@ -40,7 +40,7 @@ plugins: ['@react-email'], extends: ['plugin:@react-email/recommended'] ``` -Activating or deactivating certain rules as you may prefer. These rules are mostly generated +Activating or deactivating certain rules as you may prefer. These rules are mostly generated with metadata taken from [caniemail](https://www.caniemail.com/). ### 2. Run eslint diff --git a/packages/eslint-plugin/src/index.ts b/packages/eslint-plugin/src/index.ts index 01ac0962e7..1c32cbc961 100644 --- a/packages/eslint-plugin/src/index.ts +++ b/packages/eslint-plugin/src/index.ts @@ -256,7 +256,7 @@ const rules: ESLint.Plugin["rules"] = { }; const recommendedRules: Partial = { - "react/jsx-key": "off" + "react/jsx-key": "off", }; for (const ruleName of Object.keys(rules)) { diff --git a/packages/eslint-plugin/src/rules/generated/index.ts b/packages/eslint-plugin/src/rules/generated/index.ts index b165cd3936..58e92a42a8 100644 --- a/packages/eslint-plugin/src/rules/generated/index.ts +++ b/packages/eslint-plugin/src/rules/generated/index.ts @@ -1,127 +1,127 @@ -import noHtmlWbr from './no-html-wbr'; -import noHtmlVideo from './no-html-video'; -import noHtmlTextarea from './no-html-textarea'; -import noHtmlTarget from './no-html-target'; -import noHtmlSvg from './no-html-svg'; -import noHtmlSrcset from './no-html-srcset'; -import noHtmlSemantics from './no-html-semantics'; -import noHtmlSelect from './no-html-select'; -import noHtmlRuby from './no-html-ruby'; -import noHtmlRt from './no-html-rt'; -import noHtmlRp from './no-html-rp'; -import noHtmlRole from './no-html-role'; -import noHtmlRequired from './no-html-required'; -import noHtmlProgress from './no-html-progress'; -import noHtmlPicture from './no-html-picture'; -import noHtmlObject from './no-html-object'; -import noHtmlMeter from './no-html-meter'; -import noHtmlMarquee from './no-html-marquee'; -import noHtmlLoadingAttribute from './no-html-loading-attribute'; -import noHtmlLink from './no-html-link'; -import noHtmlLang from './no-html-lang'; -import noHtmlInputText from './no-html-input-text'; -import noHtmlInputSubmit from './no-html-input-submit'; -import noHtmlInputReset from './no-html-input-reset'; -import noHtmlInputRadio from './no-html-input-radio'; -import noHtmlInputHidden from './no-html-input-hidden'; -import noHtmlInputCheckbox from './no-html-input-checkbox'; -import noHtmlForm from './no-html-form'; -import noHtmlDoctype from './no-html-doctype'; -import noHtmlDialog from './no-html-dialog'; -import noHtmlDfn from './no-html-dfn'; -import noHtmlButtonSubmit from './no-html-button-submit'; -import noHtmlButtonReset from './no-html-button-reset'; -import noHtmlBody from './no-html-body'; -import noHtmlBdi from './no-html-bdi'; -import noHtmlBase from './no-html-base'; -import noHtmlAudio from './no-html-audio'; -import noHtmlAriaLive from './no-html-aria-live'; -import noHtmlAriaLabelledby from './no-html-aria-labelledby'; -import noHtmlAriaLabel from './no-html-aria-label'; -import noHtmlAriaHidden from './no-html-aria-hidden'; -import noHtmlAriaDescribedby from './no-html-aria-describedby'; -import noHtmlAnchorLinks from './no-html-anchor-links'; -import noHtmlAbbr from './no-html-abbr'; -import noCssWritingMode from './no-css-writing-mode'; -import noCssWordBreak from './no-css-word-break'; -import noCssVisibility from './no-css-visibility'; -import noCssUnitVmin from './no-css-unit-vmin'; -import noCssUnitVmax from './no-css-unit-vmax'; -import noCssUnitVh from './no-css-unit-vh'; -import noCssUnitRem from './no-css-unit-rem'; -import noCssUnitInitial from './no-css-unit-initial'; -import noCssUnitCh from './no-css-unit-ch'; -import noCssUnitCalc from './no-css-unit-calc'; -import noCssTransform from './no-css-transform'; -import noCssTextUnderlineOffset from './no-css-text-underline-offset'; -import noCssTextShadow from './no-css-text-shadow'; -import noCssTextOverflow from './no-css-text-overflow'; -import noCssTextEmphasis from './no-css-text-emphasis'; -import noCssTextEmphasisPosition from './no-css-text-emphasis-position'; -import noCssTextDecorationThickness from './no-css-text-decoration-thickness'; -import noCssTextDecorationColor from './no-css-text-decoration-color'; -import noCssTextAlignLast from './no-css-text-align-last'; -import noCssTableLayout from './no-css-table-layout'; -import noCssTabSize from './no-css-tab-size'; -import noCssScrollSnap from './no-css-scroll-snap'; -import noCssRgba from './no-css-rgba'; -import noCssRadialGradient from './no-css-radial-gradient'; -import noCssPosition from './no-css-position'; -import noCssPaddingInlineStartEnd from './no-css-padding-inline-start-end'; -import noCssPaddingInlineBlock from './no-css-padding-inline-block'; -import noCssPaddingBlockStartEnd from './no-css-padding-block-start-end'; -import noCssOverflowWrap from './no-css-overflow-wrap'; -import noCssOutlineOffset from './no-css-outline-offset'; -import noCssOpacity from './no-css-opacity'; -import noCssObjectPosition from './no-css-object-position'; -import noCssObjectFit from './no-css-object-fit'; -import noCssModernColor from './no-css-modern-color'; -import noCssMixBlendMode from './no-css-mix-blend-mode'; -import noCssMinInlineSize from './no-css-min-inline-size'; -import noCssMaxBlockSize from './no-css-max-block-size'; -import noCssMarginInline from './no-css-margin-inline'; -import noCssMarginInlineStartEnd from './no-css-margin-inline-start-end'; -import noCssMarginInlineBlock from './no-css-margin-inline-block'; -import noCssMarginBlockStartEnd from './no-css-margin-block-start-end'; -import noCssListStyleImage from './no-css-list-style-image'; -import noCssLinearGradient from './no-css-linear-gradient'; -import noCssLeftRightTopBottom from './no-css-left-right-top-bottom'; -import noCssJustifyContent from './no-css-justify-content'; -import noCssIntrinsicSize from './no-css-intrinsic-size'; -import noCssImportant from './no-css-important'; -import noCssHyphens from './no-css-hyphens'; -import noCssGridTemplate from './no-css-grid-template'; -import noCssGap from './no-css-gap'; -import noCssFunctionMin from './no-css-function-min'; -import noCssFunctionMax from './no-css-function-max'; -import noCssFunctionClamp from './no-css-function-clamp'; -import noCssFontKerning from './no-css-font-kerning'; -import noCssFlexWrap from './no-css-flex-wrap'; -import noCssFlexDirection from './no-css-flex-direction'; -import noCssFilter from './no-css-filter'; -import noCssDisplayGrid from './no-css-display-grid'; -import noCssDisplayFlex from './no-css-display-flex'; -import noCssConicGradient from './no-css-conic-gradient'; -import noCssColumnLayoutProperties from './no-css-column-layout-properties'; -import noCssColumnCount from './no-css-column-count'; -import noCssClipPath from './no-css-clip-path'; -import noCssBoxSizing from './no-css-box-sizing'; -import noCssBoxShadow from './no-css-box-shadow'; -import noCssBorderRadius from './no-css-border-radius'; -import noCssBorderRadiusLogical from './no-css-border-radius-logical'; -import noCssBorderInlineBlock from './no-css-border-inline-block'; -import noCssBorderInlineBlockLonghand from './no-css-border-inline-block-longhand'; -import noCssBorderInlineBlockIndividual from './no-css-border-inline-block-individual'; -import noCssBorderImage from './no-css-border-image'; -import noCssBlockInlineSize from './no-css-block-inline-size'; -import noCssBackgroundOrigin from './no-css-background-origin'; -import noCssBackgroundImage from './no-css-background-image'; -import noCssBackgroundClip from './no-css-background-clip'; -import noCssBackgroundBlendMode from './no-css-background-blend-mode'; -import noCssAspectRatio from './no-css-aspect-ratio'; -import noCssAnimation from './no-css-animation'; -import noCssAlignItems from './no-css-align-items'; -import noCssAccentColor from './no-css-accent-color'; +import noHtmlWbr from "./no-html-wbr"; +import noHtmlVideo from "./no-html-video"; +import noHtmlTextarea from "./no-html-textarea"; +import noHtmlTarget from "./no-html-target"; +import noHtmlSvg from "./no-html-svg"; +import noHtmlSrcset from "./no-html-srcset"; +import noHtmlSemantics from "./no-html-semantics"; +import noHtmlSelect from "./no-html-select"; +import noHtmlRuby from "./no-html-ruby"; +import noHtmlRt from "./no-html-rt"; +import noHtmlRp from "./no-html-rp"; +import noHtmlRole from "./no-html-role"; +import noHtmlRequired from "./no-html-required"; +import noHtmlProgress from "./no-html-progress"; +import noHtmlPicture from "./no-html-picture"; +import noHtmlObject from "./no-html-object"; +import noHtmlMeter from "./no-html-meter"; +import noHtmlMarquee from "./no-html-marquee"; +import noHtmlLoadingAttribute from "./no-html-loading-attribute"; +import noHtmlLink from "./no-html-link"; +import noHtmlLang from "./no-html-lang"; +import noHtmlInputText from "./no-html-input-text"; +import noHtmlInputSubmit from "./no-html-input-submit"; +import noHtmlInputReset from "./no-html-input-reset"; +import noHtmlInputRadio from "./no-html-input-radio"; +import noHtmlInputHidden from "./no-html-input-hidden"; +import noHtmlInputCheckbox from "./no-html-input-checkbox"; +import noHtmlForm from "./no-html-form"; +import noHtmlDoctype from "./no-html-doctype"; +import noHtmlDialog from "./no-html-dialog"; +import noHtmlDfn from "./no-html-dfn"; +import noHtmlButtonSubmit from "./no-html-button-submit"; +import noHtmlButtonReset from "./no-html-button-reset"; +import noHtmlBody from "./no-html-body"; +import noHtmlBdi from "./no-html-bdi"; +import noHtmlBase from "./no-html-base"; +import noHtmlAudio from "./no-html-audio"; +import noHtmlAriaLive from "./no-html-aria-live"; +import noHtmlAriaLabelledby from "./no-html-aria-labelledby"; +import noHtmlAriaLabel from "./no-html-aria-label"; +import noHtmlAriaHidden from "./no-html-aria-hidden"; +import noHtmlAriaDescribedby from "./no-html-aria-describedby"; +import noHtmlAnchorLinks from "./no-html-anchor-links"; +import noHtmlAbbr from "./no-html-abbr"; +import noCssWritingMode from "./no-css-writing-mode"; +import noCssWordBreak from "./no-css-word-break"; +import noCssVisibility from "./no-css-visibility"; +import noCssUnitVmin from "./no-css-unit-vmin"; +import noCssUnitVmax from "./no-css-unit-vmax"; +import noCssUnitVh from "./no-css-unit-vh"; +import noCssUnitRem from "./no-css-unit-rem"; +import noCssUnitInitial from "./no-css-unit-initial"; +import noCssUnitCh from "./no-css-unit-ch"; +import noCssUnitCalc from "./no-css-unit-calc"; +import noCssTransform from "./no-css-transform"; +import noCssTextUnderlineOffset from "./no-css-text-underline-offset"; +import noCssTextShadow from "./no-css-text-shadow"; +import noCssTextOverflow from "./no-css-text-overflow"; +import noCssTextEmphasis from "./no-css-text-emphasis"; +import noCssTextEmphasisPosition from "./no-css-text-emphasis-position"; +import noCssTextDecorationThickness from "./no-css-text-decoration-thickness"; +import noCssTextDecorationColor from "./no-css-text-decoration-color"; +import noCssTextAlignLast from "./no-css-text-align-last"; +import noCssTableLayout from "./no-css-table-layout"; +import noCssTabSize from "./no-css-tab-size"; +import noCssScrollSnap from "./no-css-scroll-snap"; +import noCssRgba from "./no-css-rgba"; +import noCssRadialGradient from "./no-css-radial-gradient"; +import noCssPosition from "./no-css-position"; +import noCssPaddingInlineStartEnd from "./no-css-padding-inline-start-end"; +import noCssPaddingInlineBlock from "./no-css-padding-inline-block"; +import noCssPaddingBlockStartEnd from "./no-css-padding-block-start-end"; +import noCssOverflowWrap from "./no-css-overflow-wrap"; +import noCssOutlineOffset from "./no-css-outline-offset"; +import noCssOpacity from "./no-css-opacity"; +import noCssObjectPosition from "./no-css-object-position"; +import noCssObjectFit from "./no-css-object-fit"; +import noCssModernColor from "./no-css-modern-color"; +import noCssMixBlendMode from "./no-css-mix-blend-mode"; +import noCssMinInlineSize from "./no-css-min-inline-size"; +import noCssMaxBlockSize from "./no-css-max-block-size"; +import noCssMarginInline from "./no-css-margin-inline"; +import noCssMarginInlineStartEnd from "./no-css-margin-inline-start-end"; +import noCssMarginInlineBlock from "./no-css-margin-inline-block"; +import noCssMarginBlockStartEnd from "./no-css-margin-block-start-end"; +import noCssListStyleImage from "./no-css-list-style-image"; +import noCssLinearGradient from "./no-css-linear-gradient"; +import noCssLeftRightTopBottom from "./no-css-left-right-top-bottom"; +import noCssJustifyContent from "./no-css-justify-content"; +import noCssIntrinsicSize from "./no-css-intrinsic-size"; +import noCssImportant from "./no-css-important"; +import noCssHyphens from "./no-css-hyphens"; +import noCssGridTemplate from "./no-css-grid-template"; +import noCssGap from "./no-css-gap"; +import noCssFunctionMin from "./no-css-function-min"; +import noCssFunctionMax from "./no-css-function-max"; +import noCssFunctionClamp from "./no-css-function-clamp"; +import noCssFontKerning from "./no-css-font-kerning"; +import noCssFlexWrap from "./no-css-flex-wrap"; +import noCssFlexDirection from "./no-css-flex-direction"; +import noCssFilter from "./no-css-filter"; +import noCssDisplayGrid from "./no-css-display-grid"; +import noCssDisplayFlex from "./no-css-display-flex"; +import noCssConicGradient from "./no-css-conic-gradient"; +import noCssColumnLayoutProperties from "./no-css-column-layout-properties"; +import noCssColumnCount from "./no-css-column-count"; +import noCssClipPath from "./no-css-clip-path"; +import noCssBoxSizing from "./no-css-box-sizing"; +import noCssBoxShadow from "./no-css-box-shadow"; +import noCssBorderRadius from "./no-css-border-radius"; +import noCssBorderRadiusLogical from "./no-css-border-radius-logical"; +import noCssBorderInlineBlock from "./no-css-border-inline-block"; +import noCssBorderInlineBlockLonghand from "./no-css-border-inline-block-longhand"; +import noCssBorderInlineBlockIndividual from "./no-css-border-inline-block-individual"; +import noCssBorderImage from "./no-css-border-image"; +import noCssBlockInlineSize from "./no-css-block-inline-size"; +import noCssBackgroundOrigin from "./no-css-background-origin"; +import noCssBackgroundImage from "./no-css-background-image"; +import noCssBackgroundClip from "./no-css-background-clip"; +import noCssBackgroundBlendMode from "./no-css-background-blend-mode"; +import noCssAspectRatio from "./no-css-aspect-ratio"; +import noCssAnimation from "./no-css-animation"; +import noCssAlignItems from "./no-css-align-items"; +import noCssAccentColor from "./no-css-accent-color"; export { noCssAccentColor }; export { noCssAlignItems }; @@ -246,4 +246,4 @@ export { noHtmlSvg }; export { noHtmlTarget }; export { noHtmlTextarea }; export { noHtmlVideo }; -export { noHtmlWbr }; \ No newline at end of file +export { noHtmlWbr }; diff --git a/packages/eslint-plugin/src/rules/generated/no-css-accent-color.ts b/packages/eslint-plugin/src/rules/generated/no-css-accent-color.ts index ff5a20a4a7..ef1a6eee9b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-accent-color.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-accent-color.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'accent-color', - 15.555555555555555, - 'https://www.caniemail.com/features/css-accent-color/' + "accent-color", + 15.555555555555555, + "https://www.caniemail.com/features/css-accent-color/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-align-items.ts b/packages/eslint-plugin/src/rules/generated/no-css-align-items.ts index c6792956b2..43a493b65b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-align-items.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-align-items.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'align-items', - 62.745098039215684, - 'https://www.caniemail.com/features/css-align-items/' + "align-items", + 62.745098039215684, + "https://www.caniemail.com/features/css-align-items/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-animation.ts b/packages/eslint-plugin/src/rules/generated/no-css-animation.ts index 47a33cf1ea..c85231ad9e 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-animation.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-animation.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'animation', - 30.851063829787233, - 'https://www.caniemail.com/features/css-animation/' + "animation", + 30.851063829787233, + "https://www.caniemail.com/features/css-animation/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-aspect-ratio.ts b/packages/eslint-plugin/src/rules/generated/no-css-aspect-ratio.ts index 95e6c40f73..a4e82216c5 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-aspect-ratio.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-aspect-ratio.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'aspect-ratio', - 34, - 'https://www.caniemail.com/features/css-aspect-ratio/' + "aspect-ratio", + 34, + "https://www.caniemail.com/features/css-aspect-ratio/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-background-blend-mode.ts b/packages/eslint-plugin/src/rules/generated/no-css-background-blend-mode.ts index 174df77f70..21da48ae83 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-background-blend-mode.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-background-blend-mode.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'background-blend-mode', - 63.829787234042556, - 'https://www.caniemail.com/features/css-background-blend-mode/' + "background-blend-mode", + 63.829787234042556, + "https://www.caniemail.com/features/css-background-blend-mode/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-background-clip.ts b/packages/eslint-plugin/src/rules/generated/no-css-background-clip.ts index 1171b4facd..8188379afd 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-background-clip.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-background-clip.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'background-clip', - 63.829787234042556, - 'https://www.caniemail.com/features/css-background-clip/' + "background-clip", + 63.829787234042556, + "https://www.caniemail.com/features/css-background-clip/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-background-image.ts b/packages/eslint-plugin/src/rules/generated/no-css-background-image.ts index 5368cd422e..c8b6ae1b18 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-background-image.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-background-image.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'background-image', - 72.1311475409836, - 'https://www.caniemail.com/features/css-background-image/' + "background-image", + 72.1311475409836, + "https://www.caniemail.com/features/css-background-image/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-background-origin.ts b/packages/eslint-plugin/src/rules/generated/no-css-background-origin.ts index c304df0ed6..e1f2454fa1 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-background-origin.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-background-origin.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'background-origin', - 63.829787234042556, - 'https://www.caniemail.com/features/css-background-origin/' + "background-origin", + 63.829787234042556, + "https://www.caniemail.com/features/css-background-origin/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-block-inline-size.ts b/packages/eslint-plugin/src/rules/generated/no-css-block-inline-size.ts index d94d50758a..28e5644a6a 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-block-inline-size.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-block-inline-size.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - ['block-size', 'inline-size'], - 48.46938775510204, - 'https://www.caniemail.com/features/css-block-inline-size/' + ["block-size", "inline-size"], + 48.46938775510204, + "https://www.caniemail.com/features/css-block-inline-size/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-border-image.ts b/packages/eslint-plugin/src/rules/generated/no-css-border-image.ts index a23af9bcbc..40bade995c 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-border-image.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-border-image.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'border-image', - 52.17391304347826, - 'https://www.caniemail.com/features/css-border-image/' + "border-image", + 52.17391304347826, + "https://www.caniemail.com/features/css-border-image/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-individual.ts b/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-individual.ts index 9a3fc6efc4..7a59bbfe5d 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-individual.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-individual.ts @@ -2,28 +2,28 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property- export default createNoStylePropertyRule( [ - 'border-inline-color', - 'border-inline-style', - 'border-inline-width', - 'border-inline-start', - 'border-inline-start-color', - 'border-inline-start-style', - 'border-inline-start-width', - 'border-inline-end-color', - 'border-inline-end-style', - 'border-inline-end-width', + "border-inline-color", + "border-inline-style", + "border-inline-width", + "border-inline-start", + "border-inline-start-color", + "border-inline-start-style", + "border-inline-start-width", + "border-inline-end-color", + "border-inline-end-style", + "border-inline-end-width", - 'border-block-color', - 'border-block-style', - 'border-block-width', - 'border-block-start', - 'border-block-start-color', - 'border-block-start-style', - 'border-block-start-width', - 'border-block-end-color', - 'border-block-end-style', - 'border-block-end-width', - ], - 31.944444444444443, - 'https://www.caniemail.com/features/css-border-inline-block-individual/' + "border-block-color", + "border-block-style", + "border-block-width", + "border-block-start", + "border-block-start-color", + "border-block-start-style", + "border-block-start-width", + "border-block-end-color", + "border-block-end-style", + "border-block-end-width", + ], + 31.944444444444443, + "https://www.caniemail.com/features/css-border-inline-block-individual/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-longhand.ts b/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-longhand.ts index fab872dbc3..24aff5508e 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-longhand.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block-longhand.ts @@ -1,7 +1,12 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['border-inline-start', 'border-inline-end', 'border-block-start', 'border-block-end'], - 39.351851851851855, - 'https://www.caniemail.com/features/css-border-inline-block-longhand/' + [ + "border-inline-start", + "border-inline-end", + "border-block-start", + "border-block-end", + ], + 39.351851851851855, + "https://www.caniemail.com/features/css-border-inline-block-longhand/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block.ts b/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block.ts index 34213c0499..1341857948 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-border-inline-block.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['border-inline', 'border-block'], - 26.5, - 'https://www.caniemail.com/features/css-border-inline-block/' + ["border-inline", "border-block"], + 26.5, + "https://www.caniemail.com/features/css-border-inline-block/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-border-radius-logical.ts b/packages/eslint-plugin/src/rules/generated/no-css-border-radius-logical.ts index 8f7a32df96..1108427f5b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-border-radius-logical.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-border-radius-logical.ts @@ -2,15 +2,15 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value export default createNoStyleValueKeywordRule( [ - 'border-start-end-radius', - 'border-end-end-radius', + "border-start-end-radius", + "border-end-end-radius", - 'border-top-left-radius', - 'border-top-right-radius', + "border-top-left-radius", + "border-top-right-radius", - 'border-bottom-left-radius', - 'border-bottom-right-radius', - ], - 14.880952380952381, - 'https://www.caniemail.com/features/css-border-radius-logical/' + "border-bottom-left-radius", + "border-bottom-right-radius", + ], + 14.880952380952381, + "https://www.caniemail.com/features/css-border-radius-logical/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-border-radius.ts b/packages/eslint-plugin/src/rules/generated/no-css-border-radius.ts index eb9ccb3d89..285da4535a 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-border-radius.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-border-radius.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'border-radius', - 73.46938775510205, - 'https://www.caniemail.com/features/css-border-radius/' + "border-radius", + 73.46938775510205, + "https://www.caniemail.com/features/css-border-radius/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-box-shadow.ts b/packages/eslint-plugin/src/rules/generated/no-css-box-shadow.ts index 3e71ac7e36..aa1fbbdafd 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-box-shadow.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-box-shadow.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'box-shadow', - 46.55172413793103, - 'https://www.caniemail.com/features/css-box-shadow/' + "box-shadow", + 46.55172413793103, + "https://www.caniemail.com/features/css-box-shadow/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-box-sizing.ts b/packages/eslint-plugin/src/rules/generated/no-css-box-sizing.ts index 91a0ce266d..645664f918 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-box-sizing.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-box-sizing.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'box-sizing', - 71.73913043478261, - 'https://www.caniemail.com/features/css-box-sizing/' + "box-sizing", + 71.73913043478261, + "https://www.caniemail.com/features/css-box-sizing/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-clip-path.ts b/packages/eslint-plugin/src/rules/generated/no-css-clip-path.ts index c5dd07ff01..6ea6ccba96 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-clip-path.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-clip-path.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'clip-path', - 44.339622641509436, - 'https://www.caniemail.com/features/css-clip-path/' + "clip-path", + 44.339622641509436, + "https://www.caniemail.com/features/css-clip-path/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-column-count.ts b/packages/eslint-plugin/src/rules/generated/no-css-column-count.ts index 59036221aa..15c2962cd7 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-column-count.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-column-count.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'column-count', - 67.3913043478261, - 'https://www.caniemail.com/features/css-column-count/' + "column-count", + 67.3913043478261, + "https://www.caniemail.com/features/css-column-count/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-column-layout-properties.ts b/packages/eslint-plugin/src/rules/generated/no-css-column-layout-properties.ts index bf423f509e..e16ef25b9f 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-column-layout-properties.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-column-layout-properties.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['columns', 'column-fill', 'column-rule', 'column-gap', 'column-span'], - 51.973684210526315, - 'https://www.caniemail.com/features/css-column-layout-properties/' + ["columns", "column-fill", "column-rule", "column-gap", "column-span"], + 51.973684210526315, + "https://www.caniemail.com/features/css-column-layout-properties/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-conic-gradient.ts b/packages/eslint-plugin/src/rules/generated/no-css-conic-gradient.ts index 8d466890c0..8445c86c66 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-conic-gradient.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-conic-gradient.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'conic-gradient', - 39.1025641025641, - 'https://www.caniemail.com/features/css-conic-gradient/' + "conic-gradient", + 39.1025641025641, + "https://www.caniemail.com/features/css-conic-gradient/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-display-flex.ts b/packages/eslint-plugin/src/rules/generated/no-css-display-flex.ts index 0e38fabc5d..6a38bf5741 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-display-flex.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-display-flex.ts @@ -1,8 +1,8 @@ import { createNoStyleValueForProperty } from "../../utils/create-no-style-value-for-property"; export default createNoStyleValueForProperty( - 'flex', - 'display', - 67.24137931034483, - 'https://www.caniemail.com/features/css-display-flex/' + "flex", + "display", + 67.24137931034483, + "https://www.caniemail.com/features/css-display-flex/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-display-grid.ts b/packages/eslint-plugin/src/rules/generated/no-css-display-grid.ts index d3b15779bc..4932281b5f 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-display-grid.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-display-grid.ts @@ -1,8 +1,8 @@ import { createNoStyleValueForProperty } from "../../utils/create-no-style-value-for-property"; export default createNoStyleValueForProperty( - 'grid', - 'display', - 54.347826086956516, - 'https://www.caniemail.com/features/css-display-grid/' + "grid", + "display", + 54.347826086956516, + "https://www.caniemail.com/features/css-display-grid/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-filter.ts b/packages/eslint-plugin/src/rules/generated/no-css-filter.ts index 1b3fcabe35..64689cb61c 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-filter.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-filter.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'filter', - 50, - 'https://www.caniemail.com/features/css-filter/' + "filter", + 50, + "https://www.caniemail.com/features/css-filter/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-flex-direction.ts b/packages/eslint-plugin/src/rules/generated/no-css-flex-direction.ts index 65db54f43b..fc5d1edd40 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-flex-direction.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-flex-direction.ts @@ -1,8 +1,8 @@ import { createNoStyleValueForProperty } from "../../utils/create-no-style-value-for-property"; export default createNoStyleValueForProperty( - 'column', - 'flex-direction', - 50, - 'https://www.caniemail.com/features/css-flex-direction/' + "column", + "flex-direction", + 50, + "https://www.caniemail.com/features/css-flex-direction/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-flex-wrap.ts b/packages/eslint-plugin/src/rules/generated/no-css-flex-wrap.ts index f48fcc1f95..9709ce022c 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-flex-wrap.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-flex-wrap.ts @@ -1,8 +1,8 @@ import { createNoStyleValueForProperty } from "../../utils/create-no-style-value-for-property"; export default createNoStyleValueForProperty( - 'wrap', - 'flex-wrap', - 49.09090909090909, - 'https://www.caniemail.com/features/css-flex-wrap/' + "wrap", + "flex-wrap", + 49.09090909090909, + "https://www.caniemail.com/features/css-flex-wrap/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-font-kerning.ts b/packages/eslint-plugin/src/rules/generated/no-css-font-kerning.ts index 6c50e5f7fd..34fb2ed5bc 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-font-kerning.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-font-kerning.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'font-kerning', - 66.66666666666666, - 'https://www.caniemail.com/features/css-font-kerning/' + "font-kerning", + 66.66666666666666, + "https://www.caniemail.com/features/css-font-kerning/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-function-clamp.ts b/packages/eslint-plugin/src/rules/generated/no-css-function-clamp.ts index daa3e6f4be..4f26847382 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-function-clamp.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-function-clamp.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'clamp', - 42.857142857142854, - 'https://www.caniemail.com/features/css-function-clamp/' + "clamp", + 42.857142857142854, + "https://www.caniemail.com/features/css-function-clamp/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-function-max.ts b/packages/eslint-plugin/src/rules/generated/no-css-function-max.ts index 03a1749dac..5cb9e34584 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-function-max.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-function-max.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'max', - 48.97959183673469, - 'https://www.caniemail.com/features/css-function-max/' + "max", + 48.97959183673469, + "https://www.caniemail.com/features/css-function-max/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-function-min.ts b/packages/eslint-plugin/src/rules/generated/no-css-function-min.ts index 96d3ef96f0..998c0bacae 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-function-min.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-function-min.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'min', - 48.97959183673469, - 'https://www.caniemail.com/features/css-function-min/' + "min", + 48.97959183673469, + "https://www.caniemail.com/features/css-function-min/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-gap.ts b/packages/eslint-plugin/src/rules/generated/no-css-gap.ts index eaef6c1dcb..1a695aecfd 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-gap.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-gap.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['gap', 'row-gap', 'column-gap'], - 48.75, - 'https://www.caniemail.com/features/css-gap/' + ["gap", "row-gap", "column-gap"], + 48.75, + "https://www.caniemail.com/features/css-gap/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-grid-template.ts b/packages/eslint-plugin/src/rules/generated/no-css-grid-template.ts index 9be03f4f50..297c07976d 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-grid-template.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-grid-template.ts @@ -1,7 +1,12 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['grid-template', 'grid-template-areas', 'grid-template-columns', 'grid-template-rows'], - 37.765957446808514, - 'https://www.caniemail.com/features/css-grid-template/' + [ + "grid-template", + "grid-template-areas", + "grid-template-columns", + "grid-template-rows", + ], + 37.765957446808514, + "https://www.caniemail.com/features/css-grid-template/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-hyphens.ts b/packages/eslint-plugin/src/rules/generated/no-css-hyphens.ts index d54f44f8df..016f2aaf1a 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-hyphens.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-hyphens.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'hyphens', - 38.88888888888889, - 'https://www.caniemail.com/features/css-hyphens/' + "hyphens", + 38.88888888888889, + "https://www.caniemail.com/features/css-hyphens/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-important.ts b/packages/eslint-plugin/src/rules/generated/no-css-important.ts index 4bb2758c49..6565eda2d3 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-important.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-important.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - '!important', - 66.30434782608695, - 'https://www.caniemail.com/features/css-important/' + "!important", + 66.30434782608695, + "https://www.caniemail.com/features/css-important/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-intrinsic-size.ts b/packages/eslint-plugin/src/rules/generated/no-css-intrinsic-size.ts index f9cbc5656b..6b020a4226 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-intrinsic-size.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-intrinsic-size.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - ['fit-content', 'min-content', 'max-content'], - 52.702702702702695, - 'https://www.caniemail.com/features/css-intrinsic-size/' + ["fit-content", "min-content", "max-content"], + 52.702702702702695, + "https://www.caniemail.com/features/css-intrinsic-size/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-justify-content.ts b/packages/eslint-plugin/src/rules/generated/no-css-justify-content.ts index 565f9f7a2a..ab8bed1bc1 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-justify-content.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-justify-content.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'justify-content', - 59.25925925925925, - 'https://www.caniemail.com/features/css-justify-content/' + "justify-content", + 59.25925925925925, + "https://www.caniemail.com/features/css-justify-content/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-left-right-top-bottom.ts b/packages/eslint-plugin/src/rules/generated/no-css-left-right-top-bottom.ts index 84b3402a55..793dfb96f8 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-left-right-top-bottom.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-left-right-top-bottom.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - ['left', 'right', 'top', 'bottom'], + ["left", "right", "top", "bottom"], 64.13043478260869, - 'https://www.caniemail.com/features/css-left-right-top-bottom/' + "https://www.caniemail.com/features/css-left-right-top-bottom/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-linear-gradient.ts b/packages/eslint-plugin/src/rules/generated/no-css-linear-gradient.ts index 10422d1f30..06d05c96e2 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-linear-gradient.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-linear-gradient.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'linear-gradient', - 58.333333333333336, - 'https://www.caniemail.com/features/css-linear-gradient/' + "linear-gradient", + 58.333333333333336, + "https://www.caniemail.com/features/css-linear-gradient/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-list-style-image.ts b/packages/eslint-plugin/src/rules/generated/no-css-list-style-image.ts index 5713289343..715bc66dae 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-list-style-image.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-list-style-image.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'list-style-image', - 54.166666666666664, - 'https://www.caniemail.com/features/css-list-style-image/' + "list-style-image", + 54.166666666666664, + "https://www.caniemail.com/features/css-list-style-image/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-margin-block-start-end.ts b/packages/eslint-plugin/src/rules/generated/no-css-margin-block-start-end.ts index c2991c89f1..7e7213df41 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-margin-block-start-end.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-margin-block-start-end.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['margin-block-start', 'margin-block-end'], - 38.20754716981132, - 'https://www.caniemail.com/features/css-margin-block-start-end/' + ["margin-block-start", "margin-block-end"], + 38.20754716981132, + "https://www.caniemail.com/features/css-margin-block-start-end/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-block.ts b/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-block.ts index 097e16ff8d..23780e76b2 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-block.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-block.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['margin-inline', 'margin-block'], - 23.11320754716981, - 'https://www.caniemail.com/features/css-margin-inline-block/' + ["margin-inline", "margin-block"], + 23.11320754716981, + "https://www.caniemail.com/features/css-margin-inline-block/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-start-end.ts b/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-start-end.ts index 16ee14d09d..2353dfcb0d 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-start-end.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-margin-inline-start-end.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['margin-inline-start', 'margin-inline-end'], - 38.20754716981132, - 'https://www.caniemail.com/features/css-margin-inline-start-end/' + ["margin-inline-start", "margin-inline-end"], + 38.20754716981132, + "https://www.caniemail.com/features/css-margin-inline-start-end/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-margin-inline.ts b/packages/eslint-plugin/src/rules/generated/no-css-margin-inline.ts index aa6476b634..99547a3ed6 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-margin-inline.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-margin-inline.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'margin-inline', - 43.39622641509434, - 'https://www.caniemail.com/features/css-margin-inline/' + "margin-inline", + 43.39622641509434, + "https://www.caniemail.com/features/css-margin-inline/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-max-block-size.ts b/packages/eslint-plugin/src/rules/generated/no-css-max-block-size.ts index 70951d54d0..eeb6d0ebeb 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-max-block-size.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-max-block-size.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'max-block-size', - 42.26190476190476, - 'https://www.caniemail.com/features/css-max-block-size/' + "max-block-size", + 42.26190476190476, + "https://www.caniemail.com/features/css-max-block-size/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-min-inline-size.ts b/packages/eslint-plugin/src/rules/generated/no-css-min-inline-size.ts index 8ced75edc2..fc20a42e35 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-min-inline-size.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-min-inline-size.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'min-inline-size', - 41.11111111111111, - 'https://www.caniemail.com/features/css-min-inline-size/' + "min-inline-size", + 41.11111111111111, + "https://www.caniemail.com/features/css-min-inline-size/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-mix-blend-mode.ts b/packages/eslint-plugin/src/rules/generated/no-css-mix-blend-mode.ts index d84fd3ce9c..b18aa1da2a 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-mix-blend-mode.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-mix-blend-mode.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'mix-blend-mode', - 64.70588235294117, - 'https://www.caniemail.com/features/css-mix-blend-mode/' + "mix-blend-mode", + 64.70588235294117, + "https://www.caniemail.com/features/css-mix-blend-mode/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-modern-color.ts b/packages/eslint-plugin/src/rules/generated/no-css-modern-color.ts index 889c7c2e40..66fc204c2a 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-modern-color.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-modern-color.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - ['lch', 'oklch', 'lab', 'oklab'], - 27.027027027027028, - 'https://www.caniemail.com/features/css-modern-color/' + ["lch", "oklch", "lab", "oklab"], + 27.027027027027028, + "https://www.caniemail.com/features/css-modern-color/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-object-fit.ts b/packages/eslint-plugin/src/rules/generated/no-css-object-fit.ts index 4de83670fe..29e761b8b4 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-object-fit.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-object-fit.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'object-fit', - 59.183673469387756, - 'https://www.caniemail.com/features/css-object-fit/' + "object-fit", + 59.183673469387756, + "https://www.caniemail.com/features/css-object-fit/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-object-position.ts b/packages/eslint-plugin/src/rules/generated/no-css-object-position.ts index 644f1b7f06..a156456609 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-object-position.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-object-position.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'object-position', - 57.14285714285714, - 'https://www.caniemail.com/features/css-object-position/' + "object-position", + 57.14285714285714, + "https://www.caniemail.com/features/css-object-position/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-opacity.ts b/packages/eslint-plugin/src/rules/generated/no-css-opacity.ts index 4a9a555439..aadfd0ce83 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-opacity.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-opacity.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'opacity', - 63.04347826086957, - 'https://www.caniemail.com/features/css-opacity/' + "opacity", + 63.04347826086957, + "https://www.caniemail.com/features/css-opacity/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-outline-offset.ts b/packages/eslint-plugin/src/rules/generated/no-css-outline-offset.ts index 1c66cc99c0..8266bfe6d6 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-outline-offset.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-outline-offset.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'outline-offset', - 42.5, - 'https://www.caniemail.com/features/css-outline-offset/' + "outline-offset", + 42.5, + "https://www.caniemail.com/features/css-outline-offset/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-overflow-wrap.ts b/packages/eslint-plugin/src/rules/generated/no-css-overflow-wrap.ts index 2e3398b7d5..a5654e4c59 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-overflow-wrap.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-overflow-wrap.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'overflow-wrap', - 14.444444444444443, - 'https://www.caniemail.com/features/css-overflow-wrap/' + "overflow-wrap", + 14.444444444444443, + "https://www.caniemail.com/features/css-overflow-wrap/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-padding-block-start-end.ts b/packages/eslint-plugin/src/rules/generated/no-css-padding-block-start-end.ts index 25c21fdbf9..fa4421b245 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-padding-block-start-end.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-padding-block-start-end.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['padding-block-start', 'padding-block-end'], - 38.20754716981132, - 'https://www.caniemail.com/features/css-padding-block-start-end/' + ["padding-block-start", "padding-block-end"], + 38.20754716981132, + "https://www.caniemail.com/features/css-padding-block-start-end/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-block.ts b/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-block.ts index 4f00d30f9e..e1f2b22a03 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-block.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-block.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['padding-inline', 'padding-block'], - 23.11320754716981, - 'https://www.caniemail.com/features/css-padding-inline-block/' + ["padding-inline", "padding-block"], + 23.11320754716981, + "https://www.caniemail.com/features/css-padding-inline-block/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-start-end.ts b/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-start-end.ts index d25a19bd3d..561782e3ef 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-start-end.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-padding-inline-start-end.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - ['padding-inline-start', 'padding-inline-end'], - 38.20754716981132, - 'https://www.caniemail.com/features/css-padding-inline-start-end/' + ["padding-inline-start", "padding-inline-end"], + 38.20754716981132, + "https://www.caniemail.com/features/css-padding-inline-start-end/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-position.ts b/packages/eslint-plugin/src/rules/generated/no-css-position.ts index c8a709beb0..a6c5cb683d 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-position.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-position.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'position', - 52.17391304347826, - 'https://www.caniemail.com/features/css-position/' + "position", + 52.17391304347826, + "https://www.caniemail.com/features/css-position/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-radial-gradient.ts b/packages/eslint-plugin/src/rules/generated/no-css-radial-gradient.ts index 33c02eaf72..24fdeb44ae 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-radial-gradient.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-radial-gradient.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'radial-gradient', - 64.58333333333334, - 'https://www.caniemail.com/features/css-radial-gradient/' + "radial-gradient", + 64.58333333333334, + "https://www.caniemail.com/features/css-radial-gradient/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-rgba.ts b/packages/eslint-plugin/src/rules/generated/no-css-rgba.ts index e1756c5097..e06e48a205 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-rgba.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-rgba.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'rgba', - 67, - 'https://www.caniemail.com/features/css-rgba/' + "rgba", + 67, + "https://www.caniemail.com/features/css-rgba/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-scroll-snap.ts b/packages/eslint-plugin/src/rules/generated/no-css-scroll-snap.ts index ca6c87b843..5a0777b5df 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-scroll-snap.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-scroll-snap.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'scroll-snap-type', - 38.88888888888889, - 'https://www.caniemail.com/features/css-scroll-snap/' + "scroll-snap-type", + 38.88888888888889, + "https://www.caniemail.com/features/css-scroll-snap/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-tab-size.ts b/packages/eslint-plugin/src/rules/generated/no-css-tab-size.ts index 8b60895a06..b21a0f71a0 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-tab-size.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-tab-size.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'tab-size', - 40.56603773584906, - 'https://www.caniemail.com/features/css-tab-size/' + "tab-size", + 40.56603773584906, + "https://www.caniemail.com/features/css-tab-size/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-table-layout.ts b/packages/eslint-plugin/src/rules/generated/no-css-table-layout.ts index 28e12b9e24..128c15a03b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-table-layout.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-table-layout.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'table-layout', - 61.111111111111114, - 'https://www.caniemail.com/features/css-table-layout/' + "table-layout", + 61.111111111111114, + "https://www.caniemail.com/features/css-table-layout/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-align-last.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-align-last.ts index 8b23c7cf38..27dc634058 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-align-last.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-align-last.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-align-last', - 42.30769230769231, - 'https://www.caniemail.com/features/css-text-align-last/' + "text-align-last", + 42.30769230769231, + "https://www.caniemail.com/features/css-text-align-last/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-color.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-color.ts index 7cf7c326c6..109de5d63c 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-color.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-color.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-decoration-color', - 72.44897959183673, - 'https://www.caniemail.com/features/css-text-decoration-color/' + "text-decoration-color", + 72.44897959183673, + "https://www.caniemail.com/features/css-text-decoration-color/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-thickness.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-thickness.ts index 4294907353..66fb3b6d28 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-thickness.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-decoration-thickness.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-decoration-thickness', - 39.166666666666664, - 'https://www.caniemail.com/features/css-text-decoration-thickness/' + "text-decoration-thickness", + 39.166666666666664, + "https://www.caniemail.com/features/css-text-decoration-thickness/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis-position.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis-position.ts index 9c61ab1204..98c1f69fc4 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis-position.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis-position.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-emphasis-position', - 35.204081632653065, - 'https://www.caniemail.com/features/css-text-emphasis-position/' + "text-emphasis-position", + 35.204081632653065, + "https://www.caniemail.com/features/css-text-emphasis-position/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis.ts index dd8e9da2bd..61e7a7b61e 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-emphasis.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-emphasis', - 43.36734693877551, - 'https://www.caniemail.com/features/css-text-emphasis/' + "text-emphasis", + 43.36734693877551, + "https://www.caniemail.com/features/css-text-emphasis/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-overflow.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-overflow.ts index b4061af45d..acf2f99b4d 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-overflow.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-overflow.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-overflow', - 60.86956521739131, - 'https://www.caniemail.com/features/css-text-overflow/' + "text-overflow", + 60.86956521739131, + "https://www.caniemail.com/features/css-text-overflow/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-shadow.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-shadow.ts index ecb90f5316..7fed2218a9 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-shadow.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-shadow.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-shadow', - 69.56521739130434, - 'https://www.caniemail.com/features/css-text-shadow/' + "text-shadow", + 69.56521739130434, + "https://www.caniemail.com/features/css-text-shadow/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-text-underline-offset.ts b/packages/eslint-plugin/src/rules/generated/no-css-text-underline-offset.ts index bc1ea91113..8d775b213a 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-text-underline-offset.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-text-underline-offset.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'text-underline-offset', - 39.285714285714285, - 'https://www.caniemail.com/features/css-text-underline-offset/' + "text-underline-offset", + 39.285714285714285, + "https://www.caniemail.com/features/css-text-underline-offset/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-transform.ts b/packages/eslint-plugin/src/rules/generated/no-css-transform.ts index 37a4737ad6..555cbc5abc 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-transform.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-transform.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'transform', - 50, - 'https://www.caniemail.com/features/css-transform/' + "transform", + 50, + "https://www.caniemail.com/features/css-transform/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-unit-calc.ts b/packages/eslint-plugin/src/rules/generated/no-css-unit-calc.ts index 060fab835b..e5270a57ce 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-unit-calc.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-unit-calc.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'calc', - 58.333333333333336, - 'https://www.caniemail.com/features/css-unit-calc/' + "calc", + 58.333333333333336, + "https://www.caniemail.com/features/css-unit-calc/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-unit-ch.ts b/packages/eslint-plugin/src/rules/generated/no-css-unit-ch.ts index f6c4615fdc..9f729d51d6 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-unit-ch.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-unit-ch.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'ch', - 66.66666666666666, - 'https://www.caniemail.com/features/css-unit-ch/' + "ch", + 66.66666666666666, + "https://www.caniemail.com/features/css-unit-ch/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-unit-initial.ts b/packages/eslint-plugin/src/rules/generated/no-css-unit-initial.ts index 88115966f3..3e7d11e2fb 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-unit-initial.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-unit-initial.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'initial', - 62.5, - 'https://www.caniemail.com/features/css-unit-initial/' + "initial", + 62.5, + "https://www.caniemail.com/features/css-unit-initial/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-unit-rem.ts b/packages/eslint-plugin/src/rules/generated/no-css-unit-rem.ts index f60cc753e2..1d9f5ecba9 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-unit-rem.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-unit-rem.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'rem', - 66.66666666666666, - 'https://www.caniemail.com/features/css-unit-rem/' + "rem", + 66.66666666666666, + "https://www.caniemail.com/features/css-unit-rem/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-unit-vh.ts b/packages/eslint-plugin/src/rules/generated/no-css-unit-vh.ts index c40c93693b..83023963e2 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-unit-vh.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-unit-vh.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'vh', - 72, - 'https://www.caniemail.com/features/css-unit-vh/' + "vh", + 72, + "https://www.caniemail.com/features/css-unit-vh/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-unit-vmax.ts b/packages/eslint-plugin/src/rules/generated/no-css-unit-vmax.ts index 6d70b22cce..7ee08d8ae9 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-unit-vmax.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-unit-vmax.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'vmax', - 64.58333333333334, - 'https://www.caniemail.com/features/css-unit-vmax/' + "vmax", + 64.58333333333334, + "https://www.caniemail.com/features/css-unit-vmax/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-unit-vmin.ts b/packages/eslint-plugin/src/rules/generated/no-css-unit-vmin.ts index e48e599e1e..da49b6857f 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-unit-vmin.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-unit-vmin.ts @@ -1,7 +1,7 @@ import { createNoStyleValueKeywordRule } from "../../utils/create-no-style-value-keyword-rule"; export default createNoStyleValueKeywordRule( - 'vmin', - 62.5, - 'https://www.caniemail.com/features/css-unit-vmin/' + "vmin", + 62.5, + "https://www.caniemail.com/features/css-unit-vmin/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-visibility.ts b/packages/eslint-plugin/src/rules/generated/no-css-visibility.ts index fbe4996e68..3322d558c9 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-visibility.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-visibility.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'visibility', - 71.73913043478261, - 'https://www.caniemail.com/features/css-visibility/' + "visibility", + 71.73913043478261, + "https://www.caniemail.com/features/css-visibility/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-word-break.ts b/packages/eslint-plugin/src/rules/generated/no-css-word-break.ts index fec5393a10..1eb0968ecb 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-word-break.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-word-break.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'word-break', - 47.77777777777778, - 'https://www.caniemail.com/features/css-word-break/' + "word-break", + 47.77777777777778, + "https://www.caniemail.com/features/css-word-break/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-css-writing-mode.ts b/packages/eslint-plugin/src/rules/generated/no-css-writing-mode.ts index b4fa7d2f7e..31c650315b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-css-writing-mode.ts +++ b/packages/eslint-plugin/src/rules/generated/no-css-writing-mode.ts @@ -1,7 +1,7 @@ import { createNoStylePropertyRule } from "../../utils/create-no-style-property-rule"; export default createNoStylePropertyRule( - 'writing-mode', - 58.333333333333336, - 'https://www.caniemail.com/features/css-writing-mode/' + "writing-mode", + 58.333333333333336, + "https://www.caniemail.com/features/css-writing-mode/", ); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-abbr.ts b/packages/eslint-plugin/src/rules/generated/no-html-abbr.ts index 3ee73cb6fe..9ec04e37b5 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-abbr.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-abbr.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'abbr', + "abbr", 56.875, - 'https://www.caniemail.com/features/html-abbr/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-abbr/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-anchor-links.ts b/packages/eslint-plugin/src/rules/generated/no-html-anchor-links.ts index ac03171150..30e0958016 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-anchor-links.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-anchor-links.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'anchor-links', + "anchor-links", 54.59183673469388, - 'https://www.caniemail.com/features/html-anchor-links/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-anchor-links/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-aria-describedby.ts b/packages/eslint-plugin/src/rules/generated/no-html-aria-describedby.ts index af5a195e70..b5f7858f51 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-aria-describedby.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-aria-describedby.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'aria-describedby', + "aria-describedby", 41.30434782608695, - 'https://www.caniemail.com/features/html-aria-describedby/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-aria-describedby/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-aria-hidden.ts b/packages/eslint-plugin/src/rules/generated/no-html-aria-hidden.ts index 0839495109..286b50fcd7 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-aria-hidden.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-aria-hidden.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'aria-hidden', + "aria-hidden", 67.3913043478261, - 'https://www.caniemail.com/features/html-aria-hidden/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-aria-hidden/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-aria-label.ts b/packages/eslint-plugin/src/rules/generated/no-html-aria-label.ts index 46880db930..80541f53c7 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-aria-label.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-aria-label.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'aria-label', + "aria-label", 67.3913043478261, - 'https://www.caniemail.com/features/html-aria-label/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-aria-label/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-aria-labelledby.ts b/packages/eslint-plugin/src/rules/generated/no-html-aria-labelledby.ts index fa12f32f44..0fd7f79b3c 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-aria-labelledby.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-aria-labelledby.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'aria-labelledby', + "aria-labelledby", 46, - 'https://www.caniemail.com/features/html-aria-labelledby/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-aria-labelledby/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-aria-live.ts b/packages/eslint-plugin/src/rules/generated/no-html-aria-live.ts index 6154733200..701c41df54 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-aria-live.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-aria-live.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'aria-live', + "aria-live", 55.434782608695656, - 'https://www.caniemail.com/features/html-aria-live/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-aria-live/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-audio.ts b/packages/eslint-plugin/src/rules/generated/no-html-audio.ts index 8c1018f0cf..5746de9280 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-audio.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-audio.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'audio', + "audio", 31.57894736842105, - 'https://www.caniemail.com/features/html-audio/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-audio/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-base.ts b/packages/eslint-plugin/src/rules/generated/no-html-base.ts index 9831599982..18cdaf8507 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-base.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-base.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'base', + "base", 39.67391304347826, - 'https://www.caniemail.com/features/html-base/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-base/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-bdi.ts b/packages/eslint-plugin/src/rules/generated/no-html-bdi.ts index c645c6df57..40f78698a6 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-bdi.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-bdi.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'bdi', + "bdi", 39.130434782608695, - 'https://www.caniemail.com/features/html-bdi/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-bdi/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-body.ts b/packages/eslint-plugin/src/rules/generated/no-html-body.ts index e688a3dd4a..1675aef940 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-body.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-body.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'body', + "body", 54.44444444444444, - 'https://www.caniemail.com/features/html-body/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-body/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-button-reset.ts b/packages/eslint-plugin/src/rules/generated/no-html-button-reset.ts index e55f8eedc6..1eb2a94473 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-button-reset.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-button-reset.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'button-reset', + "button-reset", 54.807692307692314, - 'https://www.caniemail.com/features/html-button-reset/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-button-reset/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-button-submit.ts b/packages/eslint-plugin/src/rules/generated/no-html-button-submit.ts index 9613b3efb1..7e81914bf8 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-button-submit.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-button-submit.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'button-submit', + "button-submit", 59.61538461538461, - 'https://www.caniemail.com/features/html-button-submit/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-button-submit/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-dfn.ts b/packages/eslint-plugin/src/rules/generated/no-html-dfn.ts index f1abee0e23..c139a08326 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-dfn.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-dfn.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'dfn', + "dfn", 64.375, - 'https://www.caniemail.com/features/html-dfn/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-dfn/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-dialog.ts b/packages/eslint-plugin/src/rules/generated/no-html-dialog.ts index 240e6b5896..14cd297ad2 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-dialog.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-dialog.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'dialog', + "dialog", 34.78260869565217, - 'https://www.caniemail.com/features/html-dialog/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-dialog/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-doctype.ts b/packages/eslint-plugin/src/rules/generated/no-html-doctype.ts index 0db4d73c32..4693377f01 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-doctype.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-doctype.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'doctype', + "doctype", 67.64705882352942, - 'https://www.caniemail.com/features/html-doctype/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-doctype/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-form.ts b/packages/eslint-plugin/src/rules/generated/no-html-form.ts index 0104b314be..9767222d52 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-form.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-form.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'form', + "form", 43.39622641509434, - 'https://www.caniemail.com/features/html-form/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-form/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-input-checkbox.ts b/packages/eslint-plugin/src/rules/generated/no-html-input-checkbox.ts index 99ff6ab06d..008171a7d1 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-input-checkbox.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-input-checkbox.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'input-checkbox', + "input-checkbox", 52.77777777777778, - 'https://www.caniemail.com/features/html-input-checkbox/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-input-checkbox/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-input-hidden.ts b/packages/eslint-plugin/src/rules/generated/no-html-input-hidden.ts index ec71944577..5aff85637c 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-input-hidden.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-input-hidden.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'input-hidden', + "input-hidden", 52.77777777777778, - 'https://www.caniemail.com/features/html-input-hidden/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-input-hidden/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-input-radio.ts b/packages/eslint-plugin/src/rules/generated/no-html-input-radio.ts index bf1d57e197..887ae5f9cc 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-input-radio.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-input-radio.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'input-radio', + "input-radio", 52.77777777777778, - 'https://www.caniemail.com/features/html-input-radio/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-input-radio/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-input-reset.ts b/packages/eslint-plugin/src/rules/generated/no-html-input-reset.ts index 38b8ffc639..792af4a2f4 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-input-reset.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-input-reset.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'input-reset', + "input-reset", 51.85185185185185, - 'https://www.caniemail.com/features/html-input-reset/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-input-reset/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-input-submit.ts b/packages/eslint-plugin/src/rules/generated/no-html-input-submit.ts index 18db1b4bef..2ecbc89164 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-input-submit.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-input-submit.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'input-submit', + "input-submit", 45.370370370370374, - 'https://www.caniemail.com/features/html-input-submit/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-input-submit/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-input-text.ts b/packages/eslint-plugin/src/rules/generated/no-html-input-text.ts index ab1d91d834..c2ed754af5 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-input-text.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-input-text.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'input-text', + "input-text", 46.36363636363636, - 'https://www.caniemail.com/features/html-input-text/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-input-text/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-lang.ts b/packages/eslint-plugin/src/rules/generated/no-html-lang.ts index 5e37561b40..90b0d7dcac 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-lang.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-lang.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'lang', + "lang", 69.89795918367348, - 'https://www.caniemail.com/features/html-lang/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-lang/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-link.ts b/packages/eslint-plugin/src/rules/generated/no-html-link.ts index c2adda8201..6e4dbd4c9f 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-link.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-link.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'link', + "link", 31.914893617021278, - 'https://www.caniemail.com/features/html-link/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-link/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-loading-attribute.ts b/packages/eslint-plugin/src/rules/generated/no-html-loading-attribute.ts index e1bb762848..9e0eeb519b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-loading-attribute.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-loading-attribute.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'loading-attribute', + "loading-attribute", 30.208333333333332, - 'https://www.caniemail.com/features/html-loading-attribute/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-loading-attribute/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-marquee.ts b/packages/eslint-plugin/src/rules/generated/no-html-marquee.ts index 3a91f5efc3..541a70b447 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-marquee.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-marquee.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'marquee', + "marquee", 58.490566037735846, - 'https://www.caniemail.com/features/html-marquee/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-marquee/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-meter.ts b/packages/eslint-plugin/src/rules/generated/no-html-meter.ts index 28187d500e..7ed8484b9e 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-meter.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-meter.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'meter', + "meter", 46.73913043478261, - 'https://www.caniemail.com/features/html-meter/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-meter/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-object.ts b/packages/eslint-plugin/src/rules/generated/no-html-object.ts index 1a4587d490..2318093ee1 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-object.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-object.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'object', + "object", 9.574468085106384, - 'https://www.caniemail.com/features/html-object/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-object/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-picture.ts b/packages/eslint-plugin/src/rules/generated/no-html-picture.ts index a073a199b6..be70662022 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-picture.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-picture.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'picture', + "picture", 32, - 'https://www.caniemail.com/features/html-picture/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-picture/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-progress.ts b/packages/eslint-plugin/src/rules/generated/no-html-progress.ts index 91dcbdb154..a239b03060 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-progress.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-progress.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'progress', + "progress", 40.21739130434783, - 'https://www.caniemail.com/features/html-progress/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-progress/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-required.ts b/packages/eslint-plugin/src/rules/generated/no-html-required.ts index 1f07c97515..8c24c78d7b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-required.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-required.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'required', + "required", 37.5, - 'https://www.caniemail.com/features/html-required/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-required/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-role.ts b/packages/eslint-plugin/src/rules/generated/no-html-role.ts index d5822fdeb1..25a948134d 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-role.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-role.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'role', + "role", 66.66666666666666, - 'https://www.caniemail.com/features/html-role/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-role/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-rp.ts b/packages/eslint-plugin/src/rules/generated/no-html-rp.ts index 811b29774b..74989d3c29 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-rp.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-rp.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'rp', + "rp", 59.78260869565217, - 'https://www.caniemail.com/features/html-rp/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-rp/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-rt.ts b/packages/eslint-plugin/src/rules/generated/no-html-rt.ts index c1f23df1e0..2a9b99934b 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-rt.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-rt.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'rt', + "rt", 59.78260869565217, - 'https://www.caniemail.com/features/html-rt/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-rt/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-ruby.ts b/packages/eslint-plugin/src/rules/generated/no-html-ruby.ts index d9d25dda63..6fc0a466dd 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-ruby.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-ruby.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'ruby', + "ruby", 59.78260869565217, - 'https://www.caniemail.com/features/html-ruby/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-ruby/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-select.ts b/packages/eslint-plugin/src/rules/generated/no-html-select.ts index fd9a5e06cf..cf9f5b7205 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-select.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-select.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'select', + "select", 57.407407407407405, - 'https://www.caniemail.com/features/html-select/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-select/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-semantics.ts b/packages/eslint-plugin/src/rules/generated/no-html-semantics.ts index 87d24933e4..b279009ce3 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-semantics.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-semantics.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'semantics', + "semantics", 48.97959183673469, - 'https://www.caniemail.com/features/html-semantics/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-semantics/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-srcset.ts b/packages/eslint-plugin/src/rules/generated/no-html-srcset.ts index 88498adf69..c82be12761 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-srcset.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-srcset.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'srcset', + "srcset", 32.6530612244898, - 'https://www.caniemail.com/features/html-srcset/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-srcset/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-svg.ts b/packages/eslint-plugin/src/rules/generated/no-html-svg.ts index 561c193a6a..34bcbc1975 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-svg.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-svg.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'svg', + "svg", 37.234042553191486, - 'https://www.caniemail.com/features/html-svg/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-svg/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-target.ts b/packages/eslint-plugin/src/rules/generated/no-html-target.ts index 73e0627a8d..b1921861b1 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-target.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-target.ts @@ -1,7 +1,7 @@ import { createNoHTMLAttributeRule } from "../../utils/create-no-html-attribute-rule"; export default createNoHTMLAttributeRule( - 'target', + "target", 17.77777777777778, - 'https://www.caniemail.com/features/html-target/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-target/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-textarea.ts b/packages/eslint-plugin/src/rules/generated/no-html-textarea.ts index 464d6c9557..edcfb09059 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-textarea.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-textarea.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'textarea', + "textarea", 54.54545454545454, - 'https://www.caniemail.com/features/html-textarea/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-textarea/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-video.ts b/packages/eslint-plugin/src/rules/generated/no-html-video.ts index 0af795c698..f7f38fdc68 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-video.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-video.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'video', + "video", 25.961538461538463, - 'https://www.caniemail.com/features/html-video/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-video/", +); diff --git a/packages/eslint-plugin/src/rules/generated/no-html-wbr.ts b/packages/eslint-plugin/src/rules/generated/no-html-wbr.ts index 566fad917a..cb1fde7c9e 100644 --- a/packages/eslint-plugin/src/rules/generated/no-html-wbr.ts +++ b/packages/eslint-plugin/src/rules/generated/no-html-wbr.ts @@ -1,7 +1,7 @@ import { createNoHTMLElementRule } from "../../utils/create-no-html-element-rule"; export default createNoHTMLElementRule( - 'wbr', + "wbr", 60.63829787234043, - 'https://www.caniemail.com/features/html-wbr/' -) \ No newline at end of file + "https://www.caniemail.com/features/html-wbr/", +); diff --git a/packages/eslint-plugin/src/rules/index.ts b/packages/eslint-plugin/src/rules/index.ts index 16d97d19b1..4077b8293e 100644 --- a/packages/eslint-plugin/src/rules/index.ts +++ b/packages/eslint-plugin/src/rules/index.ts @@ -1,4 +1,4 @@ -import noBase64Images from './no-base64-images'; +import noBase64Images from "./no-base64-images"; export { noBase64Images }; -export * from './generated'; +export * from "./generated"; diff --git a/packages/eslint-plugin/src/utils/create-no-html-attribute-rule.ts b/packages/eslint-plugin/src/utils/create-no-html-attribute-rule.ts index 5eb89f01c3..1b26b6f2cc 100644 --- a/packages/eslint-plugin/src/utils/create-no-html-attribute-rule.ts +++ b/packages/eslint-plugin/src/utils/create-no-html-attribute-rule.ts @@ -1,12 +1,18 @@ -import { createRule } from "./create-rule" +import { createRule } from "./create-rule"; -export const createNoHTMLAttributeRule = (attributeName: string, supportPercentage: number, caniemailLink: string) => { +export const createNoHTMLAttributeRule = ( + attributeName: string, + supportPercentage: number, + caniemailLink: string, +) => { return createRule({ meta: { - type: 'suggestion', + type: "suggestion", schema: [], messages: { - 'not-supported-on-most-email-clients': `The HTML attribute ${attributeName} is only supported on ${supportPercentage.toFixed(2)}% of email clients, see ${caniemailLink}` + "not-supported-on-most-email-clients": `The HTML attribute ${attributeName} is only supported on ${supportPercentage.toFixed( + 2, + )}% of email clients, see ${caniemailLink}`, }, }, create(context) { @@ -17,11 +23,11 @@ export const createNoHTMLAttributeRule = (attributeName: string, supportPercenta if (name === attributeName) { context.report({ node, - messageId: 'not-supported-on-most-email-clients' + messageId: "not-supported-on-most-email-clients", }); } - } + }, }; - } + }, }); -} +}; diff --git a/packages/eslint-plugin/src/utils/create-no-html-element-rule.ts b/packages/eslint-plugin/src/utils/create-no-html-element-rule.ts index 95dd5f1e35..87ab7a4706 100644 --- a/packages/eslint-plugin/src/utils/create-no-html-element-rule.ts +++ b/packages/eslint-plugin/src/utils/create-no-html-element-rule.ts @@ -1,12 +1,18 @@ -import { createRule } from "./create-rule" +import { createRule } from "./create-rule"; -export const createNoHTMLElementRule = (elementName: string, supportPercentage: number, caniemailLink: string) => { +export const createNoHTMLElementRule = ( + elementName: string, + supportPercentage: number, + caniemailLink: string, +) => { return createRule({ meta: { - type: 'suggestion', + type: "suggestion", schema: [], messages: { - 'not-supported-on-most-email-clients': `The HTML element ${elementName} is only supported on ${supportPercentage.toFixed(2)}% of email clients, see ${caniemailLink}` + "not-supported-on-most-email-clients": `The HTML element ${elementName} is only supported on ${supportPercentage.toFixed( + 2, + )}% of email clients, see ${caniemailLink}`, }, }, create(context) { @@ -17,11 +23,11 @@ export const createNoHTMLElementRule = (elementName: string, supportPercentage: if (name === elementName) { context.report({ node, - messageId: 'not-supported-on-most-email-clients' + messageId: "not-supported-on-most-email-clients", }); } - } + }, }; - } + }, }); -} +}; diff --git a/packages/eslint-plugin/src/utils/create-no-style-property-rule.ts b/packages/eslint-plugin/src/utils/create-no-style-property-rule.ts index 8cabde4338..c6fd69f177 100644 --- a/packages/eslint-plugin/src/utils/create-no-style-property-rule.ts +++ b/packages/eslint-plugin/src/utils/create-no-style-property-rule.ts @@ -1,42 +1,56 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import { createRule } from "./create-rule"; -export const createNoStylePropertyRule = (propertyNameOrNames: string[] | string, supportPercentage: number, caniemailLink: string) => { - const propertyNames = Array.isArray(propertyNameOrNames) ? propertyNameOrNames : [propertyNameOrNames]; +export const createNoStylePropertyRule = ( + propertyNameOrNames: string[] | string, + supportPercentage: number, + caniemailLink: string, +) => { + const propertyNames = Array.isArray(propertyNameOrNames) + ? propertyNameOrNames + : [propertyNameOrNames]; const isRuleForMultipleProperties = propertyNames.length > 1; return createRule({ meta: { type: "suggestion", schema: [], messages: { - 'not-supported-on-most-email-clients': `The CSS ${isRuleForMultipleProperties ? 'properties' : 'property'} ${propertyNames.join(', ')} ${isRuleForMultipleProperties ? 'are' : 'is'} only supported on ${supportPercentage.toFixed(2)}% of email clients, see ${caniemailLink}`, + "not-supported-on-most-email-clients": `The CSS ${ + isRuleForMultipleProperties ? "properties" : "property" + } ${propertyNames.join(", ")} ${ + isRuleForMultipleProperties ? "are" : "is" + } only supported on ${supportPercentage.toFixed( + 2, + )}% of email clients, see ${caniemailLink}`, }, }, create(context) { return { Property(node) { - const camelCasedProperties = propertyNames.map( - p => p.replace(/-[a-z]/g, (g) => g[1].toUpperCase()) + const camelCasedProperties = propertyNames.map((p) => + p.replace(/-[a-z]/g, (g) => g[1].toUpperCase()), ); - const [attributeName] = context.sourceCode.getText(node.key) + const [attributeName] = context.sourceCode + .getText(node.key) .trim() - .match(/\w+/g) ?? ['']; // only select the word + .match(/\w+/g) ?? [""]; // only select the word if ( node.parent.type === AST_NODE_TYPES.ObjectExpression && node.parent.parent.type === AST_NODE_TYPES.JSXExpressionContainer && node.parent.parent.parent.type === AST_NODE_TYPES.JSXAttribute && - context.sourceCode.getText(node.parent.parent.parent.name) === "style" && + context.sourceCode.getText(node.parent.parent.parent.name) === + "style" && camelCasedProperties.includes(attributeName) ) { context.report({ node, - messageId: 'not-supported-on-most-email-clients' + messageId: "not-supported-on-most-email-clients", }); } }, }; }, }); -} +}; diff --git a/packages/eslint-plugin/src/utils/create-no-style-value-for-property.ts b/packages/eslint-plugin/src/utils/create-no-style-value-for-property.ts index 1d840e0a06..2260302beb 100644 --- a/packages/eslint-plugin/src/utils/create-no-style-value-for-property.ts +++ b/packages/eslint-plugin/src/utils/create-no-style-value-for-property.ts @@ -9,11 +9,13 @@ export const createNoStyleValueForProperty = ( ) => { return createRule({ meta: { - type: 'suggestion', + type: "suggestion", schema: [], messages: { - 'not-supported-on-most-emails-clients': `The style ${property}: ${valueToDisallow} is supported only ${supportPercetange.toFixed(2)}% of email clients, see ${caniemailLink}` - } + "not-supported-on-most-emails-clients": `The style ${property}: ${valueToDisallow} is supported only ${supportPercetange.toFixed( + 2, + )}% of email clients, see ${caniemailLink}`, + }, }, create(context) { return { @@ -23,28 +25,33 @@ export const createNoStyleValueForProperty = ( node.parent.parent.type === AST_NODE_TYPES.JSXExpressionContainer && node.parent.parent.parent.type === AST_NODE_TYPES.JSXAttribute ) { - const camelCasedProperty = property.replace(/-[a-z]/g, (g) => g[1].toUpperCase()); + const camelCasedProperty = property.replace(/-[a-z]/g, (g) => + g[1].toUpperCase(), + ); - const [attributeName] = context.sourceCode.getText(node.key) + const [attributeName] = context.sourceCode + .getText(node.key) .trim() - .match(/\w+/g) ?? ['']; // only select the word - const [value] = context.sourceCode.getText(node.value) + .match(/\w+/g) ?? [""]; // only select the word + const [value] = context.sourceCode + .getText(node.value) .trim() - .match(/[\w\s-]+/g) ?? ['']; + .match(/[\w\s-]+/g) ?? [""]; if ( - context.sourceCode.getText(node.parent.parent.parent.name) === "style" && + context.sourceCode.getText(node.parent.parent.parent.name) === + "style" && value.trim() === valueToDisallow && camelCasedProperty === attributeName ) { context.report({ node, - messageId: 'not-supported-on-most-emails-clients' + messageId: "not-supported-on-most-emails-clients", }); } } - } - } - } + }, + }; + }, }); }; diff --git a/packages/eslint-plugin/src/utils/create-no-style-value-keyword-rule.ts b/packages/eslint-plugin/src/utils/create-no-style-value-keyword-rule.ts index 84ccfaf2f9..5a3f2684e3 100644 --- a/packages/eslint-plugin/src/utils/create-no-style-value-keyword-rule.ts +++ b/packages/eslint-plugin/src/utils/create-no-style-value-keyword-rule.ts @@ -2,22 +2,32 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import { createRule } from "./create-rule"; export const createNoStyleValueKeywordRule = ( - valueKeywordOrKeywords: string[] | string, - supportPercentage: number, - caniemailLink: string, - message?: string + valueKeywordOrKeywords: string[] | string, + supportPercentage: number, + caniemailLink: string, + message?: string, ) => { - const valueKeywords = Array.isArray(valueKeywordOrKeywords) ? valueKeywordOrKeywords : [valueKeywordOrKeywords]; + const valueKeywords = Array.isArray(valueKeywordOrKeywords) + ? valueKeywordOrKeywords + : [valueKeywordOrKeywords]; const isRuleForMultipleValues = valueKeywords.length > 1; - const definedMessageOrDefault = message ?? `The CSS ${isRuleForMultipleValues ? 'values' : 'value'} ${valueKeywords.join(', ')} ${isRuleForMultipleValues ? 'are' : 'is'} only supported on ${supportPercentage.toFixed(2)}% of email clients, see ${caniemailLink}`; + const definedMessageOrDefault = + message ?? + `The CSS ${ + isRuleForMultipleValues ? "values" : "value" + } ${valueKeywords.join(", ")} ${ + isRuleForMultipleValues ? "are" : "is" + } only supported on ${supportPercentage.toFixed( + 2, + )}% of email clients, see ${caniemailLink}`; return createRule({ meta: { type: "suggestion", schema: [], messages: { - 'not-supported-on-most-email-clients': definedMessageOrDefault, + "not-supported-on-most-email-clients": definedMessageOrDefault, }, }, create(context) { @@ -28,16 +38,19 @@ export const createNoStyleValueKeywordRule = ( node.parent.type === AST_NODE_TYPES.ObjectExpression && node.parent.parent.type === AST_NODE_TYPES.JSXExpressionContainer && node.parent.parent.parent.type === AST_NODE_TYPES.JSXAttribute && - context.sourceCode.getText(node.parent.parent.parent.name) === "style" && - valueKeywords.some((keyword) => value.match(new RegExp(`(\\b|^)${keyword}(\\b|$)`, "g"))) + context.sourceCode.getText(node.parent.parent.parent.name) === + "style" && + valueKeywords.some((keyword) => + value.match(new RegExp(`(\\b|^)${keyword}(\\b|$)`, "g")), + ) ) { context.report({ node, - messageId: 'not-supported-on-most-email-clients' + messageId: "not-supported-on-most-email-clients", }); } }, }; }, }); -} +};