element-desktop/.eslintrc.js

23 lines
616 B
JavaScript
Raw Normal View History

module.exports = {
parserOptions: {
ecmaVersion: 8,
},
env: {
2020-02-17 14:49:26 +00:00
es6: true,
node: true,
// we also have some browser code (ie. the preload script)
browser: true,
},
2020-07-21 14:06:38 +00: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",
}
}