Skip to content

Commit

Permalink
feat(eslint-config): enable some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Sep 19, 2023
1 parent b36ba4b commit dd0ecd9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tiny-tips-knock.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 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 @@ -100,7 +100,6 @@ export default {
rules: {
...jsConfig.rules,
...getTsRules(),
"no-void": ["error", { allowAsStatement: true }],

// ban some syntaxes to reduce mistakes
"@typescript-eslint/ban-types": "error",
Expand All @@ -109,6 +108,14 @@ export default {
"@typescript-eslint/no-namespace": "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/unbound-method": "error",

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

0 comments on commit dd0ecd9

Please sign in to comment.