koajs / examples

Example Koa apps
4.52k stars 744 forks source link

Upgrade ESLint and configs/plugins to latest versions #151

Closed hyperupcall closed 4 months ago

hyperupcall commented 11 months ago

Checklist

Description

ESLint versions are ancient and I get warnings when running on current 18.X LTS series.

$ npm run lint

> koa-examples@0.0.1 lint
> eslint .

(node:506347) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:506347) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:506347) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:506347) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:506347) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:506347) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:506347) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency

This all ESLint dependencies. ESLint 8 supports v16 and above. eslint-plugin-standard is no longer needed too.

socket-security[bot] commented 11 months ago

Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
eslint-plugin-promise 3.8.0...6.1.1 eval +76/-0 9.39 MB eslint-community-bot
eslint-config-standard 6.2.1...17.1.0 None +144/-98 16 MB voxpelli
eslint 3.19.0...8.51.0 environment +75/-95 9.32 MB eslintbot

🚮 Removed packages: eslint-plugin-standard@2.3.1