Skip to content

Commit

Permalink
chore: update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Feb 19, 2024
1 parent 4792a84 commit e4e99da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
25 changes: 7 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,7 @@ tsconfig.tsbuildinfo
> Prettier: A code-format tool and unified code style By `Editor Plugins`
```bash
pnpm install eslint-config-prettier eslint-config-airbnb-base eslint-plugin-prettier eslint prettier -D

# eslint-config-prettier: ESLint with Prettier
# eslint-config-airbnb-base: ESLint's support for airbnb
# eslint-import-resolver-alias: ESLint's support for import alias
# eslint-plugin-import: Organize your import statement
# eslint-plugin-prettier: ESLint's support for Prettier
# prettier: Prettier's core repository

# Optional:
# eslint-plugin-vue: ESLint's support for Vue project
pnpm install eslint-config-prettier eslint-config-airbnb-base eslint-config-typescript eslint prettier -D
```

_Install their editor plugins(Vscode):_
Expand Down Expand Up @@ -146,23 +136,22 @@ _Auto fix problems that is can by ESLint on save:_
```json
{
"root": true,
"extends": ["airbnb-base", "prettier"],
"env": {
"es2024": true
},
"extends": ["airbnb-base", "prettier", "typescript"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
// "@typescript-eslint/no-explicit-any": 0,
// "@typescript-eslint/no-namespace": 0,
// "no-console": 0,
// "space-before-function-paren": 0,
/* typescript need */
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"no-use-before-define": 0,
"no-unused-vars": 0,
"no-shadow": 0,
"no-redeclare": 0
},
"ignorePatterns": ["*.js"]
"ignorePatterns": ["*.js", "*.d.ts"]
}
```

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint": "^8.47.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-config-typescript": "^3.0.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.0",
"prettier": "^3.0.2",
Expand All @@ -49,4 +49,4 @@
"git add ."
]
}
}
}

0 comments on commit e4e99da

Please sign in to comment.