Skip to content

Commit 3b369c5

Browse files
committed
refactor: rename module filename to kebab-case
1 parent 800887f commit 3b369c5

File tree

6 files changed

+99
-6
lines changed

6 files changed

+99
-6
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = defineConfig({
5656
"jsdoc/require-param-description": "off",
5757
"jsdoc/require-returns": "off",
5858
"filenames-simple/named-export": "off",
59+
"filenames-simple/naming-convention": ["error", { rule: "kebab-case" }],
5960
"functional/no-mixed-types": "off",
6061
"functional/no-return-void": "off",
6162
"functional/functional-parameters": "off",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"dprint": "0.45.0",
7575
"effect": "2.0.0-next.62",
7676
"eslint": ">=8.56.0",
77-
"eslint-config-with-tsconfig": "2.9.230",
77+
"eslint-config-with-tsconfig": "2.9.240",
7878
"eslint-plugin-eslint-plugin": "5.2.1",
7979
"eslint-plugin-filenames-simple": "0.9.0",
8080
"eslint-plugin-functional": "6.0.0",

packages/core/src/component/component-collector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { isReactHookCall } from "../hook";
2121
import type { ERFunctionComponent } from "./component";
2222
import { DEFAULT_COMPONENT_COLLECTOR_HINT, ERComponentCollectorHint } from "./component-collector-hint";
2323
import { ERFunctionComponentFlag } from "./component-flag";
24-
import { getFunctionComponentIdentifier } from "./component-Identifier";
24+
import { getFunctionComponentIdentifier } from "./component-identifier";
2525
import { getComponentInitPath, hasCallInInitPath } from "./component-init-path";
2626
import { getComponentNameFromIdentifier, hasNoneOrValidComponentName } from "./component-name";
2727
import { isFunctionOfRenderMethod } from "./component-render-method";

packages/core/src/component/component-Identifier.ts renamed to packages/core/src/component/component-identifier.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable filenames-simple/naming-convention */
21
import { isOneOf, NodeType, type TSESTreeFunction } from "@eslint-react/ast";
32
import { O } from "@eslint-react/tools";
43
import type { RuleContext } from "@eslint-react/types";

packages/core/src/component/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export * from "./component-collector";
33
export * from "./component-collector-hint";
44
export * from "./component-collector-legacy";
55
export * from "./component-flag";
6-
export * from "./component-Identifier";
6+
export * from "./component-identifier";
77
export * from "./component-init-path";
88
export * from "./component-kind";
99
export * from "./component-name";

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)