Skip to content

Commit

Permalink
DEV: Update linting (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Mar 27, 2024
1 parent 0fe0522 commit 1fdd3d9
Show file tree
Hide file tree
Showing 10 changed files with 1,098 additions and 178 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.

4 changes: 2 additions & 2 deletions javascripts/discourse/components/versatile-banner.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Component from "@glimmer/component";
import { inject as service } from "@ember/service";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { service } from "@ember/service";
import cookie, { removeCookie } from "discourse/lib/cookie";
import { defaultHomepage } from "discourse/lib/utilities";
import I18n from "I18n";
import { convertIconClass } from "discourse-common/lib/icon-library";
import I18n from "I18n";

export default class VersatileBanner extends Component {
@service router;
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "discourse-versatile-banner",
"repository": "https://github.com/discourse/discourse-versatile-banner",
"author": "Discourse",
"license": "MIT",
"private": true,
"devDependencies": {
"eslint-config-discourse": "latest"
"@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/versatile-banner-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
import { test } from "qunit";
import { click, visit } from "@ember/test-helpers";
import { test } from "qunit";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";

acceptance("Versatile Banner - Logged out", function () {
test("banner can be hidden from anons", async function (assert) {
Expand Down
1,242 changes: 1,086 additions & 156 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 1fdd3d9

Please sign in to comment.