@vexcited/eslint-config
v0.2.0
Published
Vexcited's ESLint config
Readme
@vexcited/eslint-config
- Auto fix for formatting (aimed to be used standalone without Prettier)
- Reasonable defaults, best practices, only one line of config
- Designed to work with TypeScript, JSX, JSON(C), etc. out-of-box
- Very opinionated, you can't change the rules at all.
- ESLint Flat config preferred
- Optional UnoCSS support
Usage
# You have to install `eslint` first,
# then `@vexcited/eslint-config` is the config from this repository !
bun add -D eslint @vexcited/eslint-config// eslint.config.ts
import vexcited from "@vexcited/eslint-config"
export default vexcited();Visual Studio Code
Make sure you've installed the ESLint extension.
Once done, you can create a .vscode/settings.json file in your project root with the following settings.
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"astro",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}Credits
This repository is hugely based on @antfu/eslint-config, but with my own opinionated rules and some extra features.
