@jarsec/eslint-config 7.0.0 → 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 +14 -0
- package/configs/react.js +25 -21
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @jarsec/eslint-config
|
|
2
2
|
|
|
3
|
+
## 7.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c63b2f9: Update React config to support TanStack configs
|
|
8
|
+
|
|
9
|
+
## 7.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a831c22: fix(deps): update dependency @stylistic/eslint-plugin to ^5.9.0
|
|
14
|
+
- 6b7c3ee: fix(deps): update eslint
|
|
15
|
+
- 55c0da7: fix(deps): update dependency eslint-plugin-perfectionist to ^5.6.0
|
|
16
|
+
|
|
3
17
|
## 7.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
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.
|
|
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>",
|
|
@@ -21,20 +21,22 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eslint-react/eslint-plugin": "^2.13.0",
|
|
23
23
|
"@eslint/js": "^10.0.1",
|
|
24
|
-
"@stylistic/eslint-plugin": "^5.
|
|
25
|
-
"eslint": "^
|
|
24
|
+
"@stylistic/eslint-plugin": "^5.9.0",
|
|
25
|
+
"@tanstack/eslint-plugin-query": "^5.91.4",
|
|
26
|
+
"@tanstack/eslint-plugin-router": "^1.161.4",
|
|
27
|
+
"eslint": "^10.0.2",
|
|
26
28
|
"eslint-plugin-n": "^17.24.0",
|
|
27
|
-
"eslint-plugin-perfectionist": "^5.
|
|
29
|
+
"eslint-plugin-perfectionist": "^5.6.0",
|
|
28
30
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
29
31
|
"globals": "^17.3.0",
|
|
30
|
-
"typescript-eslint": "^8.56.
|
|
32
|
+
"typescript-eslint": "^8.56.1"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^24.10.
|
|
35
|
+
"@types/node": "^24.10.15",
|
|
34
36
|
"typescript": "^5.9.3"
|
|
35
37
|
},
|
|
36
38
|
"peerDependencies": {
|
|
37
|
-
"eslint": "^10.0.
|
|
39
|
+
"eslint": "^10.0.2",
|
|
38
40
|
"typescript": "^5.9.3"
|
|
39
41
|
},
|
|
40
42
|
"scripts": {
|