Skip to content

Commit

Permalink
refactor: ♻️ use TypedConfigItem for node and javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Nov 8, 2024
1 parent fd5fffa commit a9dcaaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/configs/javascript.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Linter } from "eslint";
import type { TypedConfigItem } from "../types";

import { javascriptRules } from "../rules/javascript";

Expand All @@ -11,5 +11,5 @@ export const javascriptConfig = () => {
name: "jimmy.codes/javascript",
rules: javascriptRules,
},
] satisfies Linter.Config[];
] satisfies TypedConfigItem[];
};
6 changes: 3 additions & 3 deletions src/configs/node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Linter } from "eslint";

import nodePlugin from "eslint-plugin-n";

import type { TypedConfigItem } from "../types";

import { nodeRules } from "../rules/node";

export const nodeConfig = () => {
Expand All @@ -13,5 +13,5 @@ export const nodeConfig = () => {
},
rules: nodeRules,
},
] satisfies Linter.Config[];
] satisfies TypedConfigItem[];
};

0 comments on commit a9dcaaf

Please sign in to comment.