We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eff3259 commit faae933Copy full SHA for faae933
.eslintrc.js
@@ -9,6 +9,7 @@ module.exports = {
9
'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
10
'no-await-in-loop': 'off',
11
'import/no-unresolved': 'off', // eslint not smart enough atm to understand package exports maps
12
+ camelcase: ['error', { properties: 'always' }],
13
},
14
parserOptions: {
15
ecmaVersion: 'latest',
docs/components/form/use-cases.md
@@ -46,12 +46,12 @@ export const formSubmit = () => {
46
<lion-form @submit=${submitHandler}>
47
<form @submit=${ev => ev.preventDefault()}>
48
<lion-input
49
- name="first_name"
+ name="firstName"
50
label="First Name"
51
.validators="${[new Required()]}"
52
></lion-input>
53
54
- name="last_name"
+ name="lastName"
55
label="Last Name"
56
57
docs/fundamentals/systems/form/use-cases.md
@@ -42,14 +42,14 @@ export const main = () => {
42
return html`
43
<lion-form>
44
<form>
45
- <lion-fieldset name="full_name">
+ <lion-fieldset name="fullName">
docs/fundamentals/systems/overlays/assets/umbrella-form.js
@@ -36,14 +36,14 @@ export class UmbrellaForm extends LitElement {
36
37
38
39
40
41
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 = {
69
};
70
71
const fullyChangedSerializedValue = {
72
- full_name: { first_name: 'LoremChanged', last_name: 'IpsumChanged' },
+ fullName: { firstName: 'LoremChanged', lastName: 'IpsumChanged' },
73
date: '1999-12-12',
74
datepicker: '1986-12-12',
75
bio: 'LoremChanged',
@@ -177,7 +177,7 @@ describe(`Submitting/Resetting/Clearing Form`, async () => {
177
await elementUpdated(formEl);
178
await formEl.updateComplete;
179
expect(formEl.serializedValue).to.eql({
180
- full_name: { first_name: '', last_name: '' },
+ fullName: { firstName: '', lastName: '' },
181
date: '',
182
datepicker: '',
183
bio: '',
packages/ui/components/form-integrations/test/form-integrations.test.js
@@ -29,7 +29,7 @@ describe('Form Integrations', () => {
29
const formEl = el._lionFormNode;
30
31
32
33
34
35
@@ -62,7 +62,7 @@ describe('Form Integrations', () => {
62
await inputTelDropdownEl?.updateComplete;
63
64
expect(formEl.formattedValue).to.eql({
65
66
date: '12/12/2000',
67
datepicker: '12/12/2020',
68
@@ -91,7 +91,7 @@ describe('Form Integrations', () => {
91
await fixture(
92
html`<umbrella-form
93
.serializedValue="${{
94
95
96
97
packages/ui/components/form-integrations/test/helpers/umbrella-form.js
@@ -50,14 +50,14 @@ export class UmbrellaForm extends LitElement {
<lion-form .serializedValue="${this.__serializedValue}">
58
59
60
61
packages/ui/docs/fundamentals/systems/overlays/assets/umbrella-form.js
web-test-runner-browserstack.config.js
@@ -1,3 +1,5 @@
1
+/* eslint-disable camelcase */
2
+
3
const { legacyPlugin } = require('@web/dev-server-legacy');
4
const { browserstackLauncher } = require('@web/test-runner-browserstack');
5
0 commit comments