-
Notifications
You must be signed in to change notification settings - Fork 241
chore: lock playwright version [swc-829] #5414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,6 +115,7 @@ | |
| } | ||
| ], | ||
| "import/prefer-default-export": "off", | ||
| "import/no-extraneous-dependencies": "off", | ||
| "lit-a11y/click-events-have-key-events": [ | ||
| "error", | ||
| { | ||
|
|
@@ -153,5 +154,41 @@ | |
| "ignoreMemberSort": false | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "extends": [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [eslint] <no-dupe-keys> reported by reviewdog 🐶 |
||
| "eslint:recommended", | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:prettier/recommended", | ||
| "plugin:lit-a11y/recommended", | ||
| "plugin:require-extensions/recommended" | ||
| ], | ||
| "overrides": [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [eslint] <no-dupe-keys> reported by reviewdog 🐶 |
||
| { | ||
| "files": ["scripts/*"], | ||
| "rules": { | ||
| "no-console": ["off"] | ||
| } | ||
| }, | ||
| { | ||
| "files": [ | ||
| "packages/*/src/*.ts", | ||
| "tools/*/src/*.ts", | ||
| "projects/*/src/*.ts" | ||
| ], | ||
| "rules": { | ||
| "import/no-extraneous-dependencies": [ | ||
| "error", | ||
| { | ||
| "devDependencies": true | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "files": ["react/**/*.ts"], | ||
| "rules": { | ||
| "@typescript-eslint/no-explicit-any": "off" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [eslint] <notice/notice> reported by reviewdog 🐶 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ import prettier from 'prettier'; | |
| import Case from 'case'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [eslint] <import/no-extraneous-dependencies> reported by reviewdog 🐶 |
||
| import { fileURLToPath } from 'url'; | ||
|
|
||
| import systemsIconMapping from './icons-mapping.json' assert { type: 'json' }; | ||
| import systemsIconMapping from './icons-mapping.json' with { type: 'json' }; | ||
|
|
||
| const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
|
|
||
|
|
@@ -169,9 +169,9 @@ async function buildIcons(icons, tag, iconsNameList) { | |
|
|
||
| const iconLiteral = ` | ||
| ${disclaimer} | ||
|
|
||
| import {tag as html, TemplateResult} from '../custom-tag.js'; | ||
|
|
||
| export {setCustomTemplateLiteralTag} from '../custom-tag.js'; | ||
| export const ${ComponentName}Icon = ({ | ||
| width = 24, | ||
|
|
@@ -241,7 +241,7 @@ async function buildIcons(icons, tag, iconsNameList) { | |
|
|
||
| const iconElement = ` | ||
| ${disclaimer} | ||
|
|
||
| import { | ||
| html, | ||
| TemplateResult | ||
|
|
@@ -252,22 +252,22 @@ async function buildIcons(icons, tag, iconsNameList) { | |
| import { | ||
| setCustomTemplateLiteralTag | ||
| } from '../custom-tag.js'; | ||
|
|
||
| ${currenVersionIconImport} | ||
| ${otherVersionIconImport} | ||
|
|
||
| /** | ||
| * @element ${iconElementName} | ||
| */ | ||
| export class Icon${ComponentName} extends IconBase { | ||
| protected override render(): TemplateResult { | ||
| setCustomTemplateLiteralTag(html); | ||
|
|
||
| if(this.spectrumVersion === ${spectrumVersion}){ | ||
| return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult; | ||
| } | ||
| return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult; | ||
|
|
||
| } | ||
| } | ||
| `; | ||
|
|
@@ -302,12 +302,12 @@ async function buildIcons(icons, tag, iconsNameList) { | |
|
|
||
| const iconRegistration = ` | ||
| ${disclaimer} | ||
|
|
||
| import { Icon${ComponentName} } from '../src/elements/Icon${id}.js'; | ||
| import { defineElement } from '@spectrum-web-components/base/src/define-element.js'; | ||
|
|
||
| defineElement('${iconElementName}', Icon${ComponentName}); | ||
|
|
||
| declare global { | ||
| interface HTMLElementTagNameMap { | ||
| '${iconElementName}': Icon${ComponentName}; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,6 @@ import { html } from '@spectrum-web-components/base'; | |
| import { elementUpdated, expect, nextFrame } from '@open-wc/testing'; | ||
| import { getElFrom } from './helpers.js'; | ||
| import { createLanguageContext } from '../../../tools/reactive-controllers/test/helpers.js'; | ||
| import { shouldPolyfill } from '@formatjs/intl-numberformat/should-polyfill.js'; | ||
|
|
||
| import '@spectrum-web-components/number-field/sp-number-field.js'; | ||
| import { remapMultiByteCharacters } from '@spectrum-web-components/number-field'; | ||
|
|
@@ -28,23 +27,6 @@ import { | |
| import { sendKeys } from '@web/test-runner-commands'; | ||
|
|
||
| describe('NumberField - inputs', () => { | ||
| before(async () => { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CanIUse indicates that the international number field has been available in our supported evergreen - 2 so we can remove the polyfills now |
||
| const shouldPolyfillEn = shouldPolyfill('en'); | ||
| const shouldPolyfillEs = shouldPolyfill('es'); | ||
| const shouldPolyfillFr = shouldPolyfill('fr'); | ||
| if (shouldPolyfillEn || shouldPolyfillEs || shouldPolyfillFr) { | ||
| await import('@formatjs/intl-numberformat/polyfill-force.js'); | ||
| } | ||
| if (shouldPolyfillEn) { | ||
| await import('@formatjs/intl-numberformat/locale-data/en.js'); | ||
| } | ||
| if (shouldPolyfillEs) { | ||
| await import('@formatjs/intl-numberformat/locale-data/es.js'); | ||
| } | ||
| if (shouldPolyfillFr) { | ||
| await import('@formatjs/intl-numberformat/locale-data/fr.js'); | ||
| } | ||
| }); | ||
| describe('keystroke prevention', () => { | ||
| it('converts 2 byte characters, default', async () => { | ||
| const el = await getElFrom(html` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <notice/notice> reported by reviewdog 🐶
Missing notice header
https://github.com/adobe/spectrum-web-components/blob/a5f2232defbe5423d5e0ee59c98b6eabcfed85cc/.eslintrc.json#L1-L195