Add lint tasks

This commit is contained in:
Timofey Boyko 2023-12-29 15:03:39 +03:00
parent 3e011c5f24
commit 8b02708101
3 changed files with 43 additions and 1 deletions

30
.vscode/tasks.json vendored
View File

@ -331,6 +331,36 @@
"focus": true,
"close": false
}
},
{
"label": "Frontend | Eslint",
"type": "shell",
"command": "cd ${workspaceFolder} ; yarn lint ; ",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new",
"focus": true,
"close": false
}
},
{
"label": "Frontend | Eslint:fix",
"type": "shell",
"command": "cd ${workspaceFolder} ; yarn lint:fix ; ",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new",
"focus": true,
"close": false
}
}
]
}

View File

@ -146,6 +146,16 @@
"label": "Start storybook prod",
"task": "Frontend | storybook prod",
"tooltip": "🛠️ Start the \"frontend start storybook\" task"
},
{
"label": "Lint",
"task": "Frontend | Eslint",
"tooltip": "🛠️ Start the \"frontend start storybook\" task"
},
{
"label": "Lint:fix",
"task": "Frontend | Eslint:fix",
"tooltip": "🛠️ Start the \"frontend start storybook\" task"
}
],
"tooltip": "🛠️ Client tasks"

View File

@ -25,7 +25,9 @@
"wipe": "shx rm -rf node_modules yarn.lock packages/**/node_modules",
"licenses-audit": "yarn licenses audit --output-csv=licenses.csv --config=licenses.config.js --summary",
"check-circular": "yarn madge --circular ./packages",
"check-circular:graph": "yarn madge --circular --image graph.svg ./packages"
"check-circular:graph": "yarn madge --circular --image graph.svg ./packages",
"lint": "yarn workspace @docspace/shared lint",
"lint:fix": "yarn workspace @docspace/shared lint:fix"
},
"old-scripts": {
"build:test": "yarn workspaces foreach -vptiR --from '{@docspace/client,@docspace/login,@docspace/editor}' run build:test",