-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
267 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
content/Frontend/React/Hook.md → content/Frontend/React/hook/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
content/Language/C++/Algorithm.md → content/Language/C++/Algorithm/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
content/Language/C++/Lambda.md → content/Language/C++/Lambda/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
content/Language/C++/STL.md → content/Language/C++/STL/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion
8
content/Language/C++/C++algorithm.md → content/Language/C++/stl-algorithm/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
content/Language/C++/transform.md → content/Language/C++/transform/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
title: Eslint plugin for TypeScript | ||
tags: | ||
- nodejs | ||
date: '2023-11-04' | ||
summary: ESLint is a valuable tool for improving code quality, maintaining consistency, preventing errors | ||
--- | ||
|
||
<!-- TypeScript is a strongly typed programming language that builds on JavaScript. | ||
TypeScript adds additional syntax to JavaScript that allows you to declare the shapes of objects and functions in code. It provides a set of language services that allow for running powerful inferences and automations with that type information. | ||
ESLint is an awesome linter for JavaScript code. | ||
ESLint statically analyzes your code to quickly find problems. It allows creating a series of assertions called lint rules around what your code should look or behave like, as well as auto-fixer suggestions to improve your code for you, and loading in lint rules from shared plugins. --> | ||
|
||
## why Typescript need ESLint | ||
ESLint is widely used in the JavaScript development ecosystem. The rule can help enforce a consistent coding style across a project or team. ESLint assists in maintaining high code quality standards,catches common programming errors and potential bugs during development. | ||
ESLint is highly configurable. Developers can customize its rules based on the requirements of their projects or teams. This flexibility allows ESLint to adapt to different coding styles and preferences. | ||
|
||
ESLint is a valuable tool for improving code quality, maintaining consistency, preventing errors. JavaScript development projects. It helps developers write cleaner, more reliable code. | ||
|
||
## mainly eslint plugin package | ||
|
||
1. **@typescript-eslint/eslint-plugin** | ||
- An ESLint plugin which provides lint rules for TypeScript codebases. | ||
|
||
2. **@typescript-eslint/parser** | ||
- An ESLint parser which leverages TypeScript ESTree to allow for ESLint to lint TypeScript source code. | ||
3. **eslint**: | ||
- ESLint uses Espree for JavaScript parsing. | ||
- ESLint uses an AST to evaluate patterns in code. | ||
- ESLint is completely pluggable, every single rule is a plugin and you can add more at runtime. | ||
|
||
4. **@typescript-eslint/eslint-plugin-tslint** | ||
- ESLint plugin that wraps a TSLint configuration and lints the whole source using TSLint. | ||
5. **eslint-config-prettier**: | ||
- Turns off all rules that are unnecessary or might conflict with Prettier. | ||
- This lets you use your favorite shareable config without letting its stylistic choices get in the way when using Prettier. | ||
- Note that this config only turns rules off, so it only makes sense using it together with some other config. | ||
|
||
## others common eslint plugin | ||
|
||
- **eslint-plugin-import** | ||
- **eslint-plugin-jsdoc** | ||
- **eslint-plugin-no-null** | ||
- **eslint-plugin-prefer-arrow** | ||
- **eslint-plugin-sonarjs** | ||
- **eslint-plugin-unicorn** | ||
- **prettier** | ||
- **sonarjs** | ||
- **eslint-config-prettier** | ||
- **eslint-plugin-etc** | ||
- **eslint-plugin-jsdoc** | ||
- **eslint-plugin-node** | ||
- **eslint-plugin-prefer-arro** | ||
- **eslint-plugin-sonarjs** | ||
- **eslint-plugin-unicorn** | ||
- **eslint-config-airbnb** | ||
- **eslint-import-resolver-typescript** | ||
- **eslint-plugin-etc** | ||
- **eslint-plugin-jsx-a11y** | ||
- **eslint-plugin-node** | ||
- **eslint-plugin-prefer-arrow** | ||
- **eslint-plugin-react** | ||
- **eslint-plugin-react-hooks** | ||
|
||
## Typescript/ESLint Link | ||
|
||
if you want to know about typescript and eslint rules,please refer below. | ||
- https://typescript-eslint.io/rules/ | ||
|
||
- https://eslint.org/docs/latest/rules/ | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
content/Language/nodejs/nodejs-deep-copy.md → content/Language/nodejs/nodejs-copy/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.