Skip to content

Commit 84be48e

Browse files
fix: updating naming-convention
1 parent f41c8ba commit 84be48e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/plugins/typescript.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type Linter } from "eslint";
22

3-
import { commonJsFiles, typescriptDeclarationFiles } from "~/files";
3+
import { typescriptDeclarationFiles } from "~/files";
44

55
export const settings: Linter.Config = {
66
plugins: ["@typescript-eslint"],
@@ -101,6 +101,18 @@ export const settings: Linter.Config = {
101101
leadingUnderscore: "allow",
102102
trailingUnderscore: "forbid",
103103
},
104+
{
105+
selector: "variable",
106+
filter: {
107+
regex: "_[^_]+",
108+
match: true,
109+
},
110+
format: ["camelCase", "PascalCase", "UPPER_CASE"],
111+
modifiers: ["const"],
112+
prefix: ["m_", "M_"],
113+
leadingUnderscore: "allow",
114+
trailingUnderscore: "forbid",
115+
},
104116
{
105117
selector: "variable",
106118
format: ["camelCase", "PascalCase", "UPPER_CASE"],

0 commit comments

Comments
 (0)