Skip to content

Commit

Permalink
chore: setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
jer3m01 committed Oct 1, 2024
1 parent 14342cc commit 46dfc54
Show file tree
Hide file tree
Showing 10 changed files with 631 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/format-files-prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Format Files

on:
pull_request:
branches:
- main
paths:
- "**.md"
- "**.mdx"
- "**.yml"
- "**.yaml"
- "**.toml"
- "**.html"
- "**.css"
push:
branches:
- main

jobs:
prettier:
name: "Prettier"
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run Prettier
uses: creyD/[email protected]
with:
dry: true
prettier_options: . --check
prettier_version: 4.0.0-alpha.8
32 changes: 32 additions & 0 deletions .github/workflows/format-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Format & Lint Files

on:
pull_request:
branches:
- main
paths:
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"
- "**.cjs"
- "**.json"
push:
branches:
- main

jobs:
biome:
name: "Biome"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: 1.9.2

- name: Run Biome
run: biome ci .
33 changes: 33 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Typecheck

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
typescript:
name: Typescript
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v4

- name: Setup Node.js 21.6.1
uses: actions/setup-node@v4
with:
node-version: 21.6.1
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Typecheck
run: pnpm typecheck
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
node_modules
build
dist
gitignore

# debug
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# solid
.solid
.vinxi
.netlify
.output
.vercel

# VSC Settings
.vscode/settings.json

/.idea
.project
.classpath
*.launch
.settings/

.DS_Store
Thumbs.db
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.js
*.ts
*.jsx
*.tsx
*.json
*.cjs
pnpm-lock.yaml
33 changes: 33 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": ["./tsconfig.json", "*/netlify/*", "**/package.json"]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"noAutofocus": "off",
"noNoninteractiveTabindex": "off",
"noNoninteractiveElementToInteractiveRole": "off"
},
"suspicious": {
"noEmptyInterface": "off",
"noExplicitAny": "off",
"noAssignInExpressions": "off"
},
"style": {
"noNonNullAssertion": "off"
},
"complexity": {
"noBannedTypes": "off"
}
}
}
}
23 changes: 19 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
{
"name": "@kobalte/solidbase",
"version": "0.0.1",
"description": "",
"description": "Your Solid knowledgebase",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"check": "biome check",
"format": "biome check --write && prettier . --write",
"typecheck": "tsc --noEmit"
},
"keywords": [],
"keywords": [
"solid",
"solidjs",
"solidstart",
"documentation"
],
"author": "jer3m01 <[email protected]>",
"contributors": [
"dev-rb <[email protected]>",
"Brendan Allan <[email protected]>"
],
"license": "MIT"
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "^1.9.2",
"prettier": "4.0.0-alpha.8",
"typescript": "^5.6.2"
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit 46dfc54

Please sign in to comment.