mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
c546042d18
...instead of monkey patching the console log objects. We use a logging framework everywhere now (this fixes the times when we didn't...) so there's not really a reason to do this the hacky way anymore. This means that log lines now appear to come from whatever else is intercepting the logger (eg. sentry) rather than rageshake.ts. Opinions on this welcome on whether it's better or not.
47 lines
992 B
JavaScript
47 lines
992 B
JavaScript
module.exports = {
|
|
plugins: ["matrix-org"],
|
|
extends: [
|
|
"prettier",
|
|
"plugin:matrix-org/react",
|
|
"plugin:matrix-org/a11y",
|
|
"plugin:matrix-org/typescript",
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: "module",
|
|
project: ["./tsconfig.json"],
|
|
},
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"jsx-a11y/media-has-caption": ["off"],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ["src/**/*.{ts,tsx}", "test/**/*.{ts,tsx}"],
|
|
extends: [
|
|
"plugin:matrix-org/typescript",
|
|
"plugin:matrix-org/react",
|
|
"prettier",
|
|
],
|
|
rules: {
|
|
// We're aiming to convert this code to strict mode
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
// We should use the js-sdk logger, never console directly.
|
|
"no-console": ["error"],
|
|
},
|
|
},
|
|
],
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
};
|