chore: camelCase linting for properties
This commit is contained in:
parent
eff3259eea
commit
faae93376a
9 changed files with 23 additions and 20 deletions
|
|
@ -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
|
'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',
|
'no-await-in-loop': 'off',
|
||||||
'import/no-unresolved': 'off', // eslint not smart enough atm to understand package exports maps
|
'import/no-unresolved': 'off', // eslint not smart enough atm to understand package exports maps
|
||||||
|
camelcase: ['error', { properties: 'always' }],
|
||||||
},
|
},
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: 'latest',
|
||||||
|
|
|
||||||
|
|
@ -46,12 +46,12 @@ export const formSubmit = () => {
|
||||||
<lion-form @submit=${submitHandler}>
|
<lion-form @submit=${submitHandler}>
|
||||||
<form @submit=${ev => ev.preventDefault()}>
|
<form @submit=${ev => ev.preventDefault()}>
|
||||||
<lion-input
|
<lion-input
|
||||||
name="first_name"
|
name="firstName"
|
||||||
label="First Name"
|
label="First Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
<lion-input
|
<lion-input
|
||||||
name="last_name"
|
name="lastName"
|
||||||
label="Last Name"
|
label="Last Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
|
|
|
||||||
|
|
@ -42,14 +42,14 @@ export const main = () => {
|
||||||
return html`
|
return html`
|
||||||
<lion-form>
|
<lion-form>
|
||||||
<form>
|
<form>
|
||||||
<lion-fieldset name="full_name">
|
<lion-fieldset name="fullName">
|
||||||
<lion-input
|
<lion-input
|
||||||
name="first_name"
|
name="firstName"
|
||||||
label="First Name"
|
label="First Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
<lion-input
|
<lion-input
|
||||||
name="last_name"
|
name="lastName"
|
||||||
label="Last Name"
|
label="Last Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
|
|
|
||||||
|
|
@ -36,14 +36,14 @@ export class UmbrellaForm extends LitElement {
|
||||||
return html`
|
return html`
|
||||||
<lion-form>
|
<lion-form>
|
||||||
<form>
|
<form>
|
||||||
<lion-fieldset name="full_name">
|
<lion-fieldset name="fullName">
|
||||||
<lion-input
|
<lion-input
|
||||||
name="first_name"
|
name="firstName"
|
||||||
label="First Name"
|
label="First Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
<lion-input
|
<lion-input
|
||||||
name="last_name"
|
name="lastName"
|
||||||
label="Last Name"
|
label="Last Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ import '@lion/ui/define/lion-validation-feedback.js';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fullyPrefilledSerializedValue = {
|
const fullyPrefilledSerializedValue = {
|
||||||
full_name: { first_name: 'Lorem', last_name: 'Ipsum' },
|
fullName: { firstName: 'Lorem', lastName: 'Ipsum' },
|
||||||
date: '2000-12-12',
|
date: '2000-12-12',
|
||||||
datepicker: '2020-12-12',
|
datepicker: '2020-12-12',
|
||||||
bio: 'Lorem',
|
bio: 'Lorem',
|
||||||
|
|
@ -69,7 +69,7 @@ const fullyPrefilledSerializedValue = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const fullyChangedSerializedValue = {
|
const fullyChangedSerializedValue = {
|
||||||
full_name: { first_name: 'LoremChanged', last_name: 'IpsumChanged' },
|
fullName: { firstName: 'LoremChanged', lastName: 'IpsumChanged' },
|
||||||
date: '1999-12-12',
|
date: '1999-12-12',
|
||||||
datepicker: '1986-12-12',
|
datepicker: '1986-12-12',
|
||||||
bio: 'LoremChanged',
|
bio: 'LoremChanged',
|
||||||
|
|
@ -177,7 +177,7 @@ describe(`Submitting/Resetting/Clearing Form`, async () => {
|
||||||
await elementUpdated(formEl);
|
await elementUpdated(formEl);
|
||||||
await formEl.updateComplete;
|
await formEl.updateComplete;
|
||||||
expect(formEl.serializedValue).to.eql({
|
expect(formEl.serializedValue).to.eql({
|
||||||
full_name: { first_name: '', last_name: '' },
|
fullName: { firstName: '', lastName: '' },
|
||||||
date: '',
|
date: '',
|
||||||
datepicker: '',
|
datepicker: '',
|
||||||
bio: '',
|
bio: '',
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ describe('Form Integrations', () => {
|
||||||
const formEl = el._lionFormNode;
|
const formEl = el._lionFormNode;
|
||||||
|
|
||||||
expect(formEl.serializedValue).to.eql({
|
expect(formEl.serializedValue).to.eql({
|
||||||
full_name: { first_name: '', last_name: '' },
|
fullName: { firstName: '', lastName: '' },
|
||||||
date: '2000-12-12',
|
date: '2000-12-12',
|
||||||
datepicker: '2020-12-12',
|
datepicker: '2020-12-12',
|
||||||
bio: '',
|
bio: '',
|
||||||
|
|
@ -62,7 +62,7 @@ describe('Form Integrations', () => {
|
||||||
await inputTelDropdownEl?.updateComplete;
|
await inputTelDropdownEl?.updateComplete;
|
||||||
|
|
||||||
expect(formEl.formattedValue).to.eql({
|
expect(formEl.formattedValue).to.eql({
|
||||||
full_name: { first_name: '', last_name: '' },
|
fullName: { firstName: '', lastName: '' },
|
||||||
date: '12/12/2000',
|
date: '12/12/2000',
|
||||||
datepicker: '12/12/2020',
|
datepicker: '12/12/2020',
|
||||||
bio: '',
|
bio: '',
|
||||||
|
|
@ -91,7 +91,7 @@ describe('Form Integrations', () => {
|
||||||
await fixture(
|
await fixture(
|
||||||
html`<umbrella-form
|
html`<umbrella-form
|
||||||
.serializedValue="${{
|
.serializedValue="${{
|
||||||
full_name: { first_name: '', last_name: '' },
|
fullName: { firstName: '', lastName: '' },
|
||||||
date: '2000-12-12',
|
date: '2000-12-12',
|
||||||
datepicker: '2020-12-12',
|
datepicker: '2020-12-12',
|
||||||
bio: '',
|
bio: '',
|
||||||
|
|
|
||||||
|
|
@ -50,14 +50,14 @@ export class UmbrellaForm extends LitElement {
|
||||||
return html`
|
return html`
|
||||||
<lion-form .serializedValue="${this.__serializedValue}">
|
<lion-form .serializedValue="${this.__serializedValue}">
|
||||||
<form>
|
<form>
|
||||||
<lion-fieldset name="full_name">
|
<lion-fieldset name="fullName">
|
||||||
<lion-input
|
<lion-input
|
||||||
name="first_name"
|
name="firstName"
|
||||||
label="First Name"
|
label="First Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
<lion-input
|
<lion-input
|
||||||
name="last_name"
|
name="lastName"
|
||||||
label="Last Name"
|
label="Last Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
|
|
|
||||||
|
|
@ -36,14 +36,14 @@ export class UmbrellaForm extends LitElement {
|
||||||
return html`
|
return html`
|
||||||
<lion-form>
|
<lion-form>
|
||||||
<form>
|
<form>
|
||||||
<lion-fieldset name="full_name">
|
<lion-fieldset name="fullName">
|
||||||
<lion-input
|
<lion-input
|
||||||
name="first_name"
|
name="firstName"
|
||||||
label="First Name"
|
label="First Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
<lion-input
|
<lion-input
|
||||||
name="last_name"
|
name="lastName"
|
||||||
label="Last Name"
|
label="Last Name"
|
||||||
.validators="${[new Required()]}"
|
.validators="${[new Required()]}"
|
||||||
></lion-input>
|
></lion-input>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* eslint-disable camelcase */
|
||||||
|
|
||||||
const { legacyPlugin } = require('@web/dev-server-legacy');
|
const { legacyPlugin } = require('@web/dev-server-legacy');
|
||||||
const { browserstackLauncher } = require('@web/test-runner-browserstack');
|
const { browserstackLauncher } = require('@web/test-runner-browserstack');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue