diff --git a/lib/configs/js.js b/lib/configs/js.js index bd5ce07..74d8726 100644 --- a/lib/configs/js.js +++ b/lib/configs/js.js @@ -1,6 +1,7 @@ const BaseOptions = require('./base.js'); module.exports = { + ...BaseOptions, rules: { 'no-unused-vars': 1, // 非TS项目,此项需设为1 'no-undef': 0, @@ -103,6 +104,4 @@ module.exports = { "wrap-regex": 0, "yield-star-spacing": 0 }, - ignorePatterns: BaseOptions.ignorePatterns, - noInlineConfig: BaseOptions.noInlineConfig, } diff --git a/package.json b/package.json index a4e0d74..be7a4b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@afuteam/eslint-plugin-fe", - "version": "2.0.2", + "version": "2.0.3", "description": "AfuTeam ESLint Plugin", "main": "./lib/index.js", "exports": {