A rather strict ESLint TypeScript configuration.
- Single quotes, semicolons.
- Both TypeScript and ECMAScript environments are supported.
- Strict by default and type-oriented rules.
pnpm add -D eslint eslint-plugin-import eslint-plugin-promise eslint-plugin-vue @typescript-eslint/eslint-plugin @typescript-eslint/parser @gcoguiec/eslint-config-vue
Register the configuration with eslint
Edit your .eslintrc
configuration file (you may have to create the file at your project root if it's missing) with the following :
{
"extends": "@gcoguiec/eslint-config-vue"
}
{
"scripts": {
"lint": "eslint . --ignore-path .gitignore",
"lint:fix": "pnpm lint --fix"
}
}
Note: you can replace pnpm
with your favorite package manager instead.
lint *args:
pnpm eslint . --ignore-path .gitignore {{args}}
lint-fix:
@just lint --fix
Other ESLint configurations you may want to look at:
This package is licensed under BSD 2-Clause.