Tip: For an enhanced development experience, it's recommended to use this package with @shinlms404/prettier-config. Check out the prettier-config repository for more details.
This is a custom ESLint configuration preset designed by Charlie Chan. It provides a set of rules and configurations for ESLint to ensure consistent code quality.
npm install --save-dev @shinlms404/eslint-config
To use this ESLint configuration, add the following to your project's eslint.config.js
file:
import eslintConfigs from '@shinlms404/eslint-config'
export default eslintConfigs()
This ESLint configuration includes the following plugins and dependencies:
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint-config-prettier
- eslint-plugin-eslint-comments
- eslint-plugin-jsonc
- eslint-plugin-prettier
- eslint-plugin-sort-keys
- eslint-plugin-unicorn
- eslint-plugin-unused-imports
- eslint-plugin-vue
- eslint-processor-vue-blocks
- jsonc-eslint-parser
- vue-eslint-parser
npm run lint
: Run ESLint to lint your code.npm run lint:fix
: Run ESLint and automatically fix fixable issues.npm test
: Run tests using Vitest.npm run typecheck
: Run TypeScript type checking.npm run watch
: Watch for changes and run ESLint accordingly.
Feel free to open issues and pull requests.
This project is licensed under the MIT License.
Adjust the sections and content based on your specific needs and preferences.