禁止成员访问“any”类型的值,仅适用于js/ts@typescript-eslint/no-unsafe-return函数禁止返回类型为“any”的值,仅适用于js/ts@typescript-eslint/no-use-before-define
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", }, ], "no-use-before-define...": "off", "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/ban-ts-comment
'no-undef': 'error', //禁用未声明的变量 'no-unexpected-multiline': 'warn', //禁止使用令人困惑的多行表达式 'no-use-before-define
pagination 依赖的条件放这里 refreshDepsAction: () => { // eslint-disable-next-line @typescript-eslint/no-use-before-define
no-this-before-super": 0, "no-undef": 2, "no-return-assign": 0, "no-script-url": 2, "no-use-before-define
no-unused-expressions": 2,//禁止无用的表达式 "no-unused-vars": [2, {"vars": "all", "args": "after-used"}],//不能有声明后未被使用的变量或参数 "no-use-before-define
'@typescript-eslint/no-empty-function': 'off', 'vue/custom-event-name-casing': 'off', 'no-use-before-define...': 'off', // 'no-use-before-define': [ // 'error', // { // functions: false,...// classes: true, // }, // ], '@typescript-eslint/no-use-before-define': 'off',...// '@typescript-eslint/no-use-before-define': [ // 'error', // { // functions
onSuccess: d => { setTimeout(() => { // eslint-disable-next-line @typescript-eslint/no-use-before-define
"script" }, "rules": { "no-console": 0, "no-unused-vars": "error", "no-use-before-define..."no-use-before-define":2 不允许在变量定义之前使用它们。 "linebreak-style":[2, "unix"] 强制使用一致的换行风格。
之间不能有空格 'no-this-before-super': 0, //在调用super()之前不能使用this或super 'no-undef': 2, //不能有未定义的变量 'no-use-before-define
'default-param-last': 0, // 对参数进行赋值 'no-param-reassign': 0, // 使用未声明的函数 'no-use-before-define
缺少必须的分号 "no-extra-semi": [1], //不必要的分号 "no-undef": [2], //变量不通过 var 进行声明或引用未定义变量 "no-use-before-define
之间不能有空格 "no-this-before-super": 0, //在调用super()之前不能使用this或super "no-undef": 2, //不能有未定义的变量 "no-use-before-define
no-unused-expressions”: 2,//禁止无用的表达式 “no-unused-vars”: [2, {“vars”: “all”, “args”: “after-used”}],//不能有声明后未被使用的变量或参数 “no-use-before-define
'@typescript-eslint/no-empty-function': 'off', 'vue/custom-event-name-casing': 'off', 'no-use-before-define...': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/ban-ts-comment
no-undef': 'error', //禁用未声明的变量 'no-unexpected-multiline': 'warn', //禁止使用令人困惑的多行表达式 'no-use-before-define
领取专属 10元无门槛券
手把手带您无忧上云