feat(basic): add max-statements-per-line (#129)

This commit is contained in:
曾明健 2022-11-17 01:25:16 +08:00 committed by GitHub
parent b53ffae83e
commit 65aec3f101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,6 +285,7 @@ module.exports = {
'require-await': 'off', 'require-await': 'off',
'no-return-assign': 'off', 'no-return-assign': 'off',
'operator-linebreak': ['error', 'before'], 'operator-linebreak': ['error', 'before'],
'max-statements-per-line': ['error', { 'max': 1 }],
// unicorns // unicorns
// Pass error message when throwing errors // Pass error message when throwing errors