Skip to content

Commit

Permalink
fix: loosen type consistency definitions based on type vs interface
Browse files Browse the repository at this point in the history
since this was more anyoing than helpful in more complex projects

Signed-off-by: diba1013 <[email protected]>
  • Loading branch information
diba1013 committed Jan 17, 2024
1 parent 6a3a284 commit fd483d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/curvy-cherries-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@diba1013/eslint-config": patch
"@diba1013/prettier-config": patch
"@diba1013/stylelint-config": patch
---

loose type definitions
4 changes: 2 additions & 2 deletions packages/eslint-config/src/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ export function defineConfig({
...typescript.configs["stylistic-type-checked"].rules,

/**
* Prefer types whenever possible
* Personal style for plain objects vs repository interfaces
* https://typescript-eslint.io/rules/consistent-type-definitions/
*/
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
"@typescript-eslint/consistent-type-definitions": "off",
},
},
// Vue
Expand Down

0 comments on commit fd483d6

Please sign in to comment.