@speechanddebate/eslint-config-nsda 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -2,6 +2,7 @@ import eslint from '@eslint/js';
2
2
  import tseslint from 'typescript-eslint';
3
3
  import eslintConfigPrettier from 'eslint-config-prettier';
4
4
  import eslintPluginSvelte from 'eslint-plugin-svelte';
5
+ import eslintPluginQuery from '@tanstack/eslint-plugin-query';
5
6
 
6
7
  import ignores from './configs/ignores.js';
7
8
  import globals from './configs/globals.js';
@@ -29,6 +30,7 @@ export const plugins = {
29
30
  import: importPlugin,
30
31
  importTypescript: importTypescriptPlugin,
31
32
  svelte: eslintPluginSvelte,
33
+ query: eslintPluginQuery,
32
34
  };
33
35
 
34
36
  export const rules = {
@@ -69,6 +71,7 @@ const react = [
69
71
  vitestPlugin,
70
72
  ...testingLibraryPlugin,
71
73
  importPlugin,
74
+ ...eslintPluginQuery.configs['flat/recommended'],
72
75
 
73
76
  baseRules,
74
77
  importRules,
@@ -116,6 +119,7 @@ const typeCheckedWithReact = tseslint.config(
116
119
  ...testingLibraryPlugin,
117
120
  importPlugin,
118
121
  ...importTypescriptPlugin,
122
+ ...eslintPluginQuery.configs['flat/recommended'],
119
123
 
120
124
  baseRules,
121
125
  importRules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speechanddebate/eslint-config-nsda",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "NSDA ESLint config",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,6 +26,7 @@
26
26
  "eslint": "^8.57.0"
27
27
  },
28
28
  "dependencies": {
29
+ "@tanstack/eslint-plugin-query": "^5.60.1",
29
30
  "eslint-config-airbnb": "^19.0.4",
30
31
  "eslint-config-airbnb-base": "^15.0.0",
31
32
  "eslint-config-prettier": "^9.1.0",