DEV: Update eslint config (#106)

This commit is contained in:
David Taylor 2024-11-19 10:32:28 +00:00 committed by GitHub
parent 320de08234
commit ff6bae408f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 328 additions and 241 deletions

View File

@ -1 +0,0 @@
module.exports = require("@discourse/lint-configs/eslint");

View File

@ -1,7 +1,7 @@
import Component from "@glimmer/component"; import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking"; import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object"; 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 { popupAjaxError } from "discourse/lib/ajax-error";
import I18n from "I18n"; import I18n from "I18n";

3
eslint.config.mjs Normal file
View File

@ -0,0 +1,3 @@
import DiscourseRecommended from "@discourse/lint-configs/eslint";
export default [...DiscourseRecommended];

View File

@ -1,11 +1,10 @@
{ {
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@discourse/lint-configs": "1.3.10", "@discourse/lint-configs": "2.0.1",
"ember-template-lint": "6.0.0", "ember-template-lint": "6.0.0",
"eslint": "8.57.1", "eslint": "9.14.0",
"prettier": "2.8.8", "prettier": "2.8.8"
"@babel/plugin-proposal-decorators": "^7.25.7"
}, },
"engines": { "engines": {
"node": ">= 18", "node": ">= 18",

File diff suppressed because it is too large Load Diff