meta: reword linter messages

PR-URL: https://github.com/nodejs/node/pull/53949
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Aviv Keller 2024-07-21 18:21:42 -04:00 committed by GitHub
parent eb85db4606
commit e8c2acf5de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 13 deletions

View file

@ -346,31 +346,31 @@ export default [
'error',
{
name: '__filename',
message: 'Use import.meta.url instead',
message: 'Use import.meta.url instead.',
},
{
name: '__dirname',
message: 'Not available in ESM',
message: 'Not available in ESM.',
},
{
name: 'exports',
message: 'Not available in ESM',
message: 'Not available in ESM.',
},
{
name: 'module',
message: 'Not available in ESM',
message: 'Not available in ESM.',
},
{
name: 'require',
message: 'Use import instead',
message: 'Use import instead.',
},
{
name: 'Buffer',
message: 'Import Buffer instead of using the global',
message: "Import 'Buffer' instead of using the global.",
},
{
name: 'process',
message: 'Import process instead of using the global',
message: "Import 'process' instead of using the global.",
},
] },
},