Running vue-cli into sub-directory doesn't work

My directory structure is:

/package.js
/yarn.lock
/node_modules
/frontend
  // vue app
/server
  // backend

In the package.json file

"scripts": {
  "frontend:build": "cd frontend && vue-cli-service build",
  "frontend:dev": "cd frontend && vue-cli-service serve",
  "frontend:lint": "cd frontend && vue-cli-service lint"
}

The build and dev on running from root of the directory but the lint command doesn’t run.