diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..ec72b51 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: lint + +on: + push: + branches: + - main + - develop + pull_request: + branches: + - main + - develop + types: + - opened + - synchronize + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Lint JSON and YAML files + id: json-yaml-validate + uses: GrantBirki/json-yaml-validate@v3.3.2 + with: + comment: "true" # enable comment mode diff --git a/biomeV2.json b/biomeV2.json index 3ce4d0e..6907177 100644 --- a/biomeV2.json +++ b/biomeV2.json @@ -69,6 +69,9 @@ "noUnusedImports": "error", "noUnusedFunctionParameters": "error", "noUnusedPrivateClassMembers": "error" + }, + "nursery": { + "noImportCycles": "error" } }, "includes": [