mirror of
https://github.com/discourse/discourse.git
synced 2026-07-31 08:38:27 -05:00
DEV: Update linting and run lttf (#37494)
This commit is contained in:
+2
-15
@@ -3,21 +3,8 @@ import DiscourseRecommended from "@discourse/lint-configs/eslint";
|
||||
export default [
|
||||
...DiscourseRecommended,
|
||||
{
|
||||
rules: {
|
||||
"discourse/moved-packages-import-paths": "error",
|
||||
"discourse/no-route-template": "error",
|
||||
"ember/avoid-leaking-state-in-ember-objects": "error",
|
||||
"ember/no-classic-components": "error",
|
||||
"ember/no-jquery": "error",
|
||||
"ember/no-observers": "error",
|
||||
"ember/no-side-effects": "error",
|
||||
"ember/no-tracked-properties-from-args": "error",
|
||||
"ember/require-tagless-components": "error",
|
||||
"ember/route-path-style": "error",
|
||||
"ember/routes-segments-snake-case": "error",
|
||||
"qunit/no-assert-equal": "error",
|
||||
"qunit/no-loose-assertions": "error",
|
||||
},
|
||||
rules: {},
|
||||
// custom overrides go here
|
||||
},
|
||||
{
|
||||
ignores: [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { later } from "@ember/runloop";
|
||||
import {
|
||||
click,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { click, fillIn, find, render } from "@ember/test-helpers";
|
||||
import { module, test } from "qunit";
|
||||
import ComposerEditor from "discourse/components/composer-editor";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { next } from "@ember/runloop";
|
||||
import {
|
||||
click,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import {
|
||||
click,
|
||||
fillIn,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { fillIn, render, waitFor } from "@ember/test-helpers";
|
||||
import { module, test } from "qunit";
|
||||
import EmailLogsList from "discourse/admin/components/email-logs-list";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { fillIn, render } from "@ember/test-helpers";
|
||||
import { module, test } from "qunit";
|
||||
import EmojiUploader from "discourse/admin/components/emoji-uploader";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable discourse/test-filename-suffix */
|
||||
import { render } from "@ember/test-helpers";
|
||||
import { module, test } from "qunit";
|
||||
import EmptyTopicFilter from "discourse/components/empty-topic-filter";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { getOwner } from "@ember/owner";
|
||||
import { setupTest } from "ember-qunit";
|
||||
import { module, test } from "qunit";
|
||||
|
||||
+8
-8
@@ -4,12 +4,12 @@
|
||||
"author": "Discourse",
|
||||
"license": "GPL-2.0-only",
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-decorators": "^7.28.0",
|
||||
"@discourse/lint-configs": "^2.37.1",
|
||||
"@babel/plugin-proposal-decorators": "^7.29.0",
|
||||
"@discourse/lint-configs": "^2.39.0",
|
||||
"@discourse/moment-timezone-names-translations": "^1.0.0",
|
||||
"@fortawesome/fontawesome-free": "7.1.0",
|
||||
"@glint/ember-tsc": "^1.0.8",
|
||||
"@glint/tsserver-plugin": "^2.0.8",
|
||||
"@glint/ember-tsc": "^1.1.1",
|
||||
"@glint/tsserver-plugin": "^2.1.0",
|
||||
"@rdil/parallel-prettier": "^3.0.0",
|
||||
"@swc/core": "^1.15.7",
|
||||
"chrome-launcher": "^1.2.1",
|
||||
@@ -19,15 +19,15 @@
|
||||
"esbuild": "^0.25.11",
|
||||
"eslint": "9.39.2",
|
||||
"jsdoc": "^4.0.5",
|
||||
"lefthook": "^2.0.13",
|
||||
"lefthook": "^2.1.0",
|
||||
"licensee": "^11.1.1",
|
||||
"lint-to-the-future": "^2.6.4",
|
||||
"lint-to-the-future-ember-template": "^3.1.0",
|
||||
"lint-to-the-future-ember-template": "^4.1.0",
|
||||
"lint-to-the-future-eslint": "^3.3.0",
|
||||
"playwright": "1.57.0",
|
||||
"prettier": "3.8.0",
|
||||
"prettier": "3.8.1",
|
||||
"puppeteer-core": "^24.34.0",
|
||||
"stylelint": "17.0.0",
|
||||
"stylelint": "17.1.0",
|
||||
"terser": "^5.44.1",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import Service from "@ember/service";
|
||||
import { click, render } from "@ember/test-helpers";
|
||||
import { module, test } from "qunit";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { module, test } from "qunit";
|
||||
import {
|
||||
bbcodeAttributeDecode,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import { fillIn, render } from "@ember/test-helpers";
|
||||
import { module, test } from "qunit";
|
||||
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable qunit/no-conditional-assertions */
|
||||
import EmberObject from "@ember/object";
|
||||
import { test } from "qunit";
|
||||
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
Generated
+1085
-851
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user