Skip to content

Commit 095b076

Browse files
committed
Fix local eslint config
1 parent 5f1a721 commit 095b076

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.pkgs/configs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@stylistic/eslint-plugin": "^5.5.0",
2424
"eslint-plugin-de-morgan": "^2.0.0",
2525
"eslint-plugin-function": "^0.0.33",
26-
"eslint-plugin-function-rule": "^0.0.13",
26+
"eslint-plugin-function-rule": "^0.0.14",
2727
"eslint-plugin-jsdoc": "^61.1.12",
2828
"eslint-plugin-perfectionist": "^4.15.1",
2929
"eslint-plugin-regexp": "^2.10.0",

.pkgs/function-rules/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"lint:ts": "tsc --noEmit"
2222
},
2323
"dependencies": {
24-
"eslint-plugin-function-rule": "^0.0.13"
24+
"eslint-plugin-function-rule": "^0.0.14"
2525
},
2626
"devDependencies": {
2727
"eslint": "^9.39.1",

eslint.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from "@local/configs/eslint";
1414
import { nullishComparison, templateExpression } from "@local/function-rules";
1515
import { recommended as fastImportRecommended } from "eslint-plugin-fast-import";
16-
import { defineRule } from "eslint-plugin-function-rule";
16+
import { functionRule } from "eslint-plugin-function-rule";
1717
import pluginVitest from "eslint-plugin-vitest";
1818
import { defineConfig, globalIgnores } from "eslint/config";
1919
import tseslint from "typescript-eslint";
@@ -53,10 +53,10 @@ export default defineConfig([
5353
},
5454
},
5555
plugins: {
56-
"function-rule-1": defineRule(templateExpression()),
57-
"function-rule-2": defineRule(nullishComparison()),
56+
"function-rule-1": functionRule(templateExpression()),
57+
"function-rule-2": functionRule(nullishComparison()),
5858

59-
custom: defineRule((context) => ({
59+
custom: functionRule((context) => ({
6060
CallExpression(node) {
6161
if (context.sourceCode.getText(node.callee) === "Date.now") {
6262
context.report({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"effect": "^3.19.3",
7575
"eslint": "^9.39.1",
7676
"eslint-plugin-fast-import": "^1.5.3",
77-
"eslint-plugin-function-rule": "^0.0.13",
77+
"eslint-plugin-function-rule": "^0.0.14",
7878
"eslint-plugin-vitest": "^0.5.4",
7979
"mdxlint": "^1.0.0",
8080
"publint": "^0.3.15",

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)