Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Nov 12, 2024
1 parent 85061c9 commit 8eed3d3
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 114 deletions.
150 changes: 77 additions & 73 deletions astro.config.mts
Original file line number Diff line number Diff line change
@@ -1,88 +1,92 @@
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import starlight from '@astrojs/starlight'
import { defineConfig } from 'astro/config'

import react from "@astrojs/react";
import react from '@astrojs/react'

import tailwind from "@astrojs/tailwind";
import tailwind from '@astrojs/tailwind'

// https://astro.build/config
export default defineConfig({
srcDir: "./astro",
srcDir: './astro',
vite: {
build: {
rollupOptions: {
// For some reason, the build crashes without this
external: ["sharp"],
external: ['sharp'],
},
},
},
integrations: [starlight({
// https://starlight.astro.build/reference/configuration
title: "Ada URL",
social: {
github: "https://github.com/ada-url/ada",
},
sidebar: [
{
label: "Getting Started",
items: ["introduction", "installation"],
integrations: [
starlight({
// https://starlight.astro.build/reference/configuration
title: 'Ada URL',
social: {
github: 'https://github.com/ada-url/ada',
},
{
label: "CLI",
items: [
{
label: "Introduction",
slug: "cli",
},
{
label: "Performance",
slug: "cli/performance",
},
],
sidebar: [
{
label: 'Getting Started',
items: ['introduction', 'installation'],
},
{
label: 'CLI',
items: [
{
label: 'Introduction',
slug: 'cli',
},
{
label: 'Performance',
slug: 'cli/performance',
},
],
},
{
label: 'Supported Languages',
items: [
{
label: 'C++ client',
slug: 'clients/cpp',
},
{
label: 'Rust client',
slug: 'clients/rust',
},
{
label: 'Python client',
slug: 'clients/python',
},
{
label: 'Go client',
slug: 'clients/go',
},
{
label: 'LuaJIT client',
slug: 'clients/luajit',
},
],
},
],
components: {
SiteTitle: './astro/components/SiteTitle.astro',
},
{
label: "Supported Languages",
items: [
{
label: "C++ client",
slug: "clients/cpp",
},
{
label: "Rust client",
slug: "clients/rust",
},
{
label: "Python client",
slug: "clients/python",
},
{
label: "Go client",
slug: "clients/go",
},
{
label: "LuaJIT client",
slug: "clients/luajit",
},
],
favicon: './public/favicon-32x32.png',
logo: {
light: './astro/assets/logo-light.svg',
dark: './astro/assets/logo-dark.svg',
replacesTitle: true,
},
],
components: {
SiteTitle: "./astro/components/SiteTitle.astro",
},
favicon: "./public/favicon-32x32.png",
logo: {
light: "./astro/assets/logo-light.svg",
dark: "./astro/assets/logo-dark.svg",
replacesTitle: true,
},
customCss: [
// Relative path to your custom CSS file
"./astro/custom.css",
],
editLink: {
baseUrl: "https://github.com/ada-url/website/edit/main",
},
titleDelimiter: "-",
credits: false,
}), react(), tailwind()],
});
customCss: [
// Relative path to your custom CSS file
'./astro/custom.css',
],
editLink: {
baseUrl: 'https://github.com/ada-url/website/edit/main',
},
titleDelimiter: '-',
credits: false,
}),
react(),
tailwind(),
],
})
78 changes: 37 additions & 41 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,80 +1,76 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
],
darkMode: ['class'],
content: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}', './app/**/*.{ts,tsx}'],
theme: {
container: {
center: true,
padding: "2rem",
padding: '2rem',
screens: {
"2xl": "1400px",
'2xl': '1400px',
},
},
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
keyframes: {
"accordion-down": {
'accordion-down': {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
to: { height: 'var(--radix-accordion-content-height)' },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: 0 },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
},
},
plugins: [
require("@tailwindcss/nesting"),
require("tailwindcss-animate"),
require("tailwindcss"),
require("autoprefixer"),
require('@tailwindcss/nesting'),
require('tailwindcss-animate'),
require('tailwindcss'),
require('autoprefixer'),
],
};
}

0 comments on commit 8eed3d3

Please sign in to comment.