Skip to content

Commit

Permalink
feat: revamp of the linter section
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Feb 14, 2025
1 parent ea7db50 commit 163acb9
Show file tree
Hide file tree
Showing 342 changed files with 2,167 additions and 1,830 deletions.
7 changes: 6 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
pnpm-lock.yaml linguist-generated=true text=auto eol=lf
# pages and components that are auto generated
src/pages/lint/rules/**/*.md linguist-generated=true text=auto eol=lf
src/pages/lint/rules/use-*.mdx linguist-generated=true text=auto eol=lf
src/pages/lint/rules/no-*.mdx linguist-generated=true text=auto eol=lf
src/pages/lint/rules/javascript/*.mdx linguist-generated=true text=auto eol=lf
src/pages/lint/rules/css/*.mdx linguist-generated=true text=auto eol=lf
src/pages/lint/rules/graphql/*.mdx linguist-generated=true text=auto eol=lf
src/pages/lint/rules/json/*.mdx linguist-generated=true text=auto eol=lf
src/components/generated/**/*.astro linguist-generated=true text=auto eol=lf
src/pages/metadata/**/*.js linguist-generated=true text=auto eol=lf
src/pages/schemas/**/*.js linguist-generated=true text=auto eol=lf
72 changes: 66 additions & 6 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ export default defineConfig({
title: "Biome",
defaultLocale: "root",
plugins,
expressiveCode: {
shiki: {
langAlias: {
cjs: "javascript",
grit: "txt",
},
},
},
locales: {
root: {
label: "English",
Expand Down Expand Up @@ -327,8 +335,8 @@ export default defineConfig({
},
},
{
label: "Rules",
link: "/linter/rules",
label: "JavaScript Rules",
link: "/linter/javascript/rules",
translations: {
fr: "Règles",
ja: "ルール",
Expand All @@ -338,12 +346,36 @@ export default defineConfig({
},
},
{
label: "Rules sources",
link: "/linter/rules-sources",
label: "JavaScript Rules sources",
link: "/linter/javascript/sources",
translations: {
fr: "Sources des règles",
},
},
{
label: "CSS Rules",
link: "/linter/css/rules",
},
{
label: "CSS Rules sources",
link: "/linter/css/sources",
},
{
label: "JSON Rules",
link: "/linter/json/rules",
},
{
label: "JSON Rules sources",
link: "/linter/json/sources",
},
{
label: "GraphQL Rules",
link: "/linter/graphql/rules",
},
{
label: "GraphQL Rules sources",
link: "/linter/graphql/sources",
},
],
translations: {
fr: "Outil de linting",
Expand All @@ -359,8 +391,36 @@ export default defineConfig({
link: "/assist",
},
{
label: "Actions",
link: "/assist/actions",
label: "JavaScript Actions",
link: "/assist/javascript/actions",
},
{
label: "JavaScript Actions sources",
link: "/assist/javascript/sources",
},
{
label: "CSS Actions",
link: "/assist/css/actions",
},
{
label: "CSS Actions sources",
link: "/assist/css/sources",
},
{
label: "JSON Actions",
link: "/assist/json/actions",
},
{
label: "JSON Actions sources",
link: "/assist/json/sources",
},
{
label: "GraphQL Actions",
link: "/assist/graphql/actions",
},
{
label: "GraphQL Actions sources",
link: "/assist/graphql/sources",
},
],
},
Expand Down
Loading

0 comments on commit 163acb9

Please sign in to comment.