Share what we can with extends in eslintrc

This commit is contained in:
Andy Balaam 2023-02-23 17:33:06 +00:00
parent f960700a2a
commit 51a8667b89
2 changed files with 2 additions and 32 deletions

View file

@ -1,24 +1,9 @@
module.exports = {
plugins: ["matrix-org"],
extends: ["plugin:matrix-org/javascript"],
extends: [".eslintrc.js"],
parserOptions: {
ecmaVersion: 2021,
project: ["hak/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",
},
overrides: [
{
files: ["hak/**/*.ts"],

View file

@ -1,24 +1,9 @@
module.exports = {
plugins: ["matrix-org"],
extends: ["plugin:matrix-org/javascript"],
extends: [".eslintrc.js"],
parserOptions: {
ecmaVersion: 2021,
project: ["scripts/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",
},
overrides: [
{
files: ["scripts/**/*.ts"],