element-web-Github/.eslintrc.js

24 lines
567 B
JavaScript
Raw Normal View History

module.exports = {
2021-06-30 20:19:04 +08:00
extends: ["matrix-org", "matrix-org/react"],
env: {
browser: true,
node: true,
},
2021-06-30 20:19:04 +08:00
rules: {
"quotes": "off",
},
2021-06-30 20:19:04 +08:00
overrides: [{
files: ["src/**/*.{ts,tsx}"],
extends: ["matrix-org/ts", "matrix-org/react"],
env: {
browser: true,
},
2021-06-30 20:19:04 +08:00
rules: {
"quotes": "off",
// While converting to ts we allow this
"@typescript-eslint/no-explicit-any": "off",
"prefer-promise-reject-errors": "off",
},
}],
};