2019-12-06 19:20:31 +01:00
|
|
|
module.exports = {
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 8,
|
|
|
|
},
|
|
|
|
env: {
|
2020-02-17 15:49:26 +01:00
|
|
|
es6: true,
|
2019-12-06 19:20:31 +01:00
|
|
|
node: true,
|
|
|
|
// we also have some browser code (ie. the preload script)
|
|
|
|
browser: true,
|
|
|
|
},
|
2020-07-21 16:06:38 +02:00
|
|
|
extends: ["matrix-org"],
|
|
|
|
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",
|
|
|
|
"indent": "off",
|
|
|
|
"prefer-promise-reject-errors": "off",
|
|
|
|
"no-async-promise-executor": "off",
|
|
|
|
}
|
2019-12-06 19:20:31 +01:00
|
|
|
}
|