Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Biome #796

Merged
merged 1 commit into from
May 17, 2024
Merged

Biome #796

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
5 changes: 1 addition & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ jobs:

- run: yarn install --immutable

- run: yarn format:check
if: always()

- run: yarn lint
- run: yarn ci
if: always()

- run: yarn typecheck
Expand Down
1 change: 0 additions & 1 deletion analysis/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": ["package.json", "**/dist/**/*.js"]
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"useLiteralKeys": "off"
}
}
},
"organizeImports": {
"enabled": true
},
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
}
}
38 changes: 11 additions & 27 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lint-doc/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions lint-fmt/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lint-opam/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions monorepo.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,9 @@
{ "name": "packages/lint-fmt", "path": "packages/lint-fmt" },
{ "name": "packages/lint-opam", "path": "packages/lint-opam" },
{ "name": "packages/setup-ocaml", "path": "packages/setup-ocaml" },
{ "name": "eslint-config-ocaml", "path": "packages/eslint-config-ocaml" },
{ "name": "root", "path": "." }
],
"settings": {
"grammarly.selectors": [
{
"language": "markdown",
"scheme": "file"
}
],
"search.exclude": {
"**/.turbo": true,
"**/dist": true,
Expand Down
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@
],
"scripts": {
"build": "turbo run build --continue --parallel",
"format": "turbo run format --continue --parallel",
"format:check": "turbo run format:check --continue --parallel",
"lint": "turbo run lint --continue --parallel",
"ci": "biome ci .",
"format": "biome format --write .",
"typecheck": "turbo run typecheck --continue --parallel"
},
"resolutions": {
"eslint-plugin-import/tsconfig-paths": "4.2.0"
},
"devDependencies": {
"prettier": "3.2.5",
"prettier-plugin-packagejson": "2.5.0",
"@biomejs/biome": "1.7.3",
"turbo": "1.13.3"
},
"packageManager": "[email protected]"
Expand Down
7 changes: 0 additions & 7 deletions packages/analysis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"type": "module",
"scripts": {
"build": "ncc build src/index.ts --license LICENSE.txt --out ../../analysis/dist",
"format": "prettier . --write",
"format:check": "prettier . --check",
"lint": "TIMING=1 eslint .",
"typecheck": "tsc"
},
"dependencies": {
Expand All @@ -20,13 +17,9 @@
"strip-ansi": "7.1.0"
},
"devDependencies": {
"@ocaml/eslint-config-ocaml": "workspace:*",
"@tsconfig/strictest": "2.0.5",
"@types/node": "20.12.7",
"@vercel/ncc": "0.38.1",
"eslint": "8.57.0",
"prettier": "3.2.5",
"prettier-plugin-packagejson": "2.5.0",
"typescript": "5.4.5"
}
}
1 change: 0 additions & 1 deletion packages/analysis/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-process-exit */
import * as process from "node:process";

import * as core from "@actions/core";
Expand Down
6 changes: 0 additions & 6 deletions packages/eslint-config-ocaml/.eslintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/eslint-config-ocaml/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions packages/eslint-config-ocaml/.prettierrc.json

This file was deleted.

58 changes: 0 additions & 58 deletions packages/eslint-config-ocaml/index.js

This file was deleted.

32 changes: 0 additions & 32 deletions packages/eslint-config-ocaml/package.json

This file was deleted.

Loading
Loading