"no-script-url": 2, //不允许使用javascript:void(0) "no-self-compare": 2, //不允许自己和自己比较 "no-sequences": 2, //不允许使用逗号表达式 "no-throw-literal": 2, //不允许抛出字面量错误 throw "error" "no-unused-expressions": 2, //不允许无用的表达式 "no-void": 2, //不允许...
'@typescript-eslint/no-unused-expressions':'error', '@typescript-eslint/no-var-requires':'off', '@typescript-eslint/prefer-literal-enum-member':[ 'error', Expand Down 6 changes: 3 additions & 3 deletions6packages/eslint-plugin/src/rules/strict-boolean-expressions.ts ...
Before You File a Bug Report Please Confirm You Have Done The Following... I have tried restarting my IDE and the issue persists. I have updated to the latest version of the packages. I have searched for related issues and found none tha...
@typescript-eslint/no-unused-expressions @typescript-eslint/no-unused-vars @typescript-eslint/no-use-before-define @typescript-eslint/no-useless-constructor @typescript-eslint/prefer-as-const @typescript-eslint/prefer-enum-initializers @typescript-eslint/prefer-for-of @typescript-es...
一、ESLint 的配置文件 关于ESLint 的配置,通常存在于三个文件中: .editorconfig:配置编辑器; .eslintignore:ESLint 的忽略文件配置; .eslintrc.js:ESLint 的检查规则; 二、常用配置 1、配置编辑器 root = true # 对所有文件有效 //[*js]只对js文件有效 ...
@typescript-eslint/no-confusing-void-expression 要求void类型的表达式出现在合适的位置。 void指要被忽略的函数返回,如果将void类型的表达式……欲了解更多信息欢迎访问华为HarmonyOS开发者官网
不知道如何准确的定义出类型,TS报错了,用any能解决,便用any了
{ // eslint-disable-next-line @typescript-eslint/no-unused-expressions callback && callback(String(node.key)) }} style={{ padding: '4px 6px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow:'ellipsis'}} > <FolderFilled style={{ color: '#47a7ff', fontSize: 20, margin...
: true, /* Ensure 'use strict' is always emitted. */// "noUnusedLocals": true, /* ...
eslint crashes when using the latest version of node 22 and the latest version of typescript-eslint. Oops! Something went wrong! :( ESLint: 9.15.0 TypeError: Error while loading rule '@typescript-eslint/no-unused-expressions': Cannot read properties of undefined (reading 'allowShortCircuit'...