@lehoczky/eslint-config-vue
Eslint Config Vue
ESLint configuration for Vue projects with TypeScript. Supports prettier by default.
💿 Installation
Create a new project with vite:
pnpm create vite <app-name> --template vue-ts
cd <app-name>
Install eslint and the config:
pnpm add -D eslint @lehoczky/eslint-config-vue
💻 Usage
With Type Checking
eslint.config.mjs:
import { configLehoczkyVue } from "@lehoczky/eslint-config-vue"
export default configLehoczkyVue({
parserOptionsForTypeChecking: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
})
See more: typescript-eslint | Linting with Type Information
Without Type Checking
import { configLehoczkyVue } from "@lehoczky/eslint-config-vue"
export default configLehoczkyVue()
Combining with Astro
import { configLehoczkyVue } from "@lehoczky/eslint-config-vue"
import { defineConfig } from "eslint/config"
import eslintPluginAstro from "eslint-plugin-astro"
export default defineConfig([
...configLehoczkyVue({
parserOptionsForTypeChecking: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
}),
...eslintPluginAstro.configs["flat/recommended"],
])
📢 Commands
package.json:
{
"scripts": {
"eslint:check": "eslint --max-warnings=0",
"eslint:fix": "eslint --max-warnings=0 --fix"
}
}
Related Packages
@anoesj/eslint-config-vue-ts
Anoesj's ESLint config for Vue and Nuxt projects with TypeScript
1,603
0
Version History
| Version | Released | License |
|---|---|---|
| 3.1.1 | MIT | |
| 3.1.0 | MIT | |
| 3.0.0 | MIT | |
| 2.0.15 | MIT | |
| 2.0.14 | MIT | |
| 2.0.13 | MIT | |
| 2.0.12 | MIT | |
| 2.0.11 | MIT | |
| 2.0.10 | MIT | |
| 2.0.9 | MIT | |
| 2.0.8 | MIT | |
| 2.0.7 | MIT | |
| 2.0.6 | MIT | |
| 2.0.5 | MIT | |
| 2.0.4 | MIT | |
| 2.0.3 | MIT | |
| 2.0.2 | MIT | |
| 2.0.1 | MIT | |
| 2.0.0 | MIT | |
| 1.2.6 | MIT | |
| 1.2.5 | MIT | |
| 1.2.4 | MIT | |
| 1.2.3 | MIT | |
| 1.2.2 | MIT | |
| 1.2.1 | MIT | |
| 1.2.0 | MIT | |
| 1.1.0 | MIT | |
| 1.0.0 | MIT | |
| 0.0.22 | MIT | |
| 0.0.21 | MIT |
Showing the latest 30 of 48. See every release on npm