Forked from @antfu/eslint-config
- Single quotes, no semi
- Auto fix for formatting (aimed to be used as standalone without Prettier)
- Designed to work with TypeScript, Vue out-of-box (React opt-in)
- Lint also for json, yaml, markdown
- Sorted imports, dangling commas for cleaner commit diff
- Reasonable defaults, best practices, only one-line of config
- Improved component library linting & formatting
- Stacks support
- Laravel support
pnpm add -D eslint @ow3/eslint-config
Simply create a .eslintrc
file in your project root with the following content:
{
"extends": "@ow3"
}
Please note, you won't need a
.eslintignore
file as it is pre-defined via this preset.
Simply add the following to your package.json
:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Create .vscode/settings.json
in your project root and add the following setting:
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
Learn more about the context - Why I don't use Prettier.
- ow3org/stacks - Stacks - The modern way to create & distribute component libraries
- ow3org/vue-starter - Starter template for Vue libraries
- ow3org/web-components-starter - Starter template for Web Component libraries
- ow3org/composable-starter - Starter template for Composable libraries
- ow3org/ts-starter - Starter template for TypeScript libraries
Please see our releases page for more information on what has changed recently.
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using this package:
Join the Open Web Discord Server
The MIT License (MIT). Please see LICENSE for more information.
Made with ❤️