2022-05-03 22:32:16 +08: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: {
|
2022-05-11 23:28:08 +08:00
|
|
|
"jsx-a11y/media-has-caption": ["off"],
|
2022-05-03 22:32:16 +08:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
"src/**/*.{ts,tsx}",
|
|
|
|
],
|
2022-05-06 18:32:09 +08:00
|
|
|
extends: [
|
|
|
|
"plugin:matrix-org/typescript",
|
|
|
|
"plugin:matrix-org/react",
|
|
|
|
"prettier",
|
|
|
|
],
|
2022-10-27 21:54:31 +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
|
|
|
},
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: "detect",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|