2022-05-03 14:32:16 +00:00
|
|
|
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}",
|
|
|
|
],
|
2022-05-06 10:32:09 +00:00
|
|
|
extends: [
|
|
|
|
"plugin:matrix-org/typescript",
|
|
|
|
"plugin:matrix-org/react",
|
|
|
|
"prettier",
|
|
|
|
],
|
2022-05-03 14:32:16 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: "detect",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|