mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
573698789e
This migrates to the new plugin form of our custom ESLint configs. As part of this, some packages are de-duplicated, configs streamlined, etc.
31 lines
755 B
JavaScript
31 lines
755 B
JavaScript
module.exports = {
|
|
plugins: ["matrix-org"],
|
|
extends: [
|
|
"plugin:matrix-org/babel",
|
|
"plugin:matrix-org/react",
|
|
],
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
rules: {
|
|
// Things we do that break the ideal style
|
|
"quotes": "off",
|
|
},
|
|
overrides: [{
|
|
files: ["src/**/*.{ts,tsx}"],
|
|
extends: [
|
|
"plugin:matrix-org/typescript",
|
|
"plugin:matrix-org/react",
|
|
],
|
|
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",
|
|
},
|
|
}],
|
|
};
|