Skip to content

Commit

Permalink
DEV: Update linting (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX authored Mar 27, 2024
1 parent 4ededa8 commit e64cfa5
Show file tree
Hide file tree
Showing 11 changed files with 1,344 additions and 699 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.

6 changes: 3 additions & 3 deletions javascripts/discourse/components/brand-header-container.gjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Component from "@glimmer/component";
import { inject as service } from "@ember/service";
import BrandHeaderContents from "./brand-header-contents";
import or from "truth-helpers/helpers/or";
import { service } from "@ember/service";
import not from "truth-helpers/helpers/not";
import or from "truth-helpers/helpers/or";
import BrandHeaderContents from "./brand-header-contents";

export default class BrandHeaderContainer extends Component {
@service site;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import Component from "@glimmer/component";
import { service } from "@ember/service";
import { not, and } from "truth-helpers";
import MountWidget from "discourse/components/mount-widget";
import { and, not } from "truth-helpers";
import DMenu from "float-kit/components/d-menu";
import BrandHeaderContents from "../../components/brand-header-contents";
import dIcon from "discourse-common/helpers/d-icon";

export default class MobileBrandHeader extends Component {
@service site;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { hbs } from "ember-cli-htmlbars";
import { withPluginApi } from "discourse/lib/plugin-api";
import { registerWidgetShim } from "discourse/widgets/render-glimmer";
import { hbs } from "ember-cli-htmlbars";
import BrandHeaderContainer from "../components/brand-header-container";

export default {
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-brand-header",
"version": "1.0.0",
"repository": "https://github.com/discourse/discourse-brand-header",
"author": "Discourse",
"license": "MIT",
"private": true,
"devDependencies": {
"eslint-config-discourse": "^3.2.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 e64cfa5

Please sign in to comment.