Skip to content

Commit

Permalink
chore: 修改包规则
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaGodMan committed Dec 23, 2024
1 parent ad7d2a2 commit 5a95086
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
9 changes: 5 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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] }
]
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}

0 comments on commit 5a95086

Please sign in to comment.