2019-12-06 19:20:31 +01:00
|
|
|
module.exports = {
|
2021-07-01 10:16:49 +02:00
|
|
|
plugins: ["matrix-org"],
|
2021-05-27 15:27:20 +02:00
|
|
|
extends: [
|
|
|
|
"plugin:matrix-org/javascript",
|
|
|
|
],
|
2019-12-06 19:20:31 +01:00
|
|
|
parserOptions: {
|
2021-05-27 15:27:20 +02:00
|
|
|
ecmaVersion: 2021,
|
2019-12-06 19:20:31 +01:00
|
|
|
},
|
|
|
|
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
|
|
|
rules: {
|
|
|
|
"quotes": "off",
|
|
|
|
"indent": "off",
|
|
|
|
"prefer-promise-reject-errors": "off",
|
|
|
|
"no-async-promise-executor": "off",
|
2021-07-01 10:16:49 +02:00
|
|
|
},
|
|
|
|
overrides: [{
|
|
|
|
files: ["src/**/*.{ts,tsx}"],
|
|
|
|
extends: [
|
|
|
|
"plugin:matrix-org/typescript",
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
// Things we do that break the ideal style
|
|
|
|
"prefer-promise-reject-errors": "off",
|
|
|
|
"quotes": "off",
|
|
|
|
|
|
|
|
// We disable this while we're transitioning
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
};
|