$ npm install eslint-config-egg
Node.js Style Guide for EggJS
npm i eslint eslint-config-egg --save-dev
package.json
{
"devDependencies": {
"eslint-config-egg": "14",
"eslint": "8"
}
}
.eslintrc
{
"extends": [
"eslint-config-egg"
]
}
package.json
{
"devDependencies": {
"eslint-config-egg": "13",
"typescript": "5"
}
}
.eslintrc
{
"extends": [
"eslint-config-egg/typescript"
]
}
scripts
{
"lint": "eslint . --ext .ts"
}
settings.json
in vscode{
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
}
]
}
Made with contributors-img.
© 2010 - cnpmjs.org x YWFE | Home | YWFE