Skip to content

Commit

Permalink
chore: handle optional dynamic path segments in eslint check file rul…
Browse files Browse the repository at this point in the history
…e [skip ci]
  • Loading branch information
stefanprobst committed Feb 7, 2025
1 parent e558637 commit f5d53f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { withNuxt } from "./.nuxt/eslint.config.mjs";

const KEBAB_CASE = "+([a-z])*([a-z0-9])*(-+([a-z0-9]))";
const CAMEL_CASE = "+([a-z])*([a-z0-9])*([A-Z]*([a-z0-9]))";
const DYNAMIC_SEGMENTS = `\\[${CAMEL_CASE}\\]`;
const DYNAMIC_SEGMENTS = `\\[?(\\[)${CAMEL_CASE}\\]?(\\[)`;
const CATCH_ALL_SEGMENTS = `\\[...${CAMEL_CASE}\\]`;
const MIDDLE_EXTENSION = "*(.+([a-z0-9]))";

Expand Down

0 comments on commit f5d53f4

Please sign in to comment.