diff --git a/.eslintrc.js b/.eslintrc.js index a966aecc0..4ebb79e4d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,6 +9,7 @@ module.exports = { 'wc/guard-super-call': 'off', // types will prevent you from calling the super if it's not in the base class, making the guard unnecessary 'no-await-in-loop': 'off', 'import/no-unresolved': 'off', // eslint not smart enough atm to understand package exports maps + camelcase: ['error', { properties: 'always' }], }, parserOptions: { ecmaVersion: 'latest', diff --git a/docs/components/form/use-cases.md b/docs/components/form/use-cases.md index da031a593..5fd0f74ee 100644 --- a/docs/components/form/use-cases.md +++ b/docs/components/form/use-cases.md @@ -46,12 +46,12 @@ export const formSubmit = () => {
ev.preventDefault()}> diff --git a/docs/fundamentals/systems/form/use-cases.md b/docs/fundamentals/systems/form/use-cases.md index 0d8b218f1..ea5225a83 100644 --- a/docs/fundamentals/systems/form/use-cases.md +++ b/docs/fundamentals/systems/form/use-cases.md @@ -42,14 +42,14 @@ export const main = () => { return html` - + diff --git a/docs/fundamentals/systems/overlays/assets/umbrella-form.js b/docs/fundamentals/systems/overlays/assets/umbrella-form.js index db35ab01c..0d4607bda 100644 --- a/docs/fundamentals/systems/overlays/assets/umbrella-form.js +++ b/docs/fundamentals/systems/overlays/assets/umbrella-form.js @@ -36,14 +36,14 @@ export class UmbrellaForm extends LitElement { return html` - + diff --git a/packages/ui/components/form-integrations/test/form-group-methods.test.js b/packages/ui/components/form-integrations/test/form-group-methods.test.js index 567799c7f..e82830809 100644 --- a/packages/ui/components/form-integrations/test/form-group-methods.test.js +++ b/packages/ui/components/form-integrations/test/form-group-methods.test.js @@ -45,7 +45,7 @@ import '@lion/ui/define/lion-validation-feedback.js'; */ const fullyPrefilledSerializedValue = { - full_name: { first_name: 'Lorem', last_name: 'Ipsum' }, + fullName: { firstName: 'Lorem', lastName: 'Ipsum' }, date: '2000-12-12', datepicker: '2020-12-12', bio: 'Lorem', @@ -69,7 +69,7 @@ const fullyPrefilledSerializedValue = { }; const fullyChangedSerializedValue = { - full_name: { first_name: 'LoremChanged', last_name: 'IpsumChanged' }, + fullName: { firstName: 'LoremChanged', lastName: 'IpsumChanged' }, date: '1999-12-12', datepicker: '1986-12-12', bio: 'LoremChanged', @@ -177,7 +177,7 @@ describe(`Submitting/Resetting/Clearing Form`, async () => { await elementUpdated(formEl); await formEl.updateComplete; expect(formEl.serializedValue).to.eql({ - full_name: { first_name: '', last_name: '' }, + fullName: { firstName: '', lastName: '' }, date: '', datepicker: '', bio: '', diff --git a/packages/ui/components/form-integrations/test/form-integrations.test.js b/packages/ui/components/form-integrations/test/form-integrations.test.js index 6e404be84..ea4e459d7 100644 --- a/packages/ui/components/form-integrations/test/form-integrations.test.js +++ b/packages/ui/components/form-integrations/test/form-integrations.test.js @@ -29,7 +29,7 @@ describe('Form Integrations', () => { const formEl = el._lionFormNode; expect(formEl.serializedValue).to.eql({ - full_name: { first_name: '', last_name: '' }, + fullName: { firstName: '', lastName: '' }, date: '2000-12-12', datepicker: '2020-12-12', bio: '', @@ -62,7 +62,7 @@ describe('Form Integrations', () => { await inputTelDropdownEl?.updateComplete; expect(formEl.formattedValue).to.eql({ - full_name: { first_name: '', last_name: '' }, + fullName: { firstName: '', lastName: '' }, date: '12/12/2000', datepicker: '12/12/2020', bio: '', @@ -91,7 +91,7 @@ describe('Form Integrations', () => { await fixture( html` - + diff --git a/packages/ui/docs/fundamentals/systems/overlays/assets/umbrella-form.js b/packages/ui/docs/fundamentals/systems/overlays/assets/umbrella-form.js index db35ab01c..0d4607bda 100644 --- a/packages/ui/docs/fundamentals/systems/overlays/assets/umbrella-form.js +++ b/packages/ui/docs/fundamentals/systems/overlays/assets/umbrella-form.js @@ -36,14 +36,14 @@ export class UmbrellaForm extends LitElement { return html` - + diff --git a/web-test-runner-browserstack.config.js b/web-test-runner-browserstack.config.js index 7c63a7c6c..5baa231ec 100644 --- a/web-test-runner-browserstack.config.js +++ b/web-test-runner-browserstack.config.js @@ -1,3 +1,5 @@ +/* eslint-disable camelcase */ + const { legacyPlugin } = require('@web/dev-server-legacy'); const { browserstackLauncher } = require('@web/test-runner-browserstack');