Skip to content

Commit

Permalink
DEV: Update eslint config (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Nov 19, 2024
1 parent 3905774 commit 2a49366
Show file tree
Hide file tree
Showing 11 changed files with 187 additions and 166 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import { popupAjaxError } from "discourse/lib/ajax-error";
import I18n from "I18n";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import { popupAjaxError } from "discourse/lib/ajax-error";

export default class EditRule extends Component {
Expand Down
2 changes: 1 addition & 1 deletion admin/assets/javascripts/admin/components/rule-row.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import { popupAjaxError } from "discourse/lib/ajax-error";

export default class RuleRow extends Component {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Controller from "@ember/controller";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import ChannelErrorModal from "../components/modal/channel-error";
import EditChannelModal from "../components/modal/edit-channel";
import EditRuleModal from "../components/modal/edit-rule";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import DiscourseRoute from "discourse/routes/discourse";

export default class AdminPluginsChatIntegrationIndex extends DiscourseRoute {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import DiscourseRoute from "discourse/routes/discourse";

export default class AdminPluginsChatIntegration extends DiscourseRoute {
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/discourse/routes/transcript.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { inject as service } from "@ember/service";
import { service } from "@ember/service";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import DiscourseRoute from "discourse/routes/discourse";
Expand Down
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import DiscourseRecommended from "@discourse/lint-configs/eslint";

export default [...DiscourseRecommended];
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.3.10",
"@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
328 changes: 174 additions & 154 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 2a49366

Please sign in to comment.