Skip to content

Commit

Permalink
DEV: Update linting (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Mar 27, 2024
1 parent 0bf1142 commit 67215ad
Show file tree
Hide file tree
Showing 12 changed files with 1,350 additions and 703 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.

8 changes: 4 additions & 4 deletions javascripts/discourse/initializers/topic-thumbnails-init.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { withPluginApi } from "discourse/lib/plugin-api";
import { inject as service } from "@ember/service";
import { readOnly } from "@ember/object/computed";
import discourseComputed, { observes } from "discourse-common/utils/decorators";
import { once } from "@ember/runloop";
import { service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import { withPluginApi } from "discourse/lib/plugin-api";
import {
getResolverOption,
setResolverOption,
} from "discourse-common/resolver";
import { htmlSafe } from "@ember/template";
import discourseComputed, { observes } from "discourse-common/utils/decorators";

export default {
name: "topic-thumbnails-init",
Expand Down
4 changes: 2 additions & 2 deletions javascripts/discourse/raw-views/topic-list-thumbnail.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import discourseComputed from "discourse-common/utils/decorators";
import EmberObject from "@ember/object";
import { inject as service } from "@ember/service";
import { and } from "@ember/object/computed";
import { service } from "@ember/service";
import discourseComputed from "discourse-common/utils/decorators";

export default EmberObject.extend({
topicThumbnailsService: service("topic-thumbnails"),
Expand Down
6 changes: 3 additions & 3 deletions javascripts/discourse/services/topic-thumbnails.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Service, { inject as service } from "@ember/service";
import discourseComputed from "discourse-common/utils/decorators";
import Site from "discourse/models/site";
import { dependentKeyCompat } from "@ember/object/compat";
import Service, { service } from "@ember/service";
import Site from "discourse/models/site";
import discourseComputed from "discourse-common/utils/decorators";

const minimalGridCategories = settings.minimal_grid_categories
.split("|")
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-topic-thumbnails",
"version": "1.0.0",
"repository": "https://github.com/discourse/discourse-topic-thumbnails",
"author": "Discourse",
"license": "MIT",
"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"
}
}
4 changes: 2 additions & 2 deletions test/acceptance/suggested-topics-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { visit } from "@ember/test-helpers";
import { test } from "qunit";
import {
acceptance,
exists,
query,
} from "discourse/tests/helpers/qunit-helpers";
import { visit } from "@ember/test-helpers";
import { test } from "qunit";

acceptance("topic list thumbnails | suggested topics", function () {
test("list the tags", async function (assert) {
Expand Down
2,004 changes: 1,331 additions & 673 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 67215ad

Please sign in to comment.