obsidian-sample-plugin icon indicating copy to clipboard operation
obsidian-sample-plugin copied to clipboard

Update packages, eslint, and fix missing packages.

Open stroiman opened this issue 6 months ago • 4 comments

This update outdated packages, updates eslint, and adds a few missing packages

Fix missing packages

Build tools, like eslint, should be added as dev dependencies to JS projects. Then it's the concrete version in your project used when building; rather than depending on an uncontrollable context; which plugins developers or build servers have installed globally.

Update eslint

The .eslintrc format is obsolete. It has been updated to the new flat file format

Update packages

Many packages were very old; including TypeScript that was at 4.x.

Eslint is only updated to version 8; rather than 9 - because the typescript eslint module doesn't support eslint@8 as a peer dependency; making npm fail during install.

@types/node should be of the same major version as the actual node.js runtime. In my local Obsidian developer console, process.versions reveals that it uses version 18 (not 20?), which is why I updated that module to version 18.

stroiman avatar Aug 02 '24 12:08 stroiman