@jarsec/eslint-config 7.0.1 → 7.1.0
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.
- package/CHANGELOG.md +6 -0
- package/configs/react.js +25 -21
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
package/configs/react.js
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import eslint from '@eslint/js';
|
|
3
|
-
import { defineConfig } from 'eslint/config';
|
|
4
|
-
import tseslint from 'typescript-eslint';
|
|
1
|
+
// @ts-check
|
|
5
2
|
|
|
6
|
-
import
|
|
3
|
+
import eslintReact from '@eslint-react/eslint-plugin';
|
|
4
|
+
import tanstackQuery from '@tanstack/eslint-plugin-query';
|
|
5
|
+
import tanstackRouter from '@tanstack/eslint-plugin-router';
|
|
6
|
+
import globals from 'globals';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
import base from './base.js';
|
|
9
|
+
|
|
10
|
+
export default [
|
|
11
|
+
...base,
|
|
12
|
+
eslintReact.configs['recommended-type-checked'],
|
|
13
|
+
...tanstackQuery.configs['flat/recommended'],
|
|
14
|
+
...tanstackRouter.configs['flat/recommended'],
|
|
9
15
|
{
|
|
10
|
-
extends: [
|
|
11
|
-
eslint.configs.recommended,
|
|
12
|
-
tseslint.configs.recommended,
|
|
13
|
-
...baseConfig,
|
|
14
|
-
react.configs['recommended-typescript'],
|
|
15
|
-
],
|
|
16
|
-
files: ['**/*.ts', '**/*.tsx'],
|
|
17
16
|
languageOptions: {
|
|
18
|
-
|
|
19
|
-
parserOptions: {
|
|
20
|
-
projectService: true,
|
|
21
|
-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
|
|
22
|
-
tsconfigRootDir: import.meta.dirname,
|
|
23
|
-
},
|
|
17
|
+
globals: globals.browser,
|
|
24
18
|
},
|
|
19
|
+
},
|
|
20
|
+
{
|
|
25
21
|
rules: {
|
|
26
|
-
'@eslint-react/no-
|
|
22
|
+
'@eslint-react/no-array-index-key': 'error',
|
|
23
|
+
'@eslint-react/no-leaked-conditional-rendering': 'error',
|
|
24
|
+
'@eslint-react/no-missing-key': 'error',
|
|
25
|
+
'@eslint-react/prefer-destructuring-assignment': 'error',
|
|
26
|
+
'@eslint-react/prefer-read-only-props': 'error',
|
|
27
|
+
'n/no-missing-import': 'off',
|
|
28
|
+
'n/no-unpublished-import': 'off',
|
|
29
|
+
'n/no-unsupported-features/node-builtins': 'off',
|
|
30
|
+
'unicorn/no-anonymous-default-export': 'error',
|
|
27
31
|
},
|
|
28
32
|
},
|
|
29
|
-
|
|
33
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarsec/eslint-config",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "jsec's eslint configurations",
|
|
6
6
|
"author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"@eslint-react/eslint-plugin": "^2.13.0",
|
|
23
23
|
"@eslint/js": "^10.0.1",
|
|
24
24
|
"@stylistic/eslint-plugin": "^5.9.0",
|
|
25
|
+
"@tanstack/eslint-plugin-query": "^5.91.4",
|
|
26
|
+
"@tanstack/eslint-plugin-router": "^1.161.4",
|
|
25
27
|
"eslint": "^10.0.2",
|
|
26
28
|
"eslint-plugin-n": "^17.24.0",
|
|
27
29
|
"eslint-plugin-perfectionist": "^5.6.0",
|