Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Update linting #39

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading