1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-13 18:00:58 +08:00

Merge pull request #109 from 142vip/feat/eslint-config

feat: 使用`@142vip/eslint-config`模块,优化`Eslint`配置和校验规则
This commit is contained in:
微信公众号:储凡
2024-09-29 07:30:28 +08:00
committed by GitHub
3 changed files with 339 additions and 338 deletions

View File

@@ -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',
},
],
},
})

View File

@@ -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

File diff suppressed because it is too large Load Diff