Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": [
"dist/**",
"*.min.js",
"routeTree.gen.ts",
".oxfmtrc.json"
],
"printWidth": 80,
"proseWrap": "always",
"sortTailwindcss": {
"stylesheet": "./src/styles/globals.css"
},
"sortImports": {
"newlinesBetween": false,
"groups": [
"type-import",
[
"value-builtin",
"value-external"
],
"type-internal",
"value-internal",
[
"type-parent",
"type-sibling",
"type-index"
],
[
"value-parent",
"value-sibling",
"value-index"
],
"unknown"
]
}
}
53 changes: 53 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc"],
"options": {
"typeAware": true
},
"categories": {
"correctness": "error",
"nursery": "off",
"style": "off",
"perf": "off",
"pedantic": "off",
"restriction": "off",
"suspicious": "warn"
},
"rules": {
"id-length": [
"error",
{
"min": 3,
"exceptions": []
}
],
"no-console": [
"warn",
{
"allow": ["info", "error", "warn"]
}
],
"typescript/consistent-type-imports": [
"warn",
{
"disallowTypeAnnotations": true,
"fixStyle": "separate-type-imports",
"prefer": "type-imports"
}
],
"typescript/no-base-to-string": "warn",
"prefer-const": "error",
"no-else-return": "warn",
"prefer-template": "warn",
"prefer-destructuring": "warn",
"no-useless-catch": "warn",
"unicorn/no-array-sort": "warn",
"unicorn/prefer-logical-operator-over-ternary": "warn",
"unicorn/throw-new-error": "warn",
"typescript/no-inferrable-types": "warn",
"typescript/consistent-type-exports": "warn"
},
"env": {
"builtin": true
}
}
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ Inside of your Astro project, you'll see the following folders and files:
└── package.json
```

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page
is exposed as a route based on its file name.

There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
There's nothing special about `src/components/`, but that's where we like to put
any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the `public/` directory.

Expand All @@ -44,4 +46,5 @@ All commands are run from the root of the project, from a terminal:

## 👀 Want to learn more?

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
Feel free to check [our documentation](https://docs.astro.build) or jump into
our [Discord server](https://astro.build/chat).
9 changes: 6 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from "astro/config";

import icon from "astro-icon";
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
Expand All @@ -10,6 +9,10 @@ export default defineConfig({
destination: "https://www.essentialrandomness.com/streams",
status: 307,
},
"/team/codeargent": "/team/argent",
"/contributors/codeargent": "/contributors/argent",
"/team": "/contributors",
"/team/codeargent": "/contributors/argent",
"/team/[member]": "/contributors/[member]",
"/team/[project]": "/contributors/[project]",
},
});
Loading