mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-13 18:00:58 +08:00
feat: 使用@142vip/eslint-config模块,优化Eslint配置和校验规则
This commit is contained in:
@@ -1,28 +1,9 @@
|
||||
import antFu from '@antfu/eslint-config'
|
||||
import { defineVipEslintConfig } from '@142vip/eslint-config'
|
||||
|
||||
// 参考:https://github.com/antfu/eslint-config
|
||||
export default antFu({
|
||||
export default defineVipEslintConfig({
|
||||
ignores: [
|
||||
'**/CHANGELOG.md',
|
||||
],
|
||||
gitignore: true,
|
||||
typescript: true,
|
||||
vue: true,
|
||||
jsonc: true,
|
||||
yaml: true,
|
||||
formatters: {
|
||||
css: true,
|
||||
html: false,
|
||||
markdown: 'prettier',
|
||||
},
|
||||
rules: {
|
||||
'no-console': 'warn',
|
||||
'no-restricted-syntax': [
|
||||
'warn',
|
||||
{
|
||||
selector: 'CallExpression[callee.object.name=\'console\'][callee.property.name!=/^(log|warn|error|info|trace)$/]',
|
||||
message: 'Unexpected property on console object was called',
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -29,16 +29,14 @@
|
||||
"release": "npx fa release --vip"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@142vip/eslint-config": "0.0.1-alpha.1",
|
||||
"@142vip/fairy-cli": "^0.0.3-alpha.11",
|
||||
"@142vip/utils": "^0.0.1-alpha.5",
|
||||
"@antfu/eslint-config": "^2.27.3",
|
||||
"@vue/repl": "^4.3.1",
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-feed": "2.0.0-rc.3",
|
||||
"@vuepress/plugin-markdown-image": "2.0.0-rc.30",
|
||||
"dashjs": "^4.7.4",
|
||||
"eslint": "8.55.0",
|
||||
"eslint-plugin-format": "^0.1.2",
|
||||
"hls.js": "^1.5.13",
|
||||
"markmap-cli": "^0.15.8",
|
||||
"mermaid": "^10.9.1",
|
||||
|
||||
650
pnpm-lock.yaml
generated
650
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user