chore: 🤖 Add eol-last rule (#1296)
* chore: 🤖 Add eol-last rule * style: 💄 Add newlines for core * style: 💄 Add newlines to EOF in rose * style: 💄 Add newlines for admin * style: 💄 Add newlines in desktop templates
This commit is contained in:
1 parent
a69d01c9fc
commit
ccf462019b
14 files changed
+44
-10
No files matched your search
@@ -4,5 +4,6 @@ module.exports = {
|
||||
extends: ['recommended'],
|
||||
rules: {
|
||||
quotes: 'single',
|
||||
'eol-last': 'editorconfig',
|
||||
},
|
||||
};
|
||||
@@ -4,6 +4,7 @@ module.exports = {
|
||||
extends: ['recommended'],
|
||||
rules: {
|
||||
quotes: 'single',
|
||||
'eol-last': 'editorconfig',
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
||||
@@ -13,7 +13,10 @@ module('Integration | Component | rose/badge', function (hooks) {
|
||||
|
||||
test('it renders with content', async function (assert) {
|
||||
await render(hbs`<Rose::Badge>host-catalog-1</Rose::Badge>`);
|
||||
assert.strictEqual(find('.rose-badge').textContent.trim(), 'host-catalog-1');
|
||||
assert.strictEqual(
|
||||
find('.rose-badge').textContent.trim(),
|
||||
'host-catalog-1'
|
||||
);
|
||||
});
|
||||
|
||||
test('it renders an icon using @icon', async function (assert) {
|
||||
|
||||
@@ -20,7 +20,10 @@ module('Integration | Component | rose/dropdown', function (hooks) {
|
||||
|
||||
test('it renders with trigger', async function (assert) {
|
||||
await render(hbs`<Rose::Dropdown @text="Click me" />`);
|
||||
assert.strictEqual(find('.rose-dropdown-trigger').textContent.trim(), 'Click me');
|
||||
assert.strictEqual(
|
||||
find('.rose-dropdown-trigger').textContent.trim(),
|
||||
'Click me'
|
||||
);
|
||||
});
|
||||
|
||||
test('it supports a count', async function (assert) {
|
||||
|
||||
@@ -15,6 +15,9 @@ module('Integration | Component | rose/dropdown/key-value', function (hooks) {
|
||||
`);
|
||||
|
||||
assert.strictEqual(find('.rose-dropdown-key').textContent.trim(), 'key');
|
||||
assert.strictEqual(find('.rose-dropdown-value').textContent.trim(), 'value');
|
||||
assert.strictEqual(
|
||||
find('.rose-dropdown-value').textContent.trim(),
|
||||
'value'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -21,7 +21,10 @@ module('Integration | Component | rose/dropdown/link', function (hooks) {
|
||||
await render(hbs`<Rose::Dropdown::Link>
|
||||
content
|
||||
</Rose::Dropdown::Link>`);
|
||||
assert.strictEqual(find('.rose-dropdown-link').textContent.trim(), 'content');
|
||||
assert.strictEqual(
|
||||
find('.rose-dropdown-link').textContent.trim(),
|
||||
'content'
|
||||
);
|
||||
});
|
||||
|
||||
test('it supports style', async function (assert) {
|
||||
|
||||
@@ -55,7 +55,10 @@ module('Integration | Component | rose/form/checkbox', function (hooks) {
|
||||
const errorMessageEl = find('.rose-form-errors');
|
||||
assert.strictEqual(errorMessageEl.id, errorsId);
|
||||
assert.strictEqual(errorMessageEl.textContent.trim(), 'An error occurred.');
|
||||
assert.strictEqual(fieldEl.getAttribute('aria-describedby').trim(), errorsId);
|
||||
assert.strictEqual(
|
||||
fieldEl.getAttribute('aria-describedby').trim(),
|
||||
errorsId
|
||||
);
|
||||
});
|
||||
|
||||
test('it is not checked by default', async function (assert) {
|
||||
|
||||
@@ -20,7 +20,10 @@ module('Integration | Component | rose/form/input', function (hooks) {
|
||||
const helperTextEl = find('.rose-form-helper-text');
|
||||
assert.strictEqual(helperTextEl.textContent.trim(), 'Help me');
|
||||
assert.strictEqual(helperTextEl.id, helperId);
|
||||
assert.strictEqual(fieldEl.getAttribute('aria-describedby').trim(), helperId);
|
||||
assert.strictEqual(
|
||||
fieldEl.getAttribute('aria-describedby').trim(),
|
||||
helperId
|
||||
);
|
||||
});
|
||||
|
||||
test('it displays optional errors', async function (assert) {
|
||||
|
||||
@@ -14,6 +14,9 @@ module('Integration | Component | rose/form/label', function (hooks) {
|
||||
<//Rose::Form::Label>
|
||||
`);
|
||||
assert.ok(find('.rose-form-label'));
|
||||
assert.strictEqual(find('.rose-form-label').textContent.trim(), 'Form Label');
|
||||
assert.strictEqual(
|
||||
find('.rose-form-label').textContent.trim(),
|
||||
'Form Label'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -47,7 +47,10 @@ module('Integration | Component | rose/form/select', function (hooks) {
|
||||
const helperTextEl = find('.rose-form-helper-text');
|
||||
assert.strictEqual(helperTextEl.textContent.trim(), 'Help me');
|
||||
assert.strictEqual(helperTextEl.id, helperId);
|
||||
assert.strictEqual(fieldEl.getAttribute('aria-describedby').trim(), helperId);
|
||||
assert.strictEqual(
|
||||
fieldEl.getAttribute('aria-describedby').trim(),
|
||||
helperId
|
||||
);
|
||||
});
|
||||
|
||||
test('it displays optional errors', async function (assert) {
|
||||
|
||||
@@ -20,7 +20,10 @@ module('Integration | Component | rose/form/textarea', function (hooks) {
|
||||
const helperTextEl = find('.rose-form-helper-text');
|
||||
assert.strictEqual(helperTextEl.textContent.trim(), 'Help me');
|
||||
assert.strictEqual(helperTextEl.id, helperId);
|
||||
assert.strictEqual(fieldEl.getAttribute('aria-describedby').trim(), helperId);
|
||||
assert.strictEqual(
|
||||
fieldEl.getAttribute('aria-describedby').trim(),
|
||||
helperId
|
||||
);
|
||||
});
|
||||
|
||||
test('it displays optional errors', async function (assert) {
|
||||
|
||||
@@ -16,7 +16,10 @@ module('Integration | Component | rose/message', function (hooks) {
|
||||
`);
|
||||
assert.ok(find('.rose-message'));
|
||||
assert.strictEqual(find('.rose-message-title').textContent.trim(), 'Title');
|
||||
assert.strictEqual(find('.rose-message-subtitle').textContent.trim(), 'Subtitle');
|
||||
assert.strictEqual(
|
||||
find('.rose-message-subtitle').textContent.trim(),
|
||||
'Subtitle'
|
||||
);
|
||||
assert.strictEqual(
|
||||
find('.rose-message-description').textContent.trim(),
|
||||
'Description'
|
||||
|
||||
@@ -19,5 +19,6 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
quotes: 'single',
|
||||
'eol-last': 'editorconfig',
|
||||
},
|
||||
};
|
||||
@@ -8,5 +8,6 @@ module.exports = {
|
||||
'no-curly-component-invocation': { allow: ['app-name'] },
|
||||
'no-implicit-this': { allow: ['app-name', 'is-loading'] },
|
||||
quotes: 'single',
|
||||
'eol-last': 'editorconfig',
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user