@lntvow/eslint-config
v10.1.5
Published
Customizable eslint configuration
Downloads
782
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 |
| ---------- | ---------------------- | ------------------------------------------------------------------------------------------ |
| ts/* | @typescript-eslint/* | @typescript-eslint/eslint-plugin |
| style/* | @stylistic/* | @stylistic/eslint-plugin |
| import/* | import-lite/* | eslint-plugin-import-lite |
