element-web-Github/.eslintrc.js

31 lines
755 B
JavaScript
Raw Permalink Normal View History

module.exports = {
plugins: ["matrix-org"],
extends: [
"plugin:matrix-org/babel",
"plugin:matrix-org/react",
],
2021-06-30 20:19:04 +08:00
env: {
browser: true,
node: true,
},
2021-06-30 20:19:04 +08:00
rules: {
// Things we do that break the ideal style
"quotes": "off",
},
2021-06-30 20:19:04 +08:00
overrides: [{
files: ["src/**/*.{ts,tsx}"],
extends: [
"plugin:matrix-org/typescript",
"plugin:matrix-org/react",
],
2021-06-30 20:19:04 +08:00
rules: {
// Things we do that break the ideal style
"prefer-promise-reject-errors": "off",
"quotes": "off",
// We disable this while we're transitioning
"@typescript-eslint/no-explicit-any": "off",
},
}],
};