eslint-config-egg
Node.js Style Guide for EggJS
Install
npm i eslint eslint-config-egg --save-dev
Usage
Use with JavaScript project
{
"devDependencies": {
"eslint-config-egg": "14",
"eslint": "8"
}
}
{
"extends": [
"eslint-config-egg"
]
}
Use with TypeScript project
{
"devDependencies": {
"eslint-config-egg": "13",
"typescript": "5"
}
}
{
"extends": [
"eslint-config-egg/typescript"
]
}
{
"lint": "eslint . --ext .ts"
}
{
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
}
]
}
License
MIT
Contributors
Made with contributors-img.