-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap to biome for formatting and linting
- Loading branch information
Showing
21 changed files
with
4,917 additions
and
3,491 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,41 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.eslintrc.json' | ||
- 'tsconfig.json' | ||
- '.github/workflows/check.yml' | ||
push: | ||
paths-ignore: | ||
- .vscode/** | ||
- README.md | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
cache-dependency-path: '**/yarn.lock' | ||
- run: yarn install --immutable | ||
- run: yarn lint --max-warnings 0 | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn lint | ||
|
||
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
cache-dependency-path: '**/yarn.lock' | ||
- run: yarn install --immutable | ||
- run: yarn typecheck | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn tsc | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
cache-dependency-path: '**/yarn.lock' | ||
- run: yarn install --immutable | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
dist | ||
.vscode | ||
yarn-error.log | ||
.yarn | ||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["biomejs.biome"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports.biome": "explicit" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nodeLinker: node-modules | ||
compressionLevel: mixed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"files": { | ||
"ignore": [".yarn", "dist"] | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"formatter": { | ||
"indentStyle": "space", | ||
"lineWidth": 120 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"semicolons": "asNeeded" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,11 @@ | |
"name": "ayecal", | ||
"version": "0.1.7", | ||
"description": "Create and manipulate iCal files", | ||
"keywords": [ | ||
"ical", | ||
"ics", | ||
"calendar", | ||
"webcal" | ||
], | ||
"keywords": ["ical", "ics", "calendar", "webcal"], | ||
"repository": "https://github.com/stevent-team/ayecal", | ||
"author": "Stevent team (https://stevent.club)", | ||
"license": "MIT", | ||
"packageManager": "[email protected]", | ||
"type": "module", | ||
"main": "dist/ayecal.umd.cjs", | ||
"module": "dist/ayecal.js", | ||
|
@@ -21,28 +17,21 @@ | |
"require": "./dist/ayecal.umd.cjs" | ||
} | ||
}, | ||
"files": ["dist"], | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"build:demo": "tsc && vite build -m demo", | ||
"lint": "eslint --ext .ts ./src", | ||
"test": "vitest", | ||
"typecheck": "tsc", | ||
"ci:release": "yarn build && yarn changeset publish" | ||
"lint": "biome check .", | ||
"format": "biome check --apply .", | ||
"test": "vitest" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.26.1", | ||
"@types/node": "^18.15.11", | ||
"@typescript-eslint/eslint-plugin": "^5.57.0", | ||
"@typescript-eslint/parser": "^5.57.0", | ||
"eslint": "^8.10.0", | ||
"type-fest": "^3.7.2", | ||
"typescript": "^5.0.3", | ||
"vite": "^4.2.1", | ||
"vite-plugin-dts": "^2.1.0", | ||
"vitest": "^0.29.8" | ||
}, | ||
"files": [ | ||
"dist" | ||
] | ||
"@biomejs/biome": "^1.4.1", | ||
"@changesets/cli": "^2.27.1", | ||
"@types/node": "^20.10.6", | ||
"type-fest": "^4.9.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.10", | ||
"vite-plugin-dts": "^3.7.0", | ||
"vitest": "^1.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.