Skip to content

Commit

Permalink
Update typescript-eslint, add new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyOrekhov committed Feb 15, 2024
1 parent 81eb7d7 commit 317255c
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 56 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The most strict (yet practical) ESLint config.
Aims to include as many plugins and rules as possible to make your code
extremely consistent and robust.

**52 plugins. 1327 rules.**
**52 plugins. 1328 rules.**

## Usage

Expand Down Expand Up @@ -241,15 +241,15 @@ Config for TypeScript.

| Plugin | Enabled rules |
| ---------------------------------------------------------------------------------------------------------- | ------------: |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) | 104 |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) | 105 |
| [eslint-plugin-etc](https://github.com/cartant/eslint-plugin-etc) | 10 |
| [eslint-plugin-total-functions](https://github.com/danielnixon/eslint-plugin-total-functions) | 8 |
| [@shopify/eslint-plugin](https://github.com/Shopify/web-configs/tree/main/packages/eslint-plugin) | 3 |
| [eslint-plugin-sonar](https://github.com/un-ts/eslint-plugin-sonar) | 1 |
| [eslint-plugin-sort-class-members](https://github.com/bryanrsmith/eslint-plugin-sort-class-members) | 1 |
| [eslint-plugin-decorator-position](https://github.com/NullVoxPopuli/eslint-plugin-decorator-position) | 1 |
| [eslint-plugin-no-explicit-type-exports](https://github.com/intuit/eslint-plugin-no-explicit-type-exports) | 1 |
| **Total:** | **129** |
| **Total:** | **130** |

### `hardcore/node`

Expand Down Expand Up @@ -341,12 +341,12 @@ Config for linting JavaScript with

| Plugin | Enabled rules |
| ----------------------------------------------------------------------------------------------------- | ------------: |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) | 27 |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) | 28 |
| [eslint-plugin-etc](https://github.com/cartant/eslint-plugin-etc) | 4 |
| [@shopify/eslint-plugin](https://github.com/Shopify/web-configs/tree/main/packages/eslint-plugin) | 2 |
| [eslint-plugin-sort-class-members](https://github.com/bryanrsmith/eslint-plugin-sort-class-members) | 1 |
| [eslint-plugin-decorator-position](https://github.com/NullVoxPopuli/eslint-plugin-decorator-position) | 1 |
| **Total:** | **35** |
| **Total:** | **36** |

Did you know you can lint JavaScript code with
[typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)?
Expand Down
96 changes: 48 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@microsoft/eslint-plugin-sdl": "^0.2.2",
"@putout/plugin-apply-shorthand-properties": "^3.0.2",
"@shopify/eslint-plugin": "^44.0.0",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.1",
Expand Down
3 changes: 3 additions & 0 deletions ts-for-js.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "error",

"prefer-promise-reject-errors": "off",
"@typescript-eslint/prefer-promise-reject-errors": "error",

"no-void": ["error", { "allowAsStatement": true }],
"@typescript-eslint/no-floating-promises": "error",

Expand Down
4 changes: 3 additions & 1 deletion ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@
"@typescript-eslint/no-restricted-imports": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/adjacent-overload-signatures": "off",
"@typescript-eslint/class-methods-use-this": "off"
"@typescript-eslint/class-methods-use-this": "off",
"@typescript-eslint/no-array-delete": "off",
"@typescript-eslint/prefer-find": "off"
},

"settings": {
Expand Down

0 comments on commit 317255c

Please sign in to comment.