mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-28 07:16:53 +05:00
refactor: update AST strategies to use centralized node type constants
This commit is contained in:
@@ -119,3 +119,4 @@ export const VIOLATION_SEVERITY_MAP = {
|
||||
} as const
|
||||
|
||||
export * from "./rules"
|
||||
export * from "./ast-node-types"
|
||||
|
||||
@@ -459,7 +459,27 @@ export const CONFIG_KEYWORDS = {
|
||||
NETWORK: ["endpoint", "host", "domain", "path", "route"],
|
||||
DATABASE: ["connection", "database"],
|
||||
SECURITY: ["config", "secret", "token", "password", "credential"],
|
||||
MESSAGES: ["message", "error", "warning", "text"],
|
||||
MESSAGES: [
|
||||
"message",
|
||||
"error",
|
||||
"warning",
|
||||
"text",
|
||||
"description",
|
||||
"suggestion",
|
||||
"violation",
|
||||
"expected",
|
||||
"actual",
|
||||
],
|
||||
TECHNICAL: [
|
||||
"type",
|
||||
"node",
|
||||
"declaration",
|
||||
"definition",
|
||||
"signature",
|
||||
"pattern",
|
||||
"suffix",
|
||||
"prefix",
|
||||
],
|
||||
} as const
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user