Skip to content

Commit 3417a40

Browse files
committed
chore: add Query ESLint Plugin usage
1 parent f834652 commit 3417a40

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/react-client/eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import openAPIQraftConfig from '@openapi-qraft/eslint-config/eslint.vanilla.config';
2+
import pluginQraftQuery from '@openapi-qraft/eslint-plugin-query';
23
import reactCompiler from 'eslint-plugin-react-compiler';
34
import globals from 'globals';
45

56
export default [
67
{ ignores: ['src/tests/fixtures/api/**/*'] },
78
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
9+
...pluginQraftQuery.configs['flat/recommended'],
810
...openAPIQraftConfig,
911
{
1012
ignores: [

packages/react-client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"devDependencies": {
2525
"@openapi-qraft/cli": "workspace:*",
2626
"@openapi-qraft/eslint-config": "workspace:*",
27+
"@openapi-qraft/eslint-plugin-query": "workspace:*",
2728
"@openapi-qraft/openapi-typescript-plugin": "workspace:^",
2829
"@openapi-qraft/rollup-config": "workspace:*",
2930
"@openapi-qraft/tanstack-query-react-plugin": "workspace:*",

0 commit comments

Comments
 (0)