@lntvow/eslint-config
v9.38.0
Published
Customizable eslint configuration
Readme
███████╗███████╗██╗ ██╗███╗ ██╗████████╗ ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗
██╔════╝██╔════╝██║ ██║████╗ ██║╚══██╔══╝ ██╔════╝██╔═══██╗████╗ ██║██╔════╝██║██╔════╝
█████╗ ███████╗██║ ██║██╔██╗ ██║ ██║ ██║ ██║ ██║██╔██╗ ██║█████╗ ██║██║ ███╗
██╔══╝ ╚════██║██║ ██║██║╚██╗██║ ██║ ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║██║ ██║
███████╗███████║███████╗██║██║ ╚████║ ██║ ╚██████╗╚██████╔╝██║ ╚████║██║ ██║╚██████╔╝
╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝
Customizable eslint configuration
Usage
install @lntvow/eslint-config
pnpm install -D @lntvow/eslint-config eslintcreate eslint.config.mjs in your project root
// eslint.config.mjs
import { lntvow } from '@lntvow/eslint-config'
export default lntvow()create .prettierrc in your project root, you can customize prettier rules as you want
// .prettierrc
{
"$schema": "https://json.schemastore.org/prettierrc",
"printWidth": 120,
"semi": false,
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "es5",
"htmlWhitespaceSensitivity": "ignore",
"quoteProps": "consistent"
}Plugins
Since flat config requires us to explicitly provide the plugin names (instead of the mandatory convention from npm package name), we renamed some plugins to make the overall scope more consistent and easier to write.
| New Prefix | Original Prefix | Source Plugin |
| ---------- | ---------------------- | ------------------------------------------------------------------------------------------ |
| import/* | import-x/* | eslint-plugin-import-x |
| ts/* | @typescript-eslint/* | @typescript-eslint/eslint-plugin |
| test/* | vitest/* | eslint-plugin-vitest |
| style/* | @stylistic/* | @stylistic/eslint-plugin |
