DEV: Update eslint config (#41)

This commit is contained in:
David Taylor 2024-11-19 14:37:33 +00:00 committed by GitHub
parent f2b51b4b22
commit b67ceac39d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 396 additions and 403 deletions

View File

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

3
eslint.config.mjs Normal file
View File

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

View File

@ -6,9 +6,9 @@ export default class UserCardStaticContents extends UserCardContents {
elementId = null; elementId = null;
// Overriding functions which cause the user card to show/hide based on mouse/keyboard events: // Overriding functions which cause the user card to show/hide based on mouse/keyboard events:
cleanUp() {} cleanUp() {}
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
didInsertElement() {} didInsertElement() {}
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
willDestroyElement() {} willDestroyElement() {}
keyUp() {} keyUp() {}

View File

@ -1,11 +1,10 @@
{ {
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@discourse/lint-configs": "1.4.2", "@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