Skip to content

Commit

Permalink
DEV: Update eslint config (#66)
Browse files Browse the repository at this point in the history
* DEV: Update eslint config

* del comments
  • Loading branch information
davidtaylorhq authored Nov 19, 2024
1 parent 6ba8a78 commit de058e9
Show file tree
Hide file tree
Showing 5 changed files with 388 additions and 397 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import DiscourseRecommendedTheme from "@discourse/lint-configs/eslint-theme";

export default [...DiscourseRecommendedTheme];
6 changes: 2 additions & 4 deletions javascripts/discourse/components/kanban/card.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,11 @@ export default class KanbanCard extends Component {
{{/if}}

{{#if @topic.indirectly_assigned_to}}
{{! eslint-disable no-unused-vars }}{{! workaround https://github.com/ember-cli/eslint-plugin-ember/issues/2118 }}
{{#each-in
@topic.indirectly_assigned_to
as |target_id assignment|
}}
{{! eslint-enable no-unused-vars }}

{{! template-lint-disable no-nested-interactive }}
<div class="assigned-to">
<a href="/t/{{@topic.id}}/{{assignment.post_number}}">
Expand Down Expand Up @@ -181,12 +180,11 @@ export default class KanbanCard extends Component {
{{/if}}

{{#if @topic.indirectly_assigned_to}}
{{! eslint-disable no-unused-vars }}{{! workaround https://github.com/ember-cli/eslint-plugin-ember/issues/2118 }}
{{#each-in
@topic.indirectly_assigned_to
as |target_id assignment|
}}
{{! eslint-enable no-unused-vars }}

{{htmlSafe
(renderAvatar
assignment.assigned_to
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"private": true,
"devDependencies": {
"@discourse/lint-configs": "1.4.2",
"@discourse/lint-configs": "2.0.1",
"ember-template-lint": "6.0.0",
"eslint": "8.57.1",
"prettier": "2.8.8",
"@babel/plugin-proposal-decorators": "^7.25.7"
"eslint": "9.14.0",
"prettier": "2.8.8"
},
"engines": {
"node": ">= 18",
Expand Down
Loading

0 comments on commit de058e9

Please sign in to comment.