From 9dbfc9c8859e88ecfa3a59d71544204acbcf6751 Mon Sep 17 00:00:00 2001 From: Manuel Wiedenmann Date: Sun, 4 Sep 2022 18:59:45 +0200 Subject: [PATCH] Run yarn lint:hbs:fix --- .template-lintrc.js | 17 +---------------- tests/dummy/app/controllers/projects.js | 5 +++++ .../dummy/app/controllers/projects/project.js | 5 +++++ tests/dummy/app/templates/index.hbs | 4 ++-- tests/dummy/app/templates/post.hbs | 17 ----------------- tests/dummy/app/templates/projects.hbs | 19 ++++++++++--------- .../dummy/app/templates/projects/project.hbs | 10 ++++++---- tests/dummy/app/templates/storage-for.hbs | 6 +++--- 8 files changed, 32 insertions(+), 51 deletions(-) delete mode 100644 tests/dummy/app/templates/post.hbs diff --git a/.template-lintrc.js b/.template-lintrc.js index 071cdbc0..aaad20d6 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -2,20 +2,5 @@ module.exports = { extends: 'recommended', - rules: { - // TODO: Remove over time - 'link-href-attributes': false, - 'no-action': false, - 'no-curly-component-invocation': false, - 'no-implicit-this': false, - 'no-inline-styles': false, - 'no-invalid-interactive': false, - 'no-link-to-positional-params': false, - 'no-partial': false, - 'no-unbalanced-curlies': false, - 'require-button-type': false, - 'require-iframe-title': false, - 'require-input-label': false, - 'require-valid-alt-text': false, - }, + rules: {}, }; diff --git a/tests/dummy/app/controllers/projects.js b/tests/dummy/app/controllers/projects.js index f157a928..7cbde3ca 100644 --- a/tests/dummy/app/controllers/projects.js +++ b/tests/dummy/app/controllers/projects.js @@ -89,4 +89,9 @@ export default class extends Controller { // show a flash message or transitionTo somewehere }); } + + @action + setName(event) { + this.name = event.target.value; + } } diff --git a/tests/dummy/app/controllers/projects/project.js b/tests/dummy/app/controllers/projects/project.js index 7edc6c32..0e3f6ca5 100644 --- a/tests/dummy/app/controllers/projects/project.js +++ b/tests/dummy/app/controllers/projects/project.js @@ -27,4 +27,9 @@ export default class extends Controller { deleteTask(task) { task.destroyRecord(); } + + @action + setName(event) { + this.name = event.target.value; + } } diff --git a/tests/dummy/app/templates/index.hbs b/tests/dummy/app/templates/index.hbs index c8acb09f..69b188f8 100644 --- a/tests/dummy/app/templates/index.hbs +++ b/tests/dummy/app/templates/index.hbs @@ -3,5 +3,5 @@ The addon provides a storageFor computed property that returns a pr It ships with an ember-data adapter that works almost the same as the JSONAPIAdapter with some relationship sugar added.

Your Page Visits: {{this.stats.counter}} - - + + diff --git a/tests/dummy/app/templates/post.hbs b/tests/dummy/app/templates/post.hbs deleted file mode 100644 index 5671ac27..00000000 --- a/tests/dummy/app/templates/post.hbs +++ /dev/null @@ -1,17 +0,0 @@ -
-{{model.id}}
-{{model.name}}
-{{model.comments.length}}
- - - - - -
-{{#each model.comments as |comment|}} - {{comment.name}} - - Delete -
-{{/each}} -
-Create comment \ No newline at end of file diff --git a/tests/dummy/app/templates/projects.hbs b/tests/dummy/app/templates/projects.hbs index d23e8752..5532ee57 100644 --- a/tests/dummy/app/templates/projects.hbs +++ b/tests/dummy/app/templates/projects.hbs @@ -1,17 +1,18 @@ Open the developer tools and go to Resources -> Local Storage or reload to see the effect.

- -Export + +

-Name: - -Create project + +

@@ -22,7 +23,7 @@ Open the developer tools and go to Resources -> Local Storage {{#each this.model as |project|}} {{project.name}} - - Delete +
{{/each}} diff --git a/tests/dummy/app/templates/projects/project.hbs b/tests/dummy/app/templates/projects/project.hbs index 57908bd7..27641946 100644 --- a/tests/dummy/app/templates/projects/project.hbs +++ b/tests/dummy/app/templates/projects/project.hbs @@ -3,9 +3,11 @@

-Name: - -Create task + +

@@ -16,7 +18,7 @@ {{#each this.model.tasks as |task|}} {{task.name}} - - Delete +
{{/each}} diff --git a/tests/dummy/app/templates/storage-for.hbs b/tests/dummy/app/templates/storage-for.hbs index 24179629..2721e78c 100644 --- a/tests/dummy/app/templates/storage-for.hbs +++ b/tests/dummy/app/templates/storage-for.hbs @@ -1,5 +1,5 @@

Generator

-{{! template-lint-disable block-indentation}} +{{! template-lint-disable block-indentation no-unbalanced-curlies}} Run ember g storage -h for all options.

@@ -20,9 +20,9 @@ Open the developer tools and go to Resources -> Local Storage {{! template-lint-disable simple-unless}} {{#unless this.settings.welcomeMessageSeen}} You will see this message until you click - + {{else}} - + {{/unless}}