From f417cbfbe710bed5a0bac206461f04d2beca9206 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Thu, 11 Jul 2024 19:54:57 +0800 Subject: [PATCH] =?UTF-8?q?eslint=20=E8=A7=84=E5=88=99=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 1 - src/views/feature_example/rules.vue | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index c024fb62..734fce26 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -12,7 +12,6 @@ export default antfu( rules: { 'eslint-comments/no-unlimited-disable': 'off', 'curly': ['error', 'all'], - 'antfu/consistent-list-newline': 'off', }, }, { diff --git a/src/views/feature_example/rules.vue b/src/views/feature_example/rules.vue index e4c80208..a043a6aa 100755 --- a/src/views/feature_example/rules.vue +++ b/src/views/feature_example/rules.vue @@ -442,12 +442,7 @@ const rules = ref([ { title: '域名(非网址, 不包含协议)', rule: /^([0-9a-z-]+\.)+([a-z]{2,})$/i, - examples: ['www.baidu.com', - 'baidu.com', - 'baidu.com.cn', - 'api.baidu.com', - 'nodejs.org', - 'nodejs.cn'], + examples: ['www.baidu.com', 'baidu.com', 'baidu.com.cn', 'api.baidu.com', 'nodejs.org', 'nodejs.cn'], counterExamples: ['http://baidu.com', 'https://baidu.com', 'www.百度.com'], },