Skip to content

Commit

Permalink
DEV: Update linting (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Mar 27, 2024
1 parent 3060d62 commit 23863de
Show file tree
Hide file tree
Showing 10 changed files with 1,345 additions and 696 deletions.
8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/eslint-theme");
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/prettier");
1 change: 1 addition & 0 deletions .template-lintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/template-lint");
4 changes: 0 additions & 4 deletions .template-lintrc.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="custom-homepage">
{{#if (theme-setting "make_collapsible")}}
<DButton
@class={{concat-class
class={{concat-class
"featured-topic-toggle"
(if toggleTopics "is-open")
}}
Expand Down
8 changes: 5 additions & 3 deletions javascripts/discourse/components/featured-homepage-topics.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Component from "@glimmer/component";
import { inject as service } from "@ember/service";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { service } from "@ember/service";
import { defaultHomepage } from "discourse/lib/utilities";
import I18n from "I18n";

Expand All @@ -15,7 +15,8 @@ export default class FeaturedHomepageTopics extends Component {
@service keyValueStore;

@tracked featuredTagTopics = null;
@tracked toggleTopics =
@tracked
toggleTopics =
this.keyValueStore.getItem("toggleTopicsState") === "true" || false;

constructor() {
Expand All @@ -30,6 +31,7 @@ export default class FeaturedHomepageTopics extends Component {
}

willDestroy() {
super.willDestroy(...arguments);
this.router.off("routeDidChange", this.checkShowHere);
}

Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "discourse-homepage-feature-component",
"version": "1.0.0",
"repository": "https://github.com/discourse/discourse-homepage-feature-component",
"author": "Discourse",
"license": "GPL-2.0-or-later",
"private": true,
"devDependencies": {
"eslint-config-discourse": "^3.1.0"
"@discourse/lint-configs": "^1.3.7",
"ember-template-lint": "^5.13.0",
"eslint": "^8.56.0",
"prettier": "^2.8.8"
}
}
2,004 changes: 1,331 additions & 673 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 23863de

Please sign in to comment.