From 5a950865f58eb318fd5249c034d4e2e03e1b11c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=BA=E6=B0=91=E7=9A=84=E5=8B=A4=E5=8A=A1=E5=91=98?= Date: Tue, 24 Dec 2024 02:54:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=20=20=E4=BF=AE=E6=94=B9=E5=8C=85?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.mjs | 9 +++++---- package-lock.json | 12 ++++++++++++ package.json | 20 ++++++++++++++++++-- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index c82e57a3d..92c370c2a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -54,15 +54,16 @@ export default [ } }, { files: ['**/*.mjs'], languageOptions: { sourceType: 'module' } }, - { files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }, + { files: ['**/*.json'], ignores: ['**/package-lock.json', '.history/*'], language: 'json/json', ...json.configs.recommended }, { - files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown }, + files: ['**/*.md'], ignores: ['.history/*'], language: 'markdown/commonmark', plugins: { markdown }, rules: { ...markdown.configs.recommended[0].rules, 'markdown/heading-increment': 'off', // allow headings to skip levels 'markdown/fenced-code-language': 'off', // allow code blocks w/ no language specified - 'markdown/no-missing-label-refs': 'off' // allow missing label references + 'markdown/no-missing-label-refs': 'off', // allow missing label references + 'markdown/no-empty-links': 'off' // allow empty links } }, - { files: ['**/*.yaml, **/*.yml'], ...yml.configs['flat/standard'][1] } + { files: ['**/*.yaml, **/*.yml'], ignores: ['.history/*'], ...yml.configs['flat/standard'][1] } ] \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2cc3adc96..98f5c1886 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,18 @@ "requires": true, "packages": { "": { + "funding": [ + { + "type": "github", + "url": "http://github.com/sponsors/ChinaGodMan" + }, + { + "type": "ko-fi", + "url": "https://ko-fi.com/ChinaGodMan" + } + ], + "license": "MIT", + "homepage": "https://github.com/ChinaGodMan/UserScripts", "devDependencies": { "@eslint/json": "^0.9.0", "@eslint/markdown": "^6.2.1", diff --git a/package.json b/package.json index 3aa58a713..d64960885 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,21 @@ { + "author": { + "name": "ChinaGodMan", + "email": "china.qinwuyuan@gmail.com", + "url": "https://github.com/ChinaGodMan" + }, "homepage": "https://github.com/ChinaGodMan/UserScripts", + "license": "MIT", + "funding": [ + { + "type": "github", + "url": "http://github.com/sponsors/ChinaGodMan" + }, + { + "type": "ko-fi", + "url": "https://ko-fi.com/ChinaGodMan" + } + ], "devDependencies": { "@eslint/json": "^0.9.0", "@eslint/markdown": "^6.2.1", @@ -12,9 +28,9 @@ "ssri": "^12.0.0" }, "scripts": { - "lint": "eslint \"**/*.{js,jsx,mjs}\"", + "lint": "eslint . --cache", "lint:all": "eslint .", - "lint:fix": "eslint \"**/*.{js,jsx,mjs}\" --fix --cache", + "lint:fix": "eslint . --fix --cache", "lint:fix-all": "eslint . --fix" } }