@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 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)
@@ -50,6 +50,7 @@ export default tseslint.config(
50
50
  files: [
51
51
  'eslint.config.js',
52
52
  'drizzle.config.ts',
53
+ 'tsdown.config.ts',
53
54
  '**/*.test.ts',
54
55
  ],
55
56
  rules: {
@@ -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.2.2",
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
- ".": "./index.mjs"
11
+ ".": "./configs/base.mjs",
12
+ "./react": "./configs/react.mjs"
12
13
  },
13
14
  "dependencies": {
14
- "@eslint/js": "^9.25.1",
15
- "@stylistic/eslint-plugin": "^4.4.0",
16
- "eslint-plugin-n": "^17.17.0",
17
- "eslint-plugin-perfectionist": "^4.12.3",
18
- "eslint-plugin-unicorn": "^57.0.0",
19
- "typescript-eslint": "^8.31.1"
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": "^20.17.57",
23
- "eslint": "^9.25.1",
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": {