mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-21 00:28:08 +08:00
90ef5505bb
This ensures that our tests will be formatted by Prettier, among other things.
35 lines
709 B
JavaScript
35 lines
709 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: {
|
|
"jsx-a11y/media-has-caption": ["off"],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ["src/**/*.{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",
|
|
},
|
|
},
|
|
],
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
};
|