From 1e151be446581b40d83d4bb4c792317e444e33cf Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Fri, 22 Sep 2023 14:56:54 -0700 Subject: [PATCH 1/2] Support NPM 10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Breaking changes¹ don't seem to affect Auspice usage. ¹ https://github.com/npm/cli/blob/4469fcdf18226716f449e42b6ad15a67dc9ec09c/CHANGELOG.md --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c8c394e1c..33fa65e45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -114,7 +114,7 @@ }, "engines": { "node": "^16 || ^18 || ^20", - "npm": "^7 || ^8 || ^9" + "npm": "^7 || ^8 || ^9 || ^10" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index ce99bc885..ec49038e7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "homepage": "https://www.npmjs.com/package/auspice", "engines": { "node": "^16 || ^18 || ^20", - "npm": "^7 || ^8 || ^9" + "npm": "^7 || ^8 || ^9 || ^10" }, "bin": { "auspice": "./auspice.js" From e78fddbf2eecc4fe387da5139a2693916ce87c3a Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:14:40 -0700 Subject: [PATCH 2/2] TypeScript: Allow implicit and explicit any Reasoning in inline comments. --- .eslintrc.yaml | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 1967daa61..3f385f2fb 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -22,6 +22,7 @@ globals: rules: # Code quality rules "@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }] + "@typescript-eslint/no-explicit-any": off # Allow explicit any to make incremental TypeScript adoption easier. no-unused-vars: off "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_" }] no-use-before-define: off diff --git a/tsconfig.json b/tsconfig.json index 1d6386388..a03dcf66c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,6 +31,7 @@ Visit https://aka.ms/tsconfig.json for a detailed list of options. /* Type Checking */ "strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": false, /* Allow implicit any to make incremental TypeScript adoption easier. */ "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */