npm run prettier
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
npm run lint
npm run lint:fix
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 13
},
"rules": {
"semi": ["error", "always"]
}
}
In settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript"
]
}
without coverage
npm run test
with coverage
npm run test-coverage