From 7d5d0618e639976ec46609e1abc73869601eb287 Mon Sep 17 00:00:00 2001 From: wangxudong13804 Date: Mon, 29 Jan 2024 19:57:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8C=85=E4=BD=BF=E7=94=A8=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=20=E7=A6=81=E6=AD=A2=E8=A1=8C=E5=86=85disable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/configs/base.js | 1 + lib/configs/js.js | 1 + lib/configs/react-ts/index.js | 1 + lib/configs/ts/index.js | 1 + lib/configs/vue2-ts/index.js | 1 + lib/configs/vue3-ts/index.js | 1 + package.json | 2 +- 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/configs/base.js b/lib/configs/base.js index fc3f7f2..2b25cd6 100644 --- a/lib/configs/base.js +++ b/lib/configs/base.js @@ -19,4 +19,5 @@ module.exports = { SharedArrayBuffer: 'readonly', }, ignorePatterns: ['*.min.js', 'iconfont.js'], + noInlineConfig: true } diff --git a/lib/configs/js.js b/lib/configs/js.js index f077e16..bd5ce07 100644 --- a/lib/configs/js.js +++ b/lib/configs/js.js @@ -104,4 +104,5 @@ module.exports = { "yield-star-spacing": 0 }, ignorePatterns: BaseOptions.ignorePatterns, + noInlineConfig: BaseOptions.noInlineConfig, } diff --git a/lib/configs/react-ts/index.js b/lib/configs/react-ts/index.js index a6c6f7f..840a340 100644 --- a/lib/configs/react-ts/index.js +++ b/lib/configs/react-ts/index.js @@ -67,4 +67,5 @@ module.exports = { '@typescript-eslint/triple-slash-reference': 'off', // error -> off }, ignorePatterns: BaseOptions.ignorePatterns, + noInlineConfig: BaseOptions.noInlineConfig, }; diff --git a/lib/configs/ts/index.js b/lib/configs/ts/index.js index 34e0961..29da7e8 100644 --- a/lib/configs/ts/index.js +++ b/lib/configs/ts/index.js @@ -48,5 +48,6 @@ module.exports = { '@typescript-eslint/triple-slash-reference': 'off', // error -> off }, ignorePatterns: BaseOptions.ignorePatterns, + noInlineConfig: BaseOptions.noInlineConfig, }; diff --git a/lib/configs/vue2-ts/index.js b/lib/configs/vue2-ts/index.js index 59da488..bdec7ee 100644 --- a/lib/configs/vue2-ts/index.js +++ b/lib/configs/vue2-ts/index.js @@ -49,4 +49,5 @@ module.exports = { '@typescript-eslint/triple-slash-reference': 'off', // error -> off }, ignorePatterns: BaseOptions.ignorePatterns, + noInlineConfig: BaseOptions.noInlineConfig, }; diff --git a/lib/configs/vue3-ts/index.js b/lib/configs/vue3-ts/index.js index ac09b3f..2b76af3 100644 --- a/lib/configs/vue3-ts/index.js +++ b/lib/configs/vue3-ts/index.js @@ -53,4 +53,5 @@ module.exports = { '@typescript-eslint/triple-slash-reference': 'off', // error -> off }, ignorePatterns: BaseOptions.ignorePatterns, + noInlineConfig: BaseOptions.noInlineConfig, }; diff --git a/package.json b/package.json index 2d18a6b..a4e0d74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@afuteam/eslint-plugin-fe", - "version": "2.0.1", + "version": "2.0.2", "description": "AfuTeam ESLint Plugin", "main": "./lib/index.js", "exports": {