-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <[email protected]>
- Loading branch information
1 parent
91233f2
commit cecea31
Showing
53 changed files
with
652 additions
and
620 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
module.exports = { | ||
plugins: ["matrix-org", "n"], | ||
extends: ["plugin:matrix-org/javascript"], | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
project: ["tsconfig.json"], | ||
}, | ||
env: { | ||
es6: true, | ||
node: true, | ||
// we also have some browser code (ie. the preload script) | ||
browser: true, | ||
}, | ||
// NOTE: These rules are frozen and new rules should not be added here. | ||
// New changes belong in https://github.com/matrix-org/eslint-plugin-matrix-org/ | ||
rules: { | ||
"quotes": "off", | ||
"indent": "off", | ||
"prefer-promise-reject-errors": "off", | ||
"no-async-promise-executor": "off", | ||
|
||
"n/file-extension-in-import": ["error", "always"], | ||
"unicorn/prefer-node-protocol": ["error"], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["src/**/*.ts"], | ||
extends: ["plugin:matrix-org/typescript"], | ||
rules: { | ||
// Things we do that break the ideal style | ||
"prefer-promise-reject-errors": "off", | ||
"quotes": "off", | ||
|
||
"@typescript-eslint/no-explicit-any": "off", | ||
// We're okay with assertion errors when we ask for them | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["hak/**/*.ts"], | ||
extends: ["plugin:matrix-org/typescript"], | ||
parserOptions: { | ||
project: ["hak/tsconfig.json"], | ||
}, | ||
rules: { | ||
// Things we do that break the ideal style | ||
"prefer-promise-reject-errors": "off", | ||
"quotes": "off", | ||
|
||
"@typescript-eslint/no-explicit-any": "off", | ||
// We're okay with assertion errors when we ask for them | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["scripts/**/*.ts"], | ||
extends: ["plugin:matrix-org/typescript"], | ||
parserOptions: { | ||
project: ["scripts/tsconfig.json"], | ||
}, | ||
rules: { | ||
// Things we do that break the ideal style | ||
"prefer-promise-reject-errors": "off", | ||
"quotes": "off", | ||
|
||
"@typescript-eslint/no-explicit-any": "off", | ||
// We're okay with assertion errors when we ask for them | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["playwright/**/*.ts"], | ||
extends: ["plugin:matrix-org/typescript"], | ||
parserOptions: { | ||
project: ["playwright/tsconfig.json"], | ||
}, | ||
rules: { | ||
// Things we do that break the ideal style | ||
"prefer-promise-reject-errors": "off", | ||
"quotes": "off", | ||
|
||
"@typescript-eslint/no-explicit-any": "off", | ||
// We're okay with assertion errors when we ask for them | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.