mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
326e6577e1
* Convert hak to TypeScript * Fix linter & remove stray log line * Fix more linting errors In one case by switching to import() and hence esnext * Return type for getNodeModuleBin Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> * More types Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
36 lines
906 B
JavaScript
36 lines
906 B
JavaScript
module.exports = {
|
|
plugins: ["matrix-org"],
|
|
extends: [
|
|
"plugin:matrix-org/javascript",
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2021,
|
|
},
|
|
env: {
|
|
es6: true,
|
|
node: true,
|
|
// we also have some browser code (ie. the preload script)
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
"quotes": "off",
|
|
"indent": "off",
|
|
"prefer-promise-reject-errors": "off",
|
|
"no-async-promise-executor": "off",
|
|
},
|
|
overrides: [{
|
|
files: ["{src,scripts,hak}/**/*.{ts,tsx}"],
|
|
extends: [
|
|
"plugin:matrix-org/typescript",
|
|
],
|
|
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",
|
|
},
|
|
}],
|
|
};
|