@jarsec/eslint-config 6.2.3 → 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,18 @@
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
+
3
16
  ## 6.2.3
4
17
 
5
18
  ### Patch Changes
@@ -65,7 +78,6 @@
65
78
  ### Major Changes
66
79
 
67
80
  - bc38fb2: Update to ESLint v9
68
-
69
81
  - Bump ESLint dependencies to support the v9 migration.
70
82
  - Update config file to flat config format.
71
83
  - Drop eslint-plugin-import until they can get their lives together.
@@ -90,7 +102,6 @@
90
102
  - c703d78: Refactor eslint configuration
91
103
 
92
104
  Version 5 brings the following changes:
93
-
94
105
  - Removal of xo and xo-typescript
95
106
  - Separation of javascript and typescript rules
96
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.3",
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
+ "@eslint/js": "^9.32.0",
15
16
  "@stylistic/eslint-plugin": "^4.4.1",
16
- "eslint-plugin-n": "^17.17.0",
17
+ "eslint-plugin-n": "^17.21.3",
17
18
  "eslint-plugin-perfectionist": "^4.15.0",
19
+ "eslint-plugin-react": "^7.37.5",
20
+ "eslint-plugin-react-hooks": "^5.2.0",
18
21
  "eslint-plugin-unicorn": "^59.0.1",
19
- "typescript-eslint": "^8.31.1"
22
+ "typescript-eslint": "^8.36.0"
20
23
  },
21
24
  "devDependencies": {
22
25
  "@types/node": "^22.16.0",
23
- "eslint": "^9.25.1",
26
+ "eslint": "^9.32.0",
27
+ "globals": "^16.3.0",
24
28
  "typescript": "^5.8.3"
25
29
  },
26
30
  "peerDependencies": {