From 7b52ef9dbf90bc7252a94047ba950834ecac44ec Mon Sep 17 00:00:00 2001 From: Samual Date: Sun, 21 Apr 2024 18:55:01 +0100 Subject: [PATCH] update linting --- .eslintrc.yml | 1 + package.json | 1 + pnpm-lock.yaml | 8 ++++++++ src/tsconfig.json | 13 +++++-------- tsconfig.json | 17 +++++++++-------- 5 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 37bd846..533c593 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,3 +1,4 @@ root: true extends: [ "@samual/eslint-config" ] parserOptions: { project: [ ./tsconfig.json, ./src/tsconfig.json ] } +rules: { "@typescript-eslint/no-unused-vars": off } diff --git a/package.json b/package.json index 7b7bfac..2420489 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "devDependencies": { "@samual/eslint-config": "^0.0.3", "@samual/rollup-config": "0.0.3-f161e35", + "@total-typescript/ts-reset": "^0.5.1", "@types/babel__core": "^7.20.5", "@types/babel__generator": "^7.6.8", "@types/babel__traverse": "^7.20.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ae52ae7..e45a3f9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -138,6 +138,9 @@ importers: '@samual/rollup-config': specifier: 0.0.3-f161e35 version: 0.0.3-f161e35(@babel/core@7.24.4)(@types/babel__core@7.20.5)(prettier@3.2.5)(rollup@4.14.2) + '@total-typescript/ts-reset': + specifier: ^0.5.1 + version: 0.5.1 '@types/babel__core': specifier: ^7.20.5 version: 7.20.5 @@ -1116,6 +1119,9 @@ packages: resolution: {integrity: sha512-Kri/WTmEpJ6pyli4c8Bx/d51YFGr+RAp1mW7XLop7haldfqI7CJd1XTwX6E/Tz643zgpJIAf0sUyUNeUUHu9pA==} engines: {node: ^18 || >=20} + '@total-typescript/ts-reset@0.5.1': + resolution: {integrity: sha512-AqlrT8YA1o7Ff5wPfMOL0pvL+1X+sw60NN6CcOCqs658emD6RfiXhF7Gu9QcfKBH7ELY2nInLhKSCWVoNL70MQ==} + '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -3168,6 +3174,8 @@ snapshots: - rollup - supports-color + '@total-typescript/ts-reset@0.5.1': {} + '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.24.4 diff --git a/src/tsconfig.json b/src/tsconfig.json index 8b3acba..67a0cda 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -1,13 +1,10 @@ { + "extends": "..", "compilerOptions": { "exactOptionalPropertyTypes": true, - "noUncheckedIndexedAccess": true, - "strict": true, - "useUnknownInCatchVariables": true, - "strictNullChecks": true, - "rootDir": "." + "declaration": true, + "outDir": "../dist", + "types": [ "@types/node", "@total-typescript/ts-reset", "babel-plugin-here/env" ] }, - "extends": "..", - "include": [ "**/*" ], - "references": [ { "path": ".." } ] + "include": [ "**/*" ] } diff --git a/tsconfig.json b/tsconfig.json index 0db6d60..a23940e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,22 +1,23 @@ { + "include": [ "*", "scripts/*", "game-scripts/*" ], "compilerOptions": { "allowUnreachableCode": false, "allowUnusedLabels": false, "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, - "noImplicitReturns": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, "noUnusedParameters": true, + "strict": true, + "module": "ESNext", "moduleResolution": "Node", "resolveJsonModule": true, - // "noEmit": true, + "types": [ "@types/node", "@total-typescript/ts-reset" ], + "noEmit": true, "checkJs": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "target": "ES2022", - "skipLibCheck": true, - "composite": true, - "emitDeclarationOnly": true, - "module": "ESNext" - }, - "include": [ "*", "scripts/*", "game-scripts/*", "package.json" ] + "skipLibCheck": true + } } -- knotmirror 0.0.1