2022-05-03 22:32:16 +08:00
|
|
|
module.exports = {
|
2022-12-10 03:34:25 +08:00
|
|
|
plugins: ["matrix-org"],
|
|
|
|
extends: ["plugin:matrix-org/react", "plugin:matrix-org/a11y", "prettier"],
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: "latest",
|
|
|
|
sourceType: "module",
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
"jsx-a11y/media-has-caption": ["off"],
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ["src/**/*.{ts,tsx}"],
|
|
|
|
extends: [
|
|
|
|
"plugin:matrix-org/typescript",
|
2022-05-03 22:32:16 +08:00
|
|
|
"plugin:matrix-org/react",
|
|
|
|
"prettier",
|
2022-12-10 03:34:25 +08:00
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
// We're aiming to convert this code to strict mode
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
},
|
2022-05-03 22:32:16 +08:00
|
|
|
},
|
2022-12-10 03:34:25 +08:00
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: "detect",
|
2022-05-03 22:32:16 +08:00
|
|
|
},
|
2022-12-10 03:34:25 +08:00
|
|
|
},
|
2022-05-03 22:32:16 +08:00
|
|
|
};
|