eslint-config-alloy
Version:
AlloyTeam ESLint 规则
22 lines (21 loc) • 590 B
JavaScript
module.exports = {
rules: {
/**
* 禁止出现连续的多个空格,除非是注释前,或对齐对象的属性、变量定义、import 等
* @category Best Practices
* @fixable
*/
'no-multi-spaces': [
'error',
{
ignoreEOLComments: true,
exceptions: {
Property: true,
BinaryExpression: false,
VariableDeclarator: true,
ImportDeclaration: true
}
}
]
}
};