standardjs Vue cli standard --plugin vue **/*.vue
/ .vue .eslintrc.js
eslint standard
vue react|js|ts standard lint
vue example example
$ npm i eslint-config-standard-vue-ts --save-dev
module.exports = {
extends: [
'standard-vue-ts'
],
// ts tsconfig.json
parserOptions: {
project: './tsconfig.json'
}
}
"lint": "eslint ./ --ext .js,.vue,.ts",
"lint:fix": "eslint ./ --ext .js,.vue,.ts --fix"
VSCode
eslint plugin eslint.formatOnSave
eslint
{
"editor.codeActionsOnSave": {
//
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "vue",
"autoFix": true
}
],
"files.associations": {
"*.vue": "vue"
}
}
VSCode
standardjs
bug !
follow PHP
standard standard
ESLint eslint-config-standard
standard (^____^)/
standard/standard ECMA/standard
standard () web :-)
standard of quality style standards