mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Use node: for Node.js builtin modules
Use the the `node:` protocol when importing Node.js builtin modules and enable rule in eslint to enforce. The `node:` protocol for Node.js builtin modules has been available since Node.js v14. See: https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/enforce-node-protocol-usage.md
This commit is contained in:
@@ -253,6 +253,10 @@
|
||||
"forceSingleLine": true
|
||||
}
|
||||
],
|
||||
"import/enforce-node-protocol-usage": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"lodash/import-scope": [
|
||||
|
Reference in New Issue
Block a user