eslint-config-relaxed-vue
v2.0.34
Published
relaxed's vue3 eslint config presets with prettier
Downloads
5
Readme
eslint-config-relaxed-vue
relaxed's vue eslint config presets extends ts config
Usage
Install
pnpm add -D eslint eslint-config-relaxed-vue
Config eslint (.eslintrc | .eslintrc.js | .eslintrc.json)
{
"extends": "relaxed-vue"
}
You don't need .eslintignore normally as it has been provided by the preset.
add import alias
{
"settings": {
"import/resolver": {
"alias": {
"map": [
["~", "."],
["@", "./src"]
],
"extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
}
}
}
}
Add scripts for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}