mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-30 13:20:45 +08:00
ci: add oxlint (#4867)
This commit is contained in:
@@ -127,6 +127,7 @@ const config = {
|
|||||||
'no-constant-binary-expression': 'error',
|
'no-constant-binary-expression': 'error',
|
||||||
'no-constructor-return': 'error',
|
'no-constructor-return': 'error',
|
||||||
'react/prop-types': 'off',
|
'react/prop-types': 'off',
|
||||||
|
'react/jsx-no-useless-fragment': 'error',
|
||||||
'@typescript-eslint/consistent-type-imports': 'error',
|
'@typescript-eslint/consistent-type-imports': 'error',
|
||||||
'@typescript-eslint/no-non-null-assertion': 'error',
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Setup Node.js
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user