[web] Add prefer-node-protocol ESLint rule (#21523)

* Add `unicorn/prefer-node-protocol`

* Revert non-web changes

* Run `npm run lint:fix` (prefer-node-protocol)

GitOrigin-RevId: c3cdd88ff9e6b3de6a4397d45935c4d026c1c1ed
This commit is contained in:
Antoine Clausse
2024-11-04 10:09:11 +01:00
committed by Copybot
parent 053831b48c
commit eea27a36a4
59 changed files with 92 additions and 91 deletions

View File

@@ -7,7 +7,7 @@
*/
import { User } from '../../app/src/models/User.js'
import { fileURLToPath } from 'url'
import { fileURLToPath } from 'node:url'
// const somePackage = require('some-package')