Problem Set 2 Erratum
You may ignore lint errors for the rule @typescript-eslint/no-base-to-string
error 'myRegionSet' will evaluate to '[object Object]' when stringified @typescript-eslint/no-base-to-string
Disabling @typescript-eslint/no-base-to-string
If you don’t want to see this error when you npm run lint
, you can apply a patch to your problem set.
Summary
Run the following command from a clean Problem Set 2 working directory:
curl https://web.mit.edu/6.102/www/sp24/psets/ps2/update-eslintrc.patch | git apply --index
Step-by-step instructions
Make sure your working directory is clean:
$ git status On branch main Your branch is up to date with 'origin/main'. nothing to commit, working tree clean
-
$ curl https://web.mit.edu/6.102/www/sp24/psets/ps2/update-eslintrc.patch | git apply --index % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 695 100 695 0 0 15161 0 --:--:-- --:--:-- --:--:-- 15444
$ git status On branch main Your branch is up to date with 'origin/main'. Changes to be committed: (use "git restore --staged <file>..." to unstage) modified: .eslintrc.yaml
-
$ git commit -m 'Disable TS ESLint no-base-to-string rule' [main abc1234] Disable TS ESLint no-base-to-string rule 1 file changed, 1 insertion(+)