From f960700a2ac396fd3820daf512921813c4d253c0 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Thu, 23 Feb 2023 17:10:06 +0000 Subject: [PATCH] Exclude test from eslint checking since it always was excluded, and I can't get it to check --- .eslintrc.js | 2 +- package.json | 4 ++-- tsconfig.json | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 930875f..6e498f6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,7 +21,7 @@ module.exports = { }, overrides: [ { - files: ["src/**/*.ts", "test/**/*.ts"], + files: ["src/**/*.ts"], extends: ["plugin:matrix-org/typescript"], rules: { // Things we do that break the ideal style diff --git a/package.json b/package.json index 1f7ba1b..eb775eb 100644 --- a/package.json +++ b/package.json @@ -21,11 +21,11 @@ "start": "yarn run build:ts && yarn run build:res && electron .", "lint": "yarn lint:types && yarn lint:js", "lint:js": "yarn lint:js:src && yarn lint:js:scripts && yarn lint:js:hak", - "lint:js:src": "eslint --max-warnings 0 src test", + "lint:js:src": "eslint --max-warnings 0 src", "lint:js:scripts": "eslint --max-warnings 0 --config .eslintrc-scripts.js scripts", "lint:js:hak": "eslint --max-warnings 0 --config .eslintrc-hak.js hak", "lint:js-fix": "yarn lint:js-fix:src && yarn lint:js-fix:scripts && yarn lint:js-fix:hak", - "lint:js-fix:src": "eslint --fix --max-warnings 0 src test", + "lint:js-fix:src": "eslint --fix --max-warnings 0 src", "lint:js-fix:scripts": "eslint --fix --max-warnings 0 --config .eslintrc-scripts.js scripts", "lint:js-fix:hak": "eslint --fix --max-warnings 0 --config .eslintrc-hak.js hak", "lint:types": "yarn lint:types:src && yarn lint:types:scripts && yarn lint:types:hak", diff --git a/tsconfig.json b/tsconfig.json index 3d5d02a..008a811 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,12 +7,12 @@ "target": "es2016", "sourceMap": false, "outDir": "./lib", - "rootDir": ".", + "rootDir": "./src", "declaration": true, "typeRoots": ["src/@types", "node_modules/@types"], "lib": ["es2019", "dom"], - "types": ["jest", "node"], + "types": ["node"], "strict": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"] + "include": ["./src/**/*.ts"] }