Skip to content
Merged
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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Installing project dependencies
run: |
npm ci
# - name: Format
# run: |
# npm run format:check
# - name: Lint
# run: |
# npm run lint
- name: Format Check
run: |
npm run format:check
- name: Lint
run: |
npm run lint
- name: Check Types
run: |
npm run check
npm run check
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
9 changes: 9 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": {
"correctness": "error"
},
"rules": {
"eslint/no-unused-vars": "error"
}
}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ To start the production server, run:

```sh
$ npm run serve
```
```

---

Additionally, before committing the following commands will run as part of Husky pre-commit hooks, but you can also run them manually:

- `npm run lint` - Runs OXLint for JS / TS linting
- `npm run format` - Runs OXFmt for code formatting
- `npm run check` - Run TSGO for type-checking
12 changes: 6 additions & 6 deletions greenwood.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { greenwoodPluginImportRaw } from '@greenwood/plugin-import-raw';
import { greenwoodPluginCssModules } from '@greenwood/plugin-css-modules';
import { greenwoodPluginImportJsx } from '@greenwood/plugin-import-jsx';
import { replBundlerResourcePlugin } from './repl-bundler-plugin.ts';
import { greenwoodPluginImportRaw } from "@greenwood/plugin-import-raw";
import { greenwoodPluginCssModules } from "@greenwood/plugin-css-modules";
import { greenwoodPluginImportJsx } from "@greenwood/plugin-import-jsx";
import { replBundlerResourcePlugin } from "./repl-bundler-plugin.ts";
import type { Config } from "@greenwood/cli";

const config: Config = {
Expand All @@ -10,8 +10,8 @@ const config: Config = {
greenwoodPluginCssModules(),
greenwoodPluginImportRaw(),
greenwoodPluginImportJsx(),
replBundlerResourcePlugin()
]
replBundlerResourcePlugin(),
],
};

export default config;
5 changes: 5 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
"*.js": ["npm run lint --"],
"*.ts": ["npm run lint --", "npm run check --"],
"*.*": ["npm run format --"],
};
8 changes: 4 additions & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[build]
publish = "public/"
command = "npm run build"
publish = "public/"
command = "npm run build"

[build.processing]
skip_processing = true
skip_processing = true

[build.environment]
NODE_VERSION = "24.4.0"
NODE_VERSION = "24.4.0"
Loading