Skip to content

Commit

Permalink
Merge branch 'main' into chore/use-import-type-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Apr 23, 2024
2 parents 5fa2894 + 2ecfe4c commit ef55efe
Show file tree
Hide file tree
Showing 1,501 changed files with 34,288 additions and 106,798 deletions.
2 changes: 0 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ codegen-configuration = "run -p xtask_codegen --features configuration -- config
# updates a newly created crate
codegen-license = "run -p xtask_codegen --features license -- license"
codegen-schema = "run -p xtask_codegen --features schema -- schema"
codegen-website = "run -p xtask_codegen --features website -- website"
contributors = "run -p xtask_contributors --"
coverage = "run -p xtask_coverage --profile=release-with-debug --"
documentation = """
Expand All @@ -34,7 +33,6 @@ documentation = """
"""
format = "fmt --all --verbose"
lint = "clippy --workspace --all-targets -- --deny warnings"
lintdoc = "run -p xtask_lintdoc --"
new-crate = "run -p xtask_codegen -- new-crate"

[profile.release]
Expand Down
5 changes: 5 additions & 0 deletions .changeset/this_is_a_test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
biome_configuration: patch
---

# This is a test /2
13 changes: 7 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Generated files, sorted alphabetically.
* text=auto eol=lf
**/generated/* linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/analyzers.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/analyzers/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/syntax.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/syntax/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/assists.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/assists/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/semantic_analyzers.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/semantic_analyzers/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/lint.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/lint/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/registry.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/linter/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/parse/json/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/src/linter/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/src/parse/json/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs linguist-generated=true text=auto eol=lf
crates/biome_unicode_table/src/tables.rs linguist-generated=true text=auto eol=lf
packages/@biomejs/backend-jsonrpc/src/workspace.ts linguist-generated=true text=auto eol=lf
packages/@biomejs/biome/configuration_schema.json linguist-generated=true text=auto eol=lf
Expand Down
44 changes: 0 additions & 44 deletions .github/ISSUE_TEMPLATE/04_documentation.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
blank_issues_enabled: false
contact_links:
- name: VSCode extension issues
- name: 📚 Documentation issues
url: https://github.com/biomejs/website
about: File an issue in the website repository
- name: 🧩 VSCode extension issues
url: https://github.com/biomejs/biome-vscode
about: File an issue in the biome-vscode repository
- name: IntelliJ extension issues
- name: 🧩 IntelliJ extension issues
url: https://github.com/biomejs/biome-intellij
about: File an issue in the biome-intellij repository
- name: ✅ Linter rule requests
Expand All @@ -21,4 +24,3 @@ contact_links:
- name: 🆘 Code of Conduct Reports
url: https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct
about: Please use the contact information in Code of Conduct as issues created here are public

114 changes: 58 additions & 56 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,60 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"timezone": "Europe/Gibraltar",
"schedule": [
"before 9am on monday"
],
"extends": [
"config:best-practices"
],
"rangeStrategy": "bump",
"lockFileMaintenance": {
"enabled": false
},
"assignees": [
"@biomejs/maintainers",
"@biomejs/core-contributors"
],
"packageRules": [
{
"groupName": "github-actions",
"matchManagers": [
"github-actions"
]
},
{
"groupName": "Rust crates",
"matchManagers": [
"cargo"
],
"matchFileNames": [
"crates/**",
"xtask/**"
],
"ignoreDeps": [
"syn",
"quote"
]
},
{
"groupName": "Website",
"matchFileNames": [
"website/package.json"
],
"matchManagers": [
"npm"
]
},
{
"groupName": "@biomejs packages",
"matchFileNames": [
"packages/**"
],
"matchManagers": [
"npm"
]
}
]
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"timezone": "Europe/Gibraltar",
"schedule": [
"before 9am on monday"
],
"extends": [
"config:best-practices"
],
"rangeStrategy": "bump",
"lockFileMaintenance": {
"enabled": false
},
"assignees": [
"@biomejs/maintainers",
"@biomejs/core-contributors"
],
"packageRules": [
{
"groupName": "github-actions",
"matchManagers": [
"github-actions"
]
},
{
"groupName": "Rust crates",
"matchManagers": [
"cargo"
],
"matchFileNames": [
"crates/**",
"xtask/**"
],
"ignoreDeps": [
"syn",
"quote",
"hashbrown",
"pulldown-cmark"
]
},
{
"groupName": "Website",
"matchFileNames": [
"website/package.json"
],
"matchManagers": [
"npm"
]
},
{
"groupName": "@biomejs packages",
"matchFileNames": [
"packages/**"
],
"matchManagers": [
"npm"
]
}
]
}
28 changes: 0 additions & 28 deletions .github/workflows/ja-translation.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/parser_conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

- name: Find Previous Comment
if: github.event_name == 'pull_request'
uses: peter-evans/find-comment@d5fe37641ad8451bdd80312415672ba26c86575e # v3.0.0
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
id: previous-comment
with:
issue-number: ${{ steps.pr-number.outputs.pr }}
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches: [ main ]
name: Create Release PR

permissions:
actions: write
contents: write
pull-requests: write

jobs:
prepare-release:
if: "!contains(github.event.head_commit.message, 'chore: prepare release')" # Skip merges from releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name GitHub Actions
git config user.email [email protected]
- uses: knope-dev/action@407e9ef7c272d2dd53a4e71e39a7839e29933c48 # v2.1.0
with:
version: 0.16.2
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: knope prepare-release --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
17 changes: 0 additions & 17 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,6 @@ jobs:
- name: Run doctests
run: cargo test --doc

# fuzz-all:
# name: Build and init fuzzers
# runs-on: ubuntu-latest
# steps:
# - name: Checkout PR branch
# uses: actions/checkout@v4
# - name: Install toolchain
# uses: moonrepo/setup-rust@v1
# with:
# bins: cargo-fuzz
# - name: Run init-fuzzer
# run: bash fuzz/init-fuzzer.sh

test-node-api:
name: Test node.js API
runs-on: ubuntu-latest
Expand Down Expand Up @@ -190,10 +177,6 @@ jobs:
run: cargo codegen-schema
- name: Run the bindings codegen
run: cargo codegen-bindings
- name: Run the website codegen
run: |
cargo lintdoc
cargo codegen-website
- name: Check for git diff
run: |
if [[ `git status --porcelain` ]]; then
Expand Down
37 changes: 1 addition & 36 deletions .github/workflows/pull_request_js.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@

# Jobs run on pull request in js folders
name: Pull request JS
on:
pull_request:
branches:
- main
paths: # Only run when changes are made to js code
- 'website/**'
- 'editors/**'
# - 'crates/**'
# - 'crates/**'
- 'packages/@biomejs/js-api/**'

# Cancel jobs when the PR is updated
Expand Down Expand Up @@ -41,36 +39,3 @@ jobs:
run: |
pnpm i
pnpm run ci
type-check:
name: Type-check JS Files
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Free Disk Space
uses: ./.github/actions/free-disk-space
- name: Cache pnpm modules
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v3
- name: Install toolchain
uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f # v1
with:
cache-base: main
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build WASM module for the web
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --scope biomedev crates/biome_wasm
- name: Install libraries
run: pnpm i --filter @biomejs/website
- name: Build JS
working-directory: website
run: pnpm build:js
- name: Type check
working-directory: website
run: pnpm tsc
Loading

0 comments on commit ef55efe

Please sign in to comment.