pnpm add -D eslint eslint-config-relaxed-vue2
{
"extends": "relaxed-vue2"
}
You don't need .eslintignore normally as it has been provided by the preset.
{
"settings": {
"import/resolver": {
"alias": {
"map": [
["~", "."],
["@", "./src"]
],
"extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
}
}
}
}
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}