From 51a8667b890fbd412bc3a14f0cbd31641e28a9d5 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Thu, 23 Feb 2023 17:33:06 +0000 Subject: [PATCH] Share what we can with extends in eslintrc --- .eslintrc-hak.js | 17 +---------------- .eslintrc-scripts.js | 17 +---------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/.eslintrc-hak.js b/.eslintrc-hak.js index 7762909..28a4224 100644 --- a/.eslintrc-hak.js +++ b/.eslintrc-hak.js @@ -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"], diff --git a/.eslintrc-scripts.js b/.eslintrc-scripts.js index 451822a..ee75006 100644 --- a/.eslintrc-scripts.js +++ b/.eslintrc-scripts.js @@ -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"],