Skip to content

Commit

Permalink
fix: typescript style messing with type definitions
Browse files Browse the repository at this point in the history
Signed-off-by: diba1013 <diba1013@web.de>
  • Loading branch information
diba1013 committed Jan 5, 2024
1 parent 330f5b9 commit 1409202
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/eslint-config/src/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ export function defineConfig({
],
},
{
pathPattern:
"^(?:dev|peer|optional|bundled)?[Dd]ependencies$",
pathPattern: "^(?:dev|peer|optional|bundled)?[Dd]ependencies$",
order: { type: "asc" },
},
],
Expand Down Expand Up @@ -144,12 +143,7 @@ export function defineConfig({
{
type: "natural",
groups: [
[
"internal-type",
"parent-type",
"sibling-type",
"index-type",
],
["internal-type", "parent-type", "sibling-type", "index-type"],
["node-type"],
["type", "builtin-type"],
["internal", "parent", "sibling", "index"],
Expand Down Expand Up @@ -216,6 +210,12 @@ export function defineConfig({
...typescript.configs["recommended-type-checked"].rules,
...typescript.configs.stylistic.rules,
...typescript.configs["stylistic-type-checked"].rules,

/**
* Prefer types whenever possible
* https://typescript-eslint.io/rules/consistent-type-definitions/
*/
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
},
},
// Vue
Expand Down

0 comments on commit 1409202

Please sign in to comment.