mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 15:34:59 +01:00
Migrate to eslint-plugin-matrix-org
Switch to the new linting package. It offers a new shared config for native JavaScript, which this package targets.
This commit is contained in:
parent
0c43287f98
commit
3efed87d38
13
.eslintrc.js
13
.eslintrc.js
@ -1,6 +1,12 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
"matrix-org",
|
||||||
|
],
|
||||||
|
extends: [
|
||||||
|
"plugin:matrix-org/javascript",
|
||||||
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 8,
|
ecmaVersion: 2021,
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
es6: true,
|
es6: true,
|
||||||
@ -8,12 +14,7 @@ module.exports = {
|
|||||||
// we also have some browser code (ie. the preload script)
|
// we also have some browser code (ie. the preload script)
|
||||||
browser: true,
|
browser: true,
|
||||||
},
|
},
|
||||||
extends: ["matrix-org"],
|
|
||||||
rules: {
|
rules: {
|
||||||
// js-sdk uses a babel rule which we can't use because we
|
|
||||||
// don't use babel, so remove it & put the original back
|
|
||||||
"babel/no-invalid-this": "off",
|
|
||||||
"no-invalid-this": "error",
|
|
||||||
"quotes": "off",
|
"quotes": "off",
|
||||||
"indent": "off",
|
"indent": "off",
|
||||||
"prefer-promise-reject-errors": "off",
|
"prefer-promise-reject-errors": "off",
|
||||||
|
@ -47,8 +47,8 @@
|
|||||||
"electron-builder-squirrel-windows": "22.10.5",
|
"electron-builder-squirrel-windows": "22.10.5",
|
||||||
"electron-devtools-installer": "^3.1.1",
|
"electron-devtools-installer": "^3.1.1",
|
||||||
"electron-notarize": "^1.0.0",
|
"electron-notarize": "^1.0.0",
|
||||||
"eslint": "7.3.1",
|
"eslint": "7.18.0",
|
||||||
"eslint-config-matrix-org": "^0.1.2",
|
"eslint-plugin-matrix-org": "github:matrix-org/eslint-plugin-matrix-org#main",
|
||||||
"find-npm-prefix": "^1.0.2",
|
"find-npm-prefix": "^1.0.2",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^8.1.0",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
|
Loading…
Reference in New Issue
Block a user