# eslint-config **Repository Path**: Talent-HYJ/eslint-config ## Basic Information - **Project Name**: eslint-config - **Description**: eslint-config 在配置时只需继承即可 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-13 - **Last Updated**: 2022-11-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: Eslint, monorepo, Pnpm ## README # @heyuanjie/eslint-config [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript_code style][code-style-image]][code-style-url] [ci-image]: https://github.com/heyuanjie/eslint-config/actions/workflows/release.yml/badge.svg?branch=master [ci-url]: https://github.com/Talent-HYJ/eslint-config/actions/workflows/release.yml [npm-image]: https://img.shields.io/npm/v/@heyuanjie/eslint-config.svg [npm-url]: https://npmjs.org/package/@heyuanjie/eslint-config [downloads-image]: https://img.shields.io/npm/dm/@heyuanjie/eslint-config.svg [downloads-url]: https://npmjs.org/package/@heyuanjie/eslint-config [code-style-image]: https://img.shields.io/badge/code__style-%40heyuanjie%2Feslint--config-brightgreen [code-style-url]: https://github.com/Talent-HYJ/eslint-config/
English | 简体中文
## Features - "double quotes", must semi; - Auto fix for formatting (aimed to be used standalone without Prettier) - TypeScript, Vue out-of-box - Lint also for JSON、YAML、Markdown - Sorted imports, dangling commas for cleaner commit diff - Reasonable defaults, best practices, only one-line of config ## Usage Shareable configs are designed to work with the `extends` feature of `.eslintrc` files. You can learn more about [Shareable Configs](http://eslint.org/docs/developer-guide/shareable-configs) on the official ESLint website. #### run the following command: ### Install ```bash pnpm add -D eslint @heyuanjie/eslint-config ``` ### add this to your `.eslintrc` file: ```json { "extends": "@heyuanjie" } ``` > You don't need `.eslintignore` normally as it has been provided by the preset. ### Add script for package.json For example: ```json { "scripts": { "lint": "eslint .", "lint:fix": "eslint . --fix" } } ``` ### Config VS Code auto fix Create `.vscode/settings.json` ```json { "prettier.enable": false, "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.fixAll.eslint": true } } ``` ### Customization rules add you like rules to your `.eslintrc` file: ```json { "extends": [ "@heyuanjie" ], "rules": { "vue/component-tags-order": ["error", { "order": ["template", "script", "style"] }] } } ``` ## Badge Use this in one of your projects? Include one of these badges in your readme to let people know that your code is using the standard style. [![heyuanjie-code-style-image](https://img.shields.io/badge/code__style-%40heyuanjie%2Feslint--config-brightgreen)](https://github.com/Talent-HYJ/eslint-config/) [code-style-image]: https://img.shields.io/badge/code__style-%40heyuanjie%2Feslint--config-brightgreen [code-style-url]: https://github.com/Talent-HYJ/eslint-config/ ## Thanks This project is based on [@antfu/eslint-config](https://github.com/antfu/eslint-config) ## License [MIT](./LICENSE) License © 2019-PRESENT [Talent-HYJ](https://github.com/heyuanjie)