Skip to content

Commit

Permalink
feat(eslint-config): enable some ts rules
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Sep 20, 2023
1 parent 2f18236 commit e7a1c9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/light-pigs-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@git-validator/eslint-config": patch
---

feat(eslint-config): enable some ts rules
9 changes: 8 additions & 1 deletion packages/eslint-config/src/ts-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,25 @@ export default {
// ban some syntaxes to reduce mistakes
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/no-duplicate-type-constituents": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-mixed-enums": "error",
"@typescript-eslint/no-import-type-side-effects": "error",
// '@typescript-eslint/consistent-type-imports': 'error',
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: false }],
"@typescript-eslint/no-misused-promises": [
"error",
{ checksVoidReturn: { returns: false, arguments: false, variables: false } },
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
// "@typescript-eslint/consistent-type-imports": "error",
// "@typescript-eslint/unbound-method": "error",
// "@typescript-eslint/no-non-null-assertion": "error",s

"@git-validator/no-const-enum": "error",
"@git-validator/no-declares-in-ts-file": "error",
Expand Down

0 comments on commit e7a1c9f

Please sign in to comment.