Update eslint & plugins

Also replace eslint-plugin-node with the maintained eslint-plugin-n
This commit is contained in:
AaronDewes 2022-08-09 15:26:25 +00:00
parent 64644b57e3
commit 38746b86fd
16 changed files with 1409 additions and 3457 deletions

View file

@ -5,21 +5,24 @@ env:
extends:
- eslint:recommended
- prettier
- plugin:node/recommended
- plugin:n/recommended
- plugin:security/recommended
plugins:
- node
- n
- security
root: true
rules:
node/no-deprecated-api: off
node/no-unsupported-features/es-syntax: off
node/no-unsupported-features/node-builtins: off
node/no-unpublished-require: off
node/no-unpublished-import: off
n/no-deprecated-api: off
n/no-unsupported-features/es-syntax: off
n/no-unsupported-features/node-builtins: off
n/no-unpublished-require: off
n/no-unpublished-import: off
n/no-process-exit: off
# This forces using file extensions in imports, which is a best practice, but refactoring would take some time
n/no-missing-import: off
security/detect-non-literal-fs-filename: off
security/detect-object-injection: off