Skip to content

Commit 539659a

Browse files
authored
chore(eslint): Upgrade ESLint configuration (#38989)
1 parent b4b9303 commit 539659a

164 files changed

Lines changed: 2325 additions & 3632 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/little-eyes-kneel.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
'@rocket.chat/eslint-config': minor
3+
'@rocket.chat/server-cloud-communication': patch
4+
'@rocket.chat/omnichannel-services': patch
5+
'@rocket.chat/omnichannel-transcript': patch
6+
'@rocket.chat/authorization-service': patch
7+
'@rocket.chat/federation-matrix': patch
8+
'@rocket.chat/web-ui-registration': patch
9+
'@rocket.chat/network-broker': patch
10+
'@rocket.chat/password-policies': patch
11+
'@rocket.chat/release-changelog': patch
12+
'@rocket.chat/storybook-config': patch
13+
'@rocket.chat/presence-service': patch
14+
'@rocket.chat/omni-core-ee': patch
15+
'@rocket.chat/fuselage-ui-kit': patch
16+
'@rocket.chat/instance-status': patch
17+
'@rocket.chat/media-signaling': patch
18+
'@rocket.chat/patch-injection': patch
19+
'@rocket.chat/account-service': patch
20+
'@rocket.chat/media-calls': patch
21+
'@rocket.chat/message-parser': patch
22+
'@rocket.chat/mock-providers': patch
23+
'@rocket.chat/release-action': patch
24+
'@rocket.chat/pdf-worker': patch
25+
'@rocket.chat/ui-theming': patch
26+
'@rocket.chat/account-utils': patch
27+
'@rocket.chat/core-services': patch
28+
'@rocket.chat/message-types': patch
29+
'@rocket.chat/model-typings': patch
30+
'@rocket.chat/mongo-adapter': patch
31+
'@rocket.chat/ui-video-conf': patch
32+
'@rocket.chat/uikit-playground': patch
33+
'@rocket.chat/cas-validate': patch
34+
'@rocket.chat/core-typings': patch
35+
'@rocket.chat/jest-presets': patch
36+
'@rocket.chat/peggy-loader': patch
37+
'@rocket.chat/rest-typings': patch
38+
'@rocket.chat/server-fetch': patch
39+
'@rocket.chat/ddp-streamer': patch
40+
'@rocket.chat/queue-worker': patch
41+
'@rocket.chat/presence': patch
42+
'@rocket.chat/apps-engine': patch
43+
'@rocket.chat/desktop-api': patch
44+
'@rocket.chat/http-router': patch
45+
'@rocket.chat/poplib': patch
46+
'@rocket.chat/ui-composer': patch
47+
'@rocket.chat/ui-contexts': patch
48+
'@rocket.chat/license': patch
49+
'@rocket.chat/api-client': patch
50+
'@rocket.chat/ddp-client': patch
51+
'@rocket.chat/log-format': patch
52+
'@rocket.chat/gazzodown': patch
53+
'@rocket.chat/omni-core': patch
54+
'@rocket.chat/ui-avatar': patch
55+
'@rocket.chat/ui-client': patch
56+
'@rocket.chat/livechat': patch
57+
'@rocket.chat/abac': patch
58+
'@rocket.chat/favicon': patch
59+
'@rocket.chat/tracing': patch
60+
'@rocket.chat/ui-voip': patch
61+
'@rocket.chat/agenda': patch
62+
'@rocket.chat/base64': patch
63+
'@rocket.chat/logger': patch
64+
'@rocket.chat/models': patch
65+
'@rocket.chat/random': patch
66+
'@rocket.chat/sha256': patch
67+
'@rocket.chat/ui-kit': patch
68+
'@rocket.chat/tools': patch
69+
'@rocket.chat/apps': patch
70+
'@rocket.chat/cron': patch
71+
'@rocket.chat/i18n': patch
72+
'@rocket.chat/jwt': patch
73+
'@rocket.chat/meteor': patch
74+
---
75+
76+
chore(eslint): Upgrades ESLint and its configuration

.github/workflows/ci-code-check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
5757
- name: Cache TypeCheck
5858
uses: actions/cache@v5
59-
if: matrix.check == 'ts'
6059
with:
6160
path: ./apps/meteor/tsconfig.typecheck.tsbuildinfo
6261
key: typecheck-cache-${{ runner.OS }}-${{ hashFiles('yarn.lock') }}-${{ github.event.issue.number }}
@@ -66,7 +65,6 @@ jobs:
6665
typecheck-cache
6766
6867
- name: Install Meteor
69-
if: matrix.check == 'ts'
7068
shell: bash
7169
run: |
7270
# Restore bin from cache

.vscode/settings.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
{
2-
"eslint.workingDirectories": [
3-
{
4-
"pattern": "packages/*",
5-
"changeProcessCWD": true
6-
},
7-
{
8-
"pattern": "apps/*",
9-
"changeProcessCWD": true
10-
},
11-
{
12-
"pattern": "ee/apps/*",
13-
"changeProcessCWD": true
14-
},
15-
{
16-
"pattern": "ee/packages/*",
17-
"changeProcessCWD": true
18-
}
19-
],
202
"typescript.tsdk": "./node_modules/typescript/lib",
213
"cSpell.words": [
224
"autotranslate",

apps/meteor/.eslintrc.json

Lines changed: 0 additions & 156 deletions
This file was deleted.

apps/meteor/package.json

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"dev": "NODE_OPTIONS=\"--trace-warnings\" meteor --exclude-archs \"web.browser.legacy, web.cordova\"",
3535
"docker:start": "docker-compose up",
3636
"dsv": "meteor npm run dev",
37-
"eslint": "NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --ext .js,.jsx,.ts,.tsx . --cache",
37+
"eslint": "NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --cache",
3838
"eslint:fix": "yarn eslint --fix",
3939
"ha": "meteor npm run ha:start",
4040
"ha:add": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' ts-node .scripts/run-ha.ts instance",
4141
"ha:start": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' ts-node .scripts/run-ha.ts main",
42-
"lint": "yarn stylelint && yarn eslint",
42+
"lint": "yarn stylelint && meteor lint && yarn eslint .",
4343
"migration:add": "ts-node-transpile-only --skip-project .scripts/make-migration.ts",
4444
"ms": "TRANSPORTER=${TRANSPORTER:-TCP} meteor npm run dev",
4545
"obj:dev": "TEST_MODE=true yarn dev",
@@ -309,14 +309,12 @@
309309
"devDependencies": {
310310
"@axe-core/playwright": "^4.10.2",
311311
"@babel/core": "~7.28.6",
312-
"@babel/eslint-parser": "~7.28.6",
313312
"@babel/preset-env": "~7.28.6",
314313
"@babel/preset-react": "~7.27.1",
315314
"@babel/register": "~7.28.6",
316315
"@faker-js/faker": "~8.0.2",
317316
"@playwright/test": "^1.52.0",
318317
"@rocket.chat/desktop-api": "workspace:~",
319-
"@rocket.chat/eslint-config": "workspace:^",
320318
"@rocket.chat/jest-presets": "workspace:~",
321319
"@rocket.chat/livechat": "workspace:^",
322320
"@rocket.chat/mock-providers": "workspace:^",
@@ -400,8 +398,6 @@
400398
"@types/underscore": "^1.13.0",
401399
"@types/xml-crypto": "~1.4.6",
402400
"@types/xml-encryption": "~1.2.4",
403-
"@typescript-eslint/eslint-plugin": "~5.60.1",
404-
"@typescript-eslint/parser": "~5.60.1",
405401
"autoprefixer": "^9.8.8",
406402
"babel-loader": "~10.0.0",
407403
"babel-plugin-array-includes": "^2.0.3",
@@ -414,18 +410,7 @@
414410
"cross-env": "^7.0.3",
415411
"docker-compose": "^0.24.8",
416412
"emojione-assets": "^4.5.0",
417-
"eslint": "~8.45.0",
418-
"eslint-config-prettier": "~9.1.2",
419-
"eslint-plugin-anti-trojan-source": "~1.1.2",
420-
"eslint-plugin-import": "~2.31.0",
421-
"eslint-plugin-no-floating-promise": "~2.0.0",
422-
"eslint-plugin-playwright": "~2.2.2",
423-
"eslint-plugin-prettier": "~5.2.6",
424-
"eslint-plugin-react": "~7.37.5",
425-
"eslint-plugin-react-hooks": "~5.0.0",
426-
"eslint-plugin-storybook": "~0.11.6",
427-
"eslint-plugin-testing-library": "~6.4.0",
428-
"eslint-plugin-you-dont-need-lodash-underscore": "~6.14.0",
413+
"eslint": "~9.39.3",
429414
"fast-glob": "^3.3.3",
430415
"i18next": "~23.4.9",
431416
"jest": "~30.2.0",

apps/meteor/packages/.eslintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/meteor/packages/rocketchat-i18n/.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/meteor/tests/e2e/.eslintrc.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)