Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Jul 25, 2024
1 parent 0a1281c commit 3324dec
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
path: "./packages/playground/dist"

- name: Deploy GitHub Pages
if: github.ref == 'refs/heads/main'
# https://github.com/actions/deploy-pages
uses: actions/deploy-pages@v4
# - name: Deploy GitHub Pages
# if: github.ref == 'refs/heads/main'
# # https://github.com/actions/deploy-pages
# uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
pnpm-lock.yaml
package.json
18 changes: 9 additions & 9 deletions packages/filter/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
'react-refresh/only-export-components': [
'warn',
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
}
};
2 changes: 1 addition & 1 deletion packages/filter/src/hooks/use-filter-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const useFilterGroup = (ruleGroup: LooseFilterGroup) => {

const toggleGroupOp = (op?: LooseFilterGroup["op"]) => {
const oldOp = ruleGroup.op;
const newOp = op ?? ruleGroup.op === "and" ? "or" : "and";
const newOp = (op ?? ruleGroup.op === "and") ? "or" : "and";
if (oldOp === newOp) {
return;
}
Expand Down

0 comments on commit 3324dec

Please sign in to comment.