mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
41 lines
899 B
JavaScript
41 lines
899 B
JavaScript
module.exports = {
|
|
plugins: [
|
|
"matrix-org",
|
|
],
|
|
extends: [
|
|
"plugin:matrix-org/react",
|
|
"plugin:matrix-org/a11y",
|
|
"prettier",
|
|
],
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
parserOptions: {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module",
|
|
},
|
|
rules: {
|
|
// We break this rule in a few places: dial it back to a warning
|
|
// (and run with max warnings) to tolerate the existing code
|
|
"react-hooks/exhaustive-deps": ["warn"],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: [
|
|
"src/**/*.{ts,tsx}",
|
|
],
|
|
extends: [
|
|
"plugin:matrix-org/typescript",
|
|
"plugin:matrix-org/react",
|
|
"prettier",
|
|
],
|
|
},
|
|
],
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
};
|