Skip to content

Commit

Permalink
DEV: Update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Mar 27, 2024
1 parent f2706a5 commit f3a177c
Show file tree
Hide file tree
Showing 10 changed files with 1,328 additions and 652 deletions.
11 changes: 0 additions & 11 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.

2 changes: 1 addition & 1 deletion javascripts/discourse/components/user-menu/custom-tab.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{#each this.items as |item|}}
<li>
<DButton
@class="btn-flat"
class="btn-flat"
@href={{item.href}}
@icon={{item.icon}}
@translatedLabel={{item.content}}
Expand Down
3 changes: 2 additions & 1 deletion javascripts/discourse/components/user-menu/custom-tab.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Component from "@glimmer/component";
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import $ from "jquery";

function parseTabSettings(settings) {
return settings.split("|").map((i) => {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "user-menu-tab",
"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"
}
}
1,950 changes: 1,318 additions & 632 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit f3a177c

Please sign in to comment.