Skip to content

全部规则 ​

本页由配置自动生成,列出每一层启用的全部规则。具体规则的 ❌/✅ 示例见各规则层页面。

  • 配置方式:控制该规则的 lintspec() 选项;基线层规则只能通过 overrides 调整。
  • 修复 / 建议:✅ 修复 = 可通过 eslint --fix 自动修复;✅ 建议 = 在编辑器中提供修复建议。
  • 级别:错误 报错并阻断;警告 仅提示。

基线层(109) ​

规则名称规则配置方式级别修复建议
Enforce getter and setter pairs in objects and classesaccessor-pairsoverrides错误——
数组回调需返回值array-callback-returnoverrides错误—✅
Enforce camelcase naming conventioncamelcaseoverrides错误——
构造函数须调用 super()constructor-superoverrides错误——
Enforce consistent brace style for all control statementscurlyoverrides错误✅—
default 置于最后default-case-lastoverrides错误——
严格相等eqeqeqoverrides错误✅✅
for 计数方向正确for-directionoverrides错误——
getter 须返回值getter-returnoverrides错误——
文件最大行数max-linesmaxLines警告——
Require constructor names to begin with a capital letternew-capoverrides错误——
Disallow Array constructorsno-array-constructoroverrides错误✅✅
禁止 async Promise executorno-async-promise-executoroverrides错误——
Disallow the use of arguments.caller or arguments.calleeno-calleroverrides错误——
禁止 case 内声明no-case-declarationsoverrides错误—✅
禁止重写类no-class-assignoverrides错误——
禁止与 -0 比较no-compare-neg-zerooverrides错误——
禁止条件中赋值no-cond-assignoverrides错误——
禁止重写 constno-const-assignoverrides错误——
禁止无效的常量运算no-constant-binary-expressionoverrides错误——
禁止常量条件no-constant-conditionoverrides错误——
禁止构造函数返回值no-constructor-returnoverrides错误——
Disallow control characters in regular expressionsno-control-regexoverrides错误——
禁用 debuggerno-debuggeroverrides错误——
禁止 delete 变量no-delete-varoverrides错误——
禁止重复函数参数no-dupe-argsoverrides错误——
禁止重复类成员no-dupe-class-membersoverrides错误——
禁止重复的 else-if 条件no-dupe-else-ifoverrides错误——
禁止重复对象键no-dupe-keysoverrides错误——
禁止重复 caseno-duplicate-caseoverrides错误——
禁止空代码块no-emptyoverrides错误—✅
禁止空字符类no-empty-character-classoverrides错误——
禁止空解构no-empty-patternoverrides错误——
禁止空静态块no-empty-static-blockoverrides错误—✅
禁用 evalno-evaloverrides错误——
禁止重写异常参数no-ex-assignoverrides错误——
禁止扩展原生类型no-extend-nativeoverrides错误——
禁止多余的 bindno-extra-bindoverrides错误✅—
Disallow unnecessary boolean castsno-extra-boolean-castoverrides错误✅—
禁止 case 穿透no-fallthroughoverrides错误——
禁止重写函数声明no-func-assignoverrides错误——
禁止改写全局对象no-global-assignoverrides错误——
禁止隐式 evalno-implied-evaloverrides错误——
禁止给导入赋值no-import-assignoverrides错误——
Disallow invalid regular expression strings in RegExp constructorsno-invalid-regexpoverrides错误——
禁止异常空白字符no-irregular-whitespaceoverrides错误——
Disallow the use of the __iterator__ propertyno-iteratoroverrides错误——
Disallow labeled statementsno-labelsoverrides错误——
Disallow unnecessary nested blocksno-lone-blocksoverrides错误——
禁止精度丢失的数字no-loss-of-precisionoverrides错误——
禁止误导性字符类no-misleading-character-classoverrides错误—✅
Disallow multiline stringsno-multi-stroverrides错误——
Disallow new operators outside of assignments or comparisonsno-newoverrides错误——
禁止 Function 构造函数no-new-funcoverrides错误——
禁止 new 非构造函数no-new-native-nonconstructoroverrides错误——
Disallow new operators with the String, Number, and Boolean objectsno-new-wrappersoverrides错误——
禁止把全局对象当函数调用no-obj-callsoverrides错误——
Disallow calls to the Object constructor without an argumentno-object-constructoroverrides错误—✅
Disallow octal literalsno-octaloverrides错误——
Disallow octal escape sequences in string literalsno-octal-escapeoverrides错误——
禁止 Promise executor 返回值no-promise-executor-returnoverrides错误—✅
Disallow the use of the __proto__ propertyno-protooverrides错误——
禁止直接调用 Object.prototype 方法no-prototype-builtinsoverrides错误—✅
禁止重复声明no-redeclareoverrides错误——
禁止正则中多个空格no-regex-spacesoverrides错误✅—
Disallow assignment operators in return statementsno-return-assignoverrides错误——
禁止自我赋值no-self-assignoverrides错误——
禁止自我比较no-self-compareoverrides错误——
Disallow comma operatorsno-sequencesoverrides错误——
禁止 setter 返回值no-setter-returnoverrides错误——
Disallow identifiers from shadowing restricted namesno-shadow-restricted-namesoverrides错误——
禁止稀疏数组no-sparse-arraysoverrides错误——
禁止普通字符串中的模板占位符no-template-curly-in-stringoverrides错误——
禁止 super() 前用 thisno-this-before-superoverrides错误——
禁止抛出字面量no-throw-literaloverrides错误——
禁止未声明变量no-undefoverrides错误——
Disallow initializing variables to undefinedno-undef-initoverrides错误✅—
禁止易混淆的多行表达式no-unexpected-multilineoverrides错误——
禁止未修改的循环条件no-unmodified-loop-conditionoverrides错误——
禁止不可达代码no-unreachableoverrides错误——
禁止只执行一次的循环no-unreachable-loopoverrides错误——
禁止 finally 中的控制流no-unsafe-finallyoverrides错误——
禁止关系运算符左侧取反no-unsafe-negationoverrides错误—✅
禁止不安全的可选链no-unsafe-optional-chainingoverrides错误——
Disallow unused expressionsno-unused-expressionsoverrides错误——
禁止未使用的私有成员no-unused-private-class-membersoverrides错误—✅
禁止未使用变量no-unused-varsoverrides错误—✅
禁止先使用后定义no-use-before-defineoverrides错误——
禁止无用的正则反向引用no-useless-backreferenceoverrides错误——
禁止多余的 call/applyno-useless-calloverrides错误——
禁止多余的 catchno-useless-catchoverrides错误——
Disallow unnecessary computed property keys in objects and classesno-useless-computed-keyoverrides错误✅—
Disallow unnecessary constructorsno-useless-constructoroverrides错误—✅
禁止多余的转义no-useless-escapeoverrides错误—✅
禁止无意义的重命名no-useless-renameoverrides错误✅—
Disallow redundant return statementsno-useless-returnoverrides错误✅—
禁用 varno-varoverrides警告✅—
Disallow void operatorsno-voidoverrides错误——
Disallow with statementsno-withoverrides错误——
对象简写object-shorthandoverrides警告✅—
Enforce variables to be declared either together or separately in functionsone-varoverrides错误✅—
优先 constprefer-constoverrides错误✅—
reject 须用 Errorprefer-promise-reject-errorsoverrides错误——
Disallow use of the RegExp constructor in favor of regular expression literalsprefer-regex-literalsoverrides错误—✅
Require symbol descriptionssymbol-descriptionoverrides错误——
Require or disallow Unicode byte order mark (BOM)unicode-bomoverrides错误✅—
用 isNaN 判断 NaNuse-isnanoverrides错误—✅
typeof 比较有效字符串valid-typeofoverrides错误—✅
禁止 Yoda 条件yodaoverrides错误✅—

unicorn(22) ​

规则名称规则配置方式级别修复建议
禁止存取器中递归访问 thisunicorn/no-accessor-recursionunicorn错误——
Disallow boolean-returning sort comparators.unicorn/no-boolean-sort-comparatorunicorn错误—✅
Disallow adjacent duplicate operands in logical expressions.unicorn/no-duplicate-logical-operandsunicorn错误✅✅
Disallow impossible comparisons against .length or .size.unicorn/no-impossible-length-comparisonunicorn错误——
禁止错误的 querySelectorunicorn/no-incorrect-query-selectorunicorn错误✅—
禁止对内置对象用 instanceofunicorn/no-instanceof-builtinsunicorn错误✅✅
Disallow calling functions and constructors with an invalid number of arguments.unicorn/no-invalid-argument-countunicorn错误——
Disallow comparing a single character from a string to a multi-character string.unicorn/no-invalid-character-comparisonunicorn错误——
禁止无效的 fetch 选项unicorn/no-invalid-fetch-optionsunicorn错误——
禁止无效的 removeEventListenerunicorn/no-invalid-remove-event-listenerunicorn错误——
Disallow invalid implementations of well-known symbol methods.unicorn/no-invalid-well-known-symbol-methodsunicorn错误✅✅
禁止事件后访问 currentTargetunicorn/no-late-current-target-accessunicorn错误——
Disallow event-control method calls after the synchronous event dispatch has finished.unicorn/no-late-event-controlunicorn错误——
Disallow checking a Map key before accessing a different key.unicorn/no-mismatched-map-keyunicorn错误——
Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.unicorn/no-misrefactored-assignmentunicorn错误—✅
禁止 new Buffer()unicorn/no-new-bufferunicorn错误✅✅
Disallow optional chaining on undeclared variables.unicorn/no-optional-chaining-on-undeclared-variableunicorn错误——
Prevent unsafe use of ArrayBuffer view .buffer.unicorn/no-unsafe-buffer-conversionunicorn错误—✅
Disallow reading .value from Promise.allSettled() results without a fulfilled status guard.unicorn/no-unsafe-promise-all-settled-valuesunicorn错误——
Disallow unsafe values as property keys.unicorn/no-unsafe-property-keyunicorn错误——
Disallow non-literal replacement values in String#replace() and String#replaceAll().unicorn/no-unsafe-string-replacementunicorn错误——
Require boolean-returning Proxy traps to return booleans.unicorn/require-proxy-trap-boolean-returnunicorn错误✅—

TypeScript(9) ​

规则名称规则配置方式级别修复建议
禁止 Array 构造函数@typescript-eslint/no-array-constructortypescript错误✅—
Disallow duplicate class members@typescript-eslint/no-dupe-class-memberstypescript错误——
Disallow literal numbers that lose precision@typescript-eslint/no-loss-of-precisiontypescript错误——
Disallow variable redeclaration@typescript-eslint/no-redeclaretypescript错误——
禁止未使用的表达式@typescript-eslint/no-unused-expressionstypescript错误——
Disallow unused private class members@typescript-eslint/no-unused-private-class-memberstypescript错误——
禁止未使用变量@typescript-eslint/no-unused-varstypescript错误✅✅
Disallow the use of variables before they are defined@typescript-eslint/no-use-before-definetypescript错误——
Disallow unnecessary constructors@typescript-eslint/no-useless-constructortypescript错误—✅

import-x(8) ​

规则名称规则配置方式级别修复建议
校验默认导入存在import-x/defaultimportX错误——
禁止无效导出import-x/exportimportX错误——
导入后缀一致import-x/extensionsimportX.extensions错误✅✅
校验命名空间导入import-x/namespaceimportX错误——
禁止重复导入import-x/no-duplicatesimportX警告✅—
禁止具名当默认导入import-x/no-named-as-defaultimportX警告——
禁止具名当默认成员import-x/no-named-as-default-memberimportX警告——
禁止无法解析的导入import-x/no-unresolvedimportX错误——

perfectionist(21) ​

规则名称规则配置方式级别修复建议
includes 数组排序perfectionist/sort-array-includesperfectionist错误✅—
类成员排序perfectionist/sort-classesperfectionist错误✅—
装饰器排序perfectionist/sort-decoratorsperfectionist错误✅—
枚举排序perfectionist/sort-enumsperfectionist错误✅—
导出属性排序perfectionist/sort-export-attributesperfectionist错误✅—
导出排序perfectionist/sort-exportsperfectionist错误✅—
继承子句排序perfectionist/sort-heritage-clausesperfectionist错误✅—
导入属性排序perfectionist/sort-import-attributesperfectionist错误✅—
导入排序perfectionist/sort-importsperfectionist.sort错误✅—
接口属性排序perfectionist/sort-interfacesperfectionist错误✅—
交叉类型排序perfectionist/sort-intersection-typesperfectionist错误✅—
JSX 属性排序perfectionist/sort-jsx-propsperfectionist错误✅—
Map 排序perfectionist/sort-mapsperfectionist错误✅—
模块排序perfectionist/sort-modulesperfectionist错误✅—
具名导出排序perfectionist/sort-named-exportsperfectionist错误✅—
具名导入排序perfectionist/sort-named-importsperfectionist错误✅—
对象类型排序perfectionist/sort-object-typesperfectionist错误✅—
Set 排序perfectionist/sort-setsperfectionist错误✅—
switch 分支排序perfectionist/sort-switch-caseperfectionist错误✅—
联合类型排序perfectionist/sort-union-typesperfectionist错误✅—
变量声明排序perfectionist/sort-variable-declarationsperfectionist错误✅—

React(12) ​

规则名称规则配置方式级别修复建议
禁止 innerHTML 与 children 并存@eslint-react/dom-no-dangerously-set-innerhtml-with-childrenreact错误——
禁止使用 render 返回值@eslint-react/dom-no-render-return-valuereact错误——
禁止 javascript: URL@eslint-react/dom-no-script-urlreact警告——
禁止不安全的 iframe sandbox@eslint-react/dom-no-unsafe-iframe-sandboxreact警告——
禁止空元素带 children@eslint-react/dom-no-void-elements-with-childrenreact错误——
禁止 children 属性与子节点并存@eslint-react/jsx-no-children-prop-with-childrenreact错误✅✅
禁止展开后再写 key@eslint-react/jsx-no-key-after-spreadreact错误——
禁止 JSX 命名空间语法@eslint-react/jsx-no-namespacereact错误——
禁止直接修改 state@eslint-react/no-direct-mutation-statereact错误——
列表须有 key@eslint-react/no-missing-keyreact错误——
Hook 依赖完整react-hooks/exhaustive-depsreact警告✅✅
enforces the Rules of Hooksreact-hooks/rules-of-hooksreact错误——

Vue(85) ​

规则名称规则配置方式级别修复建议
支持模板注释指令vue/comment-directivevue错误——
标记 JSX 中使用的变量vue/jsx-uses-varsvue错误——
组件名多词vue/multi-word-component-namesvue错误——
禁止 watch 用箭头函数vue/no-arrow-functions-in-watchvue错误——
禁止 computed 中异步vue/no-async-in-computed-propertiesvue错误——
禁止被指令覆盖的子内容vue/no-child-contentvue错误—✅
禁止 data 中访问 computedvue/no-computed-properties-in-datavue错误——
禁止废弃的 data 对象声明vue/no-deprecated-data-object-declarationvue错误✅—
禁止废弃的 $delete/$setvue/no-deprecated-delete-setvue错误——
禁止废弃的 destroyed 钩子vue/no-deprecated-destroyed-lifecyclevue错误✅—
禁止废弃的 $listenersvue/no-deprecated-dollar-listeners-apivue错误——
禁止废弃的 $scopedSlotsvue/no-deprecated-dollar-scopedslots-apivue错误✅—
禁止废弃的事件 APIvue/no-deprecated-events-apivue错误——
禁止废弃的过滤器语法vue/no-deprecated-filtervue错误——
禁止废弃的 functional 模板vue/no-deprecated-functional-templatevue错误——
禁止 HTML 元素上废弃的 isvue/no-deprecated-html-element-isvue错误——
禁止废弃的 inline-templatevue/no-deprecated-inline-templatevue错误——
禁止废弃的 model 定义vue/no-deprecated-model-definitionvue错误—✅
禁止 props 默认函数中的 thisvue/no-deprecated-props-default-thisvue错误——
禁止 RouterLink 废弃的 tagvue/no-deprecated-router-link-tag-propvue错误——
禁止废弃的 scope 属性vue/no-deprecated-scope-attributevue错误✅—
禁止废弃的 slot 属性vue/no-deprecated-slot-attributevue错误✅—
禁止废弃的 slot-scope 属性vue/no-deprecated-slot-scope-attributevue错误✅—
禁止废弃的 .syncvue/no-deprecated-v-bind-syncvue错误✅—
禁止废弃的 v-isvue/no-deprecated-v-isvue错误——
禁止废弃的 .nativevue/no-deprecated-v-on-native-modifiervue错误——
禁止废弃的按键码修饰符vue/no-deprecated-v-on-number-modifiersvue错误✅—
禁止废弃的 Vue.config.keyCodesvue/no-deprecated-vue-config-keycodesvue错误——
禁止字段名重复vue/no-dupe-keysvue错误——
禁止 v-if 链重复条件vue/no-dupe-v-else-ifvue错误——
禁止重复属性vue/no-duplicate-attributesvue错误——
禁止 script setup 中 exportvue/no-export-in-script-setupvue错误——
禁止 await 后注册 exposevue/no-expose-after-awaitvue错误——
禁止 await 后注册生命周期vue/no-lifecycle-after-awaitvue错误——
禁止修改 propsvue/no-mutating-propsvue错误——
禁止模板解析错误vue/no-parsing-errorvue错误——
禁止 ref 直接作操作数vue/no-ref-as-operandvue错误✅—
禁止保留组件名vue/no-reserved-component-namesvue错误——
禁止覆盖保留键vue/no-reserved-keysvue错误——
禁止保留的 prop 名vue/no-reserved-propsvue错误——
data 须为函数vue/no-shared-component-datavue错误✅—
禁止 computed 中副作用vue/no-side-effects-in-computed-propertiesvue错误——
禁止 template 上的 keyvue/no-template-keyvue错误——
禁止 textarea 中插值vue/no-textarea-mustachevue错误——
禁止未使用组件vue/no-unused-componentsvue错误——
禁止未使用的模板变量vue/no-unused-varsvue错误—✅
禁止把 computed 当方法vue/no-use-computed-property-like-methodvue错误——
禁止 v-if 与 v-for 同元素vue/no-use-v-if-with-v-forvue错误——
禁止 template 上无用属性vue/no-useless-template-attributesvue错误——
禁止 template v-for 的 key 放子元素vue/no-v-for-template-key-on-childvue错误——
禁止组件上用 v-text/v-htmlvue/no-v-text-v-html-on-componentvue错误——
禁止 await 后注册 watchvue/no-watch-after-awaitvue错误——
优先从 vue 导入vue/prefer-import-from-vuevue错误✅—
<component> 须有 :isvue/require-component-isvue错误——
prop 类型须为构造函数vue/require-prop-type-constructorvue错误✅—
render 须返回值vue/require-render-returnvue错误——
$slots 须作为函数调用vue/require-slots-as-functionsvue错误——
transition 内须控制显示vue/require-toggle-inside-transitionvue错误——
v-for 须有 keyvue/require-v-for-keyvue错误——
prop 默认值须有效vue/require-valid-default-propvue错误——
computed 须有 returnvue/return-in-computed-propertyvue错误——
emits 校验器须有 returnvue/return-in-emits-validatorvue错误——
v-on 须用 exact 修饰符vue/use-v-on-exactvue错误——
属性名须有效vue/valid-attribute-namevue错误——
defineEmits 须有效vue/valid-define-emitsvue错误——
defineOptions 须有效vue/valid-define-optionsvue错误——
defineProps 须有效vue/valid-define-propsvue错误——
nextTick 调用须有效vue/valid-next-tickvue错误✅✅
模板根须有效vue/valid-template-rootvue错误——
v-bind 须有效vue/valid-v-bindvue错误——
v-cloak 须有效vue/valid-v-cloakvue错误——
v-else 须有效vue/valid-v-elsevue错误——
v-else-if 须有效vue/valid-v-else-ifvue错误——
v-for 须有效vue/valid-v-forvue错误——
v-html 须有效vue/valid-v-htmlvue错误——
v-if 须有效vue/valid-v-ifvue错误——
v-is 须有效vue/valid-v-isvue错误——
v-memo 须有效vue/valid-v-memovue错误——
v-model 须有效vue/valid-v-modelvue错误——
v-on 须有效vue/valid-v-onvue错误——
v-once 须有效vue/valid-v-oncevue错误——
v-pre 须有效vue/valid-v-prevue错误——
v-show 须有效vue/valid-v-showvue错误——
v-slot 须有效vue/valid-v-slotvue错误——
v-text 须有效vue/valid-v-textvue错误——

Stylistic(59) ​

规则名称规则配置方式级别修复建议
Enforce consistent spacing inside array brackets@stylistic/array-bracket-spacingoverrides错误✅—
Enforce consistent spacing before and after the arrow in arrow functions@stylistic/arrow-spacingoverrides错误✅—
Disallow or enforce spaces inside of blocks after opening block and before closing block@stylistic/block-spacingoverrides错误✅—
Enforce consistent brace style for blocks@stylistic/brace-styleoverrides错误✅—
Require or disallow trailing commas@stylistic/comma-dangleoverrides错误✅—
Enforce consistent spacing before and after commas@stylistic/comma-spacingoverrides错误✅—
Enforce consistent comma style@stylistic/comma-styleoverrides错误✅—
Enforce consistent spacing inside computed property brackets@stylistic/computed-property-spacingoverrides错误✅—
Enforce consistent newlines before and after dots@stylistic/dot-locationoverrides错误✅—
Require or disallow newline at the end of files@stylistic/eol-lastoverrides错误✅—
Require or disallow spacing between function identifiers and their invocations@stylistic/function-call-spacingoverrides错误✅—
Enforce consistent spacing around * operators in generator functions@stylistic/generator-star-spacingoverrides错误✅—
Enforce consistent indentation@stylistic/indentoverrides错误✅—
Enforce closing bracket location in JSX@stylistic/jsx-closing-bracket-locationoverrides错误✅—
Enforce closing tag location for multiline JSX@stylistic/jsx-closing-tag-locationoverrides错误✅—
Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes@stylistic/jsx-curly-brace-presenceoverrides错误✅—
Enforce consistent linebreaks in curly braces in JSX attributes and expressions@stylistic/jsx-curly-newlineoverrides错误✅—
Enforce or disallow spaces inside of curly braces in JSX attributes and expressions@stylistic/jsx-curly-spacingoverrides错误✅—
Enforce or disallow spaces around equal signs in JSX attributes@stylistic/jsx-equals-spacingoverrides错误✅—
Enforce proper position of the first property in JSX@stylistic/jsx-first-prop-new-lineoverrides错误✅—
Enforce props indentation in JSX@stylistic/jsx-indent-propsoverrides错误✅—
Enforce PascalCase for user-defined JSX components@stylistic/jsx-pascal-caseoverrides错误——
Enforce the consistent use of either double or single quotes in JSX attributes@stylistic/jsx-quotesoverrides错误✅—
Enforce whitespace in and around the JSX opening and closing brackets@stylistic/jsx-tag-spacingoverrides错误✅—
Disallow missing parentheses around multiline JSX@stylistic/jsx-wrap-multilinesoverrides错误✅—
Enforce consistent spacing between property names and type annotations in types and interfaces@stylistic/key-spacingoverrides错误✅—
Enforce consistent spacing before and after keywords@stylistic/keyword-spacingoverrides错误✅—
Require or disallow an empty line between class members@stylistic/lines-between-class-membersoverrides错误✅—
Enforce newlines between operands of ternary expressions@stylistic/multiline-ternaryoverrides错误✅—
Enforce or disallow parentheses when invoking a constructor with no arguments@stylistic/new-parensoverrides错误✅—
Disallow unnecessary parentheses@stylistic/no-extra-parensoverrides错误✅—
Disallow leading or trailing decimal points in numeric literals@stylistic/no-floating-decimaloverrides错误✅—
Disallow mixed binary operators@stylistic/no-mixed-operatorsoverrides错误——
Disallow mixed spaces and tabs for indentation@stylistic/no-mixed-spaces-and-tabsoverrides错误——
Disallow multiple spaces@stylistic/no-multi-spacesoverrides错误✅—
Disallow multiple empty lines@stylistic/no-multiple-empty-linesoverrides错误✅—
Disallow all tabs@stylistic/no-tabsoverrides错误——
Disallow trailing whitespace at the end of lines@stylistic/no-trailing-spacesoverrides错误✅—
Disallow whitespace before properties@stylistic/no-whitespace-before-propertyoverrides错误✅—
Enforce consistent line breaks after opening and before closing braces@stylistic/object-curly-newlineoverrides错误✅—
Enforce consistent spacing inside braces@stylistic/object-curly-spacingoverrides错误✅—
Enforce placing object properties on separate lines@stylistic/object-property-newlineoverrides错误✅—
Enforce consistent linebreak style for operators@stylistic/operator-linebreakoverrides错误✅—
Require or disallow padding within blocks@stylistic/padded-blocksoverrides错误✅—
Require quotes around object literal, type literal, interfaces and enums property names@stylistic/quote-propsoverrides错误✅—
Enforce the consistent use of either backticks, double, or single quotes@stylistic/quotesoverrides错误✅—
Enforce spacing between rest and spread operators and their expressions@stylistic/rest-spread-spacingoverrides错误✅—
Require or disallow semicolons instead of ASI@stylistic/semioverrides错误✅—
Enforce consistent spacing before and after semicolons@stylistic/semi-spacingoverrides错误✅—
Enforce consistent spacing before blocks@stylistic/space-before-blocksoverrides错误✅—
Enforce consistent spacing before function parenthesis@stylistic/space-before-function-parenoverrides错误✅—
Enforce consistent spacing inside parentheses@stylistic/space-in-parensoverrides错误✅—
Require spacing around infix operators@stylistic/space-infix-opsoverrides错误✅—
Enforce consistent spacing before or after unary operators@stylistic/space-unary-opsoverrides错误✅—
Enforce consistent spacing after the // or /* in a comment@stylistic/spaced-commentoverrides错误✅—
Require or disallow spacing around embedded expressions of template strings@stylistic/template-curly-spacingoverrides错误✅—
Require or disallow spacing between template tags and their literals@stylistic/template-tag-spacingoverrides错误✅—
Require parentheses around immediate function invocations@stylistic/wrap-iifeoverrides错误✅—
Require or disallow spacing around the * in yield* expressions@stylistic/yield-star-spacingoverrides错误✅—