简体   繁体   English

Eslint 对象属性换行符不起作用

[英]Eslint object-property-newline does not work

I have "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }], and "max-len": "off", in my .eslintrc but objects like我有"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],"max-len": "off",在我的.eslintrc但像对象

const something = {a: 5, ffsdfasdasdsddddd: 'asdasdasdddddddddddssssssddddddddd'};

still gets split into multiple lines if they are longer than 80 characters, how do I stop this?如果长度超过 80 个字符,仍然会被分成多行,我该如何阻止?

Check the value of: "printWidth": 140, and adjust here the max.检查值: "printWidth": 140,并在此处调整最大值。 number of characters per line每行字符数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM