String new Boolean new Number "no-obj-calls": 2,//不能调用内置的全局对象,比如Math() JSON() "no-octal": 2,//禁止使用八进制数字 "no-octal-escape
'no-octal-escape': 2, //禁止使用八进制转义序列 'no-plusplus': 0, //禁止使用++,-- 'no-self-compare': 2, /
'no-octal-escape': 2, //禁止使用八进制转义序列 'no-plusplus': 0, //禁止使用++,-- 'no-self-compare':
String new Boolean new Number “no-obj-calls”: 2,//不能调用内置的全局对象,比如Math() JSON() “no-octal”: 2,//禁止使用八进制数字 “no-octal-escape
eslint: no-octal-escape const copyright = 'Copyright \251' // ✗ avoid __dirname 和 __filename 不用于字符串拼接
no-new-func 不允许使用new Function 2 no-new-wrappers 不允许使用new String,Number和Boolean对象 2 no-octal 不允许使用八进制字面值 2 no-octal-escape
eslint: no-octal-escape const copyright = 'Copyright \251' // ✗ avoid 73.使用 __dirname 和 __filename 时尽量避免使用字符串拼接
String new Boolean new Number "no-obj-calls": 2,//不能调用内置的全局对象,比如Math() JSON() "no-octal": 2,//禁止使用八进制数字 "no-octal-escape...error', /** * 禁止使用八进制的转义符 * @category Best Practices */ 'no-octal-escape
领取专属 10元无门槛券
手把手带您无忧上云