element-web/.eslintrc.js

31 lines
755 B
JavaScript
Raw Normal View History

module.exports = {
plugins: ["matrix-org"],
extends: [
"plugin:matrix-org/babel",
"plugin:matrix-org/react",
],
2021-06-30 12:19:04 +00:00
env: {
browser: true,
node: true,
},
2021-06-30 12:19:04 +00:00
rules: {
// Things we do that break the ideal style
"quotes": "off",
},
2021-06-30 12:19:04 +00:00
overrides: [{
files: ["src/**/*.{ts,tsx}"],
extends: [
"plugin:matrix-org/typescript",
"plugin:matrix-org/react",
],
2021-06-30 12:19:04 +00: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",
},
}],
};