Skip to content

Commit

Permalink
Fix #890 Add eslint-plugin-typescript-compat to ts-for-js.json
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyOrekhov committed Apr 19, 2024
1 parent d979563 commit e934a3c
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
8 changes: 5 additions & 3 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. 1332 rules.**
**53 plugins. 1333 rules.**

## Usage

Expand Down Expand Up @@ -249,7 +249,8 @@ Config for TypeScript.
| [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:** | **130** |
| [eslint-plugin-typescript-compat](https://github.com/azu/eslint-plugin-typescript-compat) | 1 |
| **Total:** | **131** |

### `hardcore/node`

Expand Down Expand Up @@ -346,7 +347,8 @@ Config for linting JavaScript with
| [@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:** | **36** |
| [eslint-plugin-typescript-compat](https://github.com/azu/eslint-plugin-typescript-compat) | 1 |
| **Total:** | **37** |

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

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"eslint-plugin-testing-library": "^6.2.2",
"eslint-plugin-toml": "^0.11.0",
"eslint-plugin-total-functions": "^7.1.0",
"eslint-plugin-typescript-compat": "^1.0.2",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"eslint-plugin-validate-jsx-nesting": "^0.1.1",
Expand Down
5 changes: 4 additions & 1 deletion ts-for-js.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"sort-class-members",
"decorator-position",
"@shopify",
"etc"
"etc",
"typescript-compat"
],

"rules": {
Expand Down Expand Up @@ -201,6 +202,8 @@
"import/no-deprecated": "off",
"etc/no-deprecated": "error",

"typescript-compat/compat": "error",

"sonar/argument-type": "off",
"sonar/no-associative-arrays": "off",
"sonar/no-invalid-await": "off",
Expand Down

0 comments on commit e934a3c

Please sign in to comment.