Skip to content

A platform for community discussion. Free, open, simple.

DEV: Correct ember-template-lint commands (again) (#30038)

David Taylor7750441c436e
diff --git a/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.gjs
index bd914bf4c1c..96ef293ad14 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.gjs
@@ -31,7 +31,7 @@ module("Integration | Component | select-kit/tag-drop", function (hooks) {
await render(<template>
<TagDrop
@currentCategory={{category}}
- @tagId={{"jeff"}}
+ @tagId="jeff"
@options={{hash tagId="jeff"}}
/>
</template>);
diff --git a/package.json b/package.json
index 014629e3694..ed4b85a7c62 100644
--- a/package.json
+++ b/package.json
@@ -45,8 +45,8 @@
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
"lint:js": "eslint ./app/assets/javascripts $(script/list_bundled_plugins) --cache --no-error-on-unmatched-pattern",
"lint:js:fix": "eslint --fix ./app/assets/javascripts $(script/list_bundled_plugins) --no-error-on-unmatched-pattern",
- "lint:hbs": "ember-template-lint 'app/assets/javascripts/**/*.{gjs,hbs}' $(script/list_bundled_plugins '/assets/javascripts/**/*.{gjs,hbs}') --no-error-on-unmatched-pattern",
- "lint:hbs:fix": "ember-template-lint 'app/assets/javascripts/**/*.{gjs,hbs}' $(script/list_bundled_plugins '/assets/javascripts/**/*.{gjs,hbs}') --no-error-on-unmatched-pattern --fix",
+ "lint:hbs": "ember-template-lint 'app/assets/javascripts/**/*.{gjs,hbs}' 'plugins/*/assets/javascripts/**/*.{gjs,hbs}' 'plugins/*/admin/assets/javascripts/**/*.{gjs,hbs}'",
+ "lint:hbs:fix": "ember-template-lint 'app/assets/javascripts/**/*.{gjs,hbs}' 'plugins/*/assets/javascripts/**/*.{gjs,hbs}' 'plugins/*/admin/assets/javascripts/**/*.{gjs,hbs}' --fix",
"lint:prettier": "pnpm pprettier --list-different 'app/assets/stylesheets/**/*.scss' 'app/assets/javascripts/**/*.{js,gjs,hbs}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets}/javascripts/**/*.{js,gjs,hbs}')",
"lint:prettier:fix": "pnpm prettier -w 'app/assets/stylesheets/**/*.scss' 'app/assets/javascripts/**/*.{js,gjs,hbs}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets}/javascripts/**/*.{js,gjs,hbs}')",
"lttf:ignore": "lint-to-the-future ignore",