xo
约 1 分钟阅读
- xojs/xoGitHubxojs/xoxojs/xo · MIT, JS · JavaScript/TypeScript linter (ESLint wrapper) with great defaults笔记:xo
- MIT, JS
- JavaScript/TypeScript linter (ESLint wrapper) with great defaults
npx -y xo@latest --fix{
"xo": {
"envs": ["es2022", "node"],
"rules": {
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unsafe-argument": 1,
"@typescript-eslint/object-curly-spacing": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/restrict-template-expressions": 1,
"@typescript-eslint/switch-exhaustiveness-check": "off",
"arrow-parens": "off",
"capitalized-comments": "off",
"import/extensions": "off",
"n/file-extension-in-import": "off",
"new-cap": "off",
"no-await-in-loop": "off",
"prettier/prettier": "off",
"unicorn/filename-case": "off",
"unicorn/prevent-abbreviations": "off"
}
}
}关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub1 条
- xojs/xogithub.com/xojs/xo