Skip to content

Commit 7622247

Browse files
committed
Migrate to eslint-plugin-matrix-org
Also add required peer dependencies
1 parent cfee98d commit 7622247

File tree

3 files changed

+1234
-897
lines changed

3 files changed

+1234
-897
lines changed

.eslintrc.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
module.exports = {
2-
extends: ["matrix-org"],
32
plugins: [
4-
"babel",
3+
"matrix-org",
54
],
5+
extends: [
6+
"plugin:matrix-org/babel",
7+
],
8+
parserOptions: {
9+
project: ["./tsconfig.json"],
10+
},
611
env: {
712
browser: true,
813
},
@@ -29,7 +34,7 @@ module.exports = {
2934
},
3035
overrides: [{
3136
"files": ["src/**/*.ts", "test/**/*.ts"],
32-
"extends": ["matrix-org/ts"],
37+
"extends": ["plugin:matrix-org/typescript"],
3338
"rules": {
3439
// TypeScript has its own version of this
3540
"babel/no-invalid-this": "off",

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,25 @@
3838
"@babel/cli": "^7.11.6",
3939
"@babel/core": "^7.11.6",
4040
"@babel/eslint-parser": "^7.25.9",
41+
"@babel/eslint-plugin": "^7.25.9",
4142
"@babel/plugin-proposal-class-properties": "^7.10.4",
4243
"@babel/preset-env": "^7.11.5",
4344
"@babel/preset-typescript": "^7.10.4",
4445
"@casualbot/jest-sonar-reporter": "^2.2.7",
46+
"@stylistic/eslint-plugin": "^2.10.1",
4547
"@testing-library/dom": "^8.0.0",
4648
"@types/jest": "^29.5.12",
4749
"@types/node": "^18.16.0",
50+
"@typescript-eslint/eslint-plugin": "^8.0.0",
51+
"@typescript-eslint/parser": "^8.0.0",
4852
"browserify": "^17.0.0",
49-
"eslint": "^7.8.1",
50-
"eslint-config-matrix-org": "^0.1.2",
53+
"eslint": "^8.0.0",
54+
"eslint-config-google": "^0.14.0",
55+
"eslint-config-prettier": "^9.0.0",
5156
"eslint-plugin-babel": "^5.3.1",
57+
"eslint-plugin-import": "^2.31.0",
58+
"eslint-plugin-matrix-org": "^2.0.0",
59+
"eslint-plugin-unicorn": "^56.0.0",
5260
"jest": "^29.5.0",
5361
"jest-environment-jsdom": "^29.5.0",
5462
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)