element-call-Github/.eslintrc.cjs

47 lines
992 B
JavaScript
Raw Normal View History

2022-05-03 22:32:16 +08:00
module.exports = {
plugins: ["matrix-org"],
extends: [
"prettier",
"plugin:matrix-org/react",
"plugin:matrix-org/a11y",
"plugin:matrix-org/typescript",
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
project: ["./tsconfig.json"],
},
env: {
browser: true,
node: true,
},
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"jsx-a11y/media-has-caption": ["off"],
},
overrides: [
{
2023-09-19 00:58:49 +08:00
files: ["src/**/*.{ts,tsx}", "test/**/*.{ts,tsx}"],
extends: [
"plugin:matrix-org/typescript",
2022-05-03 22:32:16 +08:00
"plugin:matrix-org/react",
"prettier",
],
rules: {
// We're aiming to convert this code to strict mode
"@typescript-eslint/no-non-null-assertion": "off",
// We should use the js-sdk logger, never console directly.
"no-console": ["error"],
},
2022-05-03 22:32:16 +08:00
},
],
settings: {
react: {
version: "detect",
2022-05-03 22:32:16 +08:00
},
},
2022-05-03 22:32:16 +08:00
};