feat(basic): prefer non global process object (#214)

This commit is contained in:
曾明健 2023-07-12 18:39:07 +08:00 committed by GitHub
parent 1b25322bf5
commit 3ef955d56f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,7 @@ module.exports = {
'max-statements-per-line': ['error', { max: 1 }],
// node
// 'n/prefer-global/process': ['error', 'never'], // Not sure if we need it as we are using `process.env.NODE_ENV` a lot in front-end.
'n/prefer-global/process': ['error', 'never'],
'n/prefer-global/buffer': ['error', 'never'],
'n/no-callback-literal': 'off',