linter: unicorn(unicorn/no-array-method-this-argument) 假阳性检测
"array-callback-return": "error", "array-type": "warn", "arrow-body-style": ["warn", "as-needed"], "block-scoped-var": "error", "constructor-super": "warn", "curly": ["error", "multi-line"], "default-case-last": "error", "default-param-last": "error", "eqeqeq": ["error", "always", { "null": "ignore" }], "for-direction": "warn", "guard-for-in": "error", "import/default": "warn", "import/export": "error", "import/exports-last": "warn", "import/first": ["error", "absolute-first"], "import/named": "error", "import/namespace": "error", "import/no-absolute-path": "error", "import/no-amd": "error", "import/no-anonymous-default-export": "error", "import/no-cycle": "error", "import/no-duplicates": "error", "import/no-empty-named-blocks": "error", "import/no-mutable-exports": "error", "jsx-a11y/img-redundant-alt": "error", "node/no-process-env": "warn", "no-alert": "error", "no-array-constructor": "error", "no-async-promise-executor": "warn", "no-bitwise": "error", "no-caller": "warn", "no-class-assign": "warn", "no-compare-neg-zero": "warn", "no-cond-assign": "warn", "no-const-assign": "warn", "no-constant-binary-expression": "warn", "no-constant-condition": "warn", "no-constructor-return": "error", "no-control-regex": "warn", "no-debugger": "warn", "no-delete-var": "warn", "no-dupe-class-members": "warn", "no-dupe-else-if": "warn", "no-dupe-keys": "warn", "no-duplicate-case": "warn", "no-else-return": "error", "no-empty-character-class": "warn", "no-empty-pattern": "warn", "no-empty-static-block": "warn", "no-eval": "warn", "no-ex-assign": "warn", "no-extend-native": "error", "no-extra-boolean-cast": "warn", "no-fallthrough": "error", "no-func-assign": "warn", "no-global-assign": "warn", "no-import-assign": "warn", "no-invalid-regexp": "warn", "no-irregular-whitespace": "warn", "no-iterator": "error", "no-lonely-if": "error", "no-loss-of-precision": "warn", "no-new-native-nonconstructor": "warn", "no-nonoctal-decimal-escape": "warn", "no-obj-calls": "warn", "no-param-reassign": "error", "no-return-assign": "error", "no-self-assign": "warn", "no-setter-return": "warn", "no-shadow-restricted-names": "warn", "no-sparse-arrays": "warn", "no-template-curly-in-string": "warn", "no-throw-literal": "warn", "no-this-before-super": "warn", "no-unassigned-vars": "warn", "no-unneeded-ternary": "error", …
内容来源: oxc-project/oxc