ci: add oxlint (#4867)

This commit is contained in:
EYHN authored and GitHub committed 2023-11-08 17:54:41 +08:00
1 parent 744cd47481
commit ecd5db2952
2 files changed
+4

No files matched your search

+1
View File
@@ -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',
+3
View File
@@ -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: