Add lint tasks
This commit is contained in:
parent
3e011c5f24
commit
8b02708101
30
.vscode/tasks.json
vendored
30
.vscode/tasks.json
vendored
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user