@jarsec/eslint-config 6.2.2 → 6.3.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 +22 -2
- package/{index.mjs → configs/base.mjs} +1 -0
- package/configs/react.mjs +38 -0
- package/package.json +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @jarsec/eslint-config
|
|
2
2
|
|
|
3
|
+
## 6.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 023a087: Disable unpublished import errors for tsdown config files
|
|
8
|
+
- 8b8f376: Add react eslint config
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 9f170ce: chore(deps): update dependency typescript-eslint to ^8.36.0
|
|
13
|
+
- cc1d078: chore(deps): update dependency eslint-plugin-n to ^17.21.3
|
|
14
|
+
- 6e684cf: chore(deps): update dependency eslint-plugin-n to ^17.21.0
|
|
15
|
+
|
|
16
|
+
## 6.2.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 2f45440: Update @types/node to v22
|
|
21
|
+
- 8e49865: chore(deps): update dependency eslint-plugin-perfectionist to ^4.15.0
|
|
22
|
+
- a67977d: chore(deps): update dependency @stylistic/eslint-plugin to ^4.4.1
|
|
23
|
+
- c462cc1: chore(deps): update dependency eslint-plugin-unicorn to v59
|
|
24
|
+
|
|
3
25
|
## 6.2.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -56,7 +78,6 @@
|
|
|
56
78
|
### Major Changes
|
|
57
79
|
|
|
58
80
|
- bc38fb2: Update to ESLint v9
|
|
59
|
-
|
|
60
81
|
- Bump ESLint dependencies to support the v9 migration.
|
|
61
82
|
- Update config file to flat config format.
|
|
62
83
|
- Drop eslint-plugin-import until they can get their lives together.
|
|
@@ -81,7 +102,6 @@
|
|
|
81
102
|
- c703d78: Refactor eslint configuration
|
|
82
103
|
|
|
83
104
|
Version 5 brings the following changes:
|
|
84
|
-
|
|
85
105
|
- Removal of xo and xo-typescript
|
|
86
106
|
- Separation of javascript and typescript rules
|
|
87
107
|
- Introduction of @stylistic/eslint-plugin and associated rules (to replace dprint/prettier)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
import js from '@eslint/js';
|
|
4
|
+
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
5
|
+
import reactPlugin from 'eslint-plugin-react';
|
|
6
|
+
import hooksPlugin from 'eslint-plugin-react-hooks';
|
|
7
|
+
import globals from 'globals';
|
|
8
|
+
import tseslint from 'typescript-eslint';
|
|
9
|
+
|
|
10
|
+
import baseConfig from './base.mjs';
|
|
11
|
+
|
|
12
|
+
export default tseslint.config(
|
|
13
|
+
...baseConfig,
|
|
14
|
+
js.configs.recommended,
|
|
15
|
+
eslintConfigPrettier,
|
|
16
|
+
...tseslint.configs.recommended,
|
|
17
|
+
reactPlugin.configs.flat.recommended,
|
|
18
|
+
{
|
|
19
|
+
languageOptions: {
|
|
20
|
+
...reactPlugin.configs.flat.recommended.languageOptions,
|
|
21
|
+
globals: {
|
|
22
|
+
...globals.serviceworker,
|
|
23
|
+
...globals.browser,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
plugins: {
|
|
29
|
+
'react-hooks': hooksPlugin,
|
|
30
|
+
},
|
|
31
|
+
rules: {
|
|
32
|
+
...hooksPlugin.configs.recommended.rules,
|
|
33
|
+
// React scope no longer necessary with new JSX transform.
|
|
34
|
+
'react/react-in-jsx-scope': 'off',
|
|
35
|
+
},
|
|
36
|
+
settings: { react: { version: 'detect' } },
|
|
37
|
+
},
|
|
38
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarsec/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "jsec's eslint configurations",
|
|
5
5
|
"author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,19 +8,23 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
|
-
".": "./
|
|
11
|
+
".": "./configs/base.mjs",
|
|
12
|
+
"./react": "./configs/react.mjs"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@eslint/js": "^9.
|
|
15
|
-
"@stylistic/eslint-plugin": "^4.4.
|
|
16
|
-
"eslint-plugin-n": "^17.
|
|
17
|
-
"eslint-plugin-perfectionist": "^4.
|
|
18
|
-
"eslint-plugin-
|
|
19
|
-
"
|
|
15
|
+
"@eslint/js": "^9.32.0",
|
|
16
|
+
"@stylistic/eslint-plugin": "^4.4.1",
|
|
17
|
+
"eslint-plugin-n": "^17.21.3",
|
|
18
|
+
"eslint-plugin-perfectionist": "^4.15.0",
|
|
19
|
+
"eslint-plugin-react": "^7.37.5",
|
|
20
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
21
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
22
|
+
"typescript-eslint": "^8.36.0"
|
|
20
23
|
},
|
|
21
24
|
"devDependencies": {
|
|
22
|
-
"@types/node": "^
|
|
23
|
-
"eslint": "^9.
|
|
25
|
+
"@types/node": "^22.16.0",
|
|
26
|
+
"eslint": "^9.32.0",
|
|
27
|
+
"globals": "^16.3.0",
|
|
24
28
|
"typescript": "^5.8.3"
|
|
25
29
|
},
|
|
26
30
|
"peerDependencies": {
|