Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: add oxlint (#4867)

EYHNecd5db295260
diff --git a/.eslintrc.js b/.eslintrc.js
index edd56de215..e0f1244bc4 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -127,6 +127,7 @@ const config = {
'no-constant-binary-expression': 'error',
'no-constructor-return': 'error',
'react/prop-types': 'off',
+ 'react/jsx-no-useless-fragment': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-explicit-any': 'off',
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bf200a6a57..bd81063069 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -42,6 +42,9 @@ jobs:
steps:
- uses: actions/checkout@v4
+ - name: Run oxlint
+ # oxlint is fast, so wrong code will fail quickly
+ run: yarn dlx oxlint@latest .
- name: Setup Node.js
uses: ./.github/actions/setup-node
with: