[英]How do you disable semicolons in ESLint for Javascript?
I want to not allow semicolons to be placed at the end of lines in my Javascript code using ESLint. 我想不允许使用ESLint将分号放在我的Javascript代码中的行尾。
"semi"
and "no-extra-semi"
don't work, and I can't find any documentation on how to do this. "semi"
和"no-extra-semi"
不起作用,我找不到任何关于如何做到这一点的文档。
You want to set semi
to ["error", "never"]
. 你想将
semi
设置为["error", "never"]
。 This will error when there is a semicolon. 有分号时会出错。 Documentation can be found here https://eslint.org/docs/rules/semi#never
文档可以在这里找到https://eslint.org/docs/rules/semi#never
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.