diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4515cd..08740d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.prettierignore b/.prettierignore index dee70d2..57481c5 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ dist pnpm-lock.yaml +package.json \ No newline at end of file diff --git a/packages/filter/.eslintrc.cjs b/packages/filter/.eslintrc.cjs index d6c9537..6e8698b 100644 --- a/packages/filter/.eslintrc.cjs +++ b/packages/filter/.eslintrc.cjs @@ -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 }, ], }, -} +}; diff --git a/packages/filter/src/hooks/use-filter-group.ts b/packages/filter/src/hooks/use-filter-group.ts index 102df7e..ac2f508 100644 --- a/packages/filter/src/hooks/use-filter-group.ts +++ b/packages/filter/src/hooks/use-filter-group.ts @@ -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; }