@jarsec/eslint-config 6.2.3 → 6.4.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,36 @@
1
1
  # @jarsec/eslint-config
2
2
 
3
+ ## 6.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9971bf1: Migrate `tseslint.config()` to eslint's built-in `defineConfig`
8
+
9
+ ### Patch Changes
10
+
11
+ - 03d3594: chore(deps): update dependency eslint-plugin-n to ^17.23.1
12
+ - 6bd3a5e: chore(deps): update dependency typescript to ^5.9.2
13
+ - f6ec699: chore(deps): update eslint monorepo to ^9.39.1
14
+ - 88b4269: chore(deps): update dependency typescript to ^5.9.3
15
+ - 847ac77: chore(deps): update dependency globals to ^16.5.0
16
+ - c0e0cbd: chore(deps): update dependency eslint-plugin-unicorn to v62
17
+ - f6e5d54: chore(deps): update eslint monorepo to ^9.34.0
18
+ - ac491c7: chore(deps): update dependency typescript-eslint to ^8.42.0
19
+ - 137a191: chore(deps): update dependency typescript-eslint to ^8.49.0
20
+
21
+ ## 6.3.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 023a087: Disable unpublished import errors for tsdown config files
26
+ - 8b8f376: Add react eslint config
27
+
28
+ ### Patch Changes
29
+
30
+ - 9f170ce: chore(deps): update dependency typescript-eslint to ^8.36.0
31
+ - cc1d078: chore(deps): update dependency eslint-plugin-n to ^17.21.3
32
+ - 6e684cf: chore(deps): update dependency eslint-plugin-n to ^17.21.0
33
+
3
34
  ## 6.2.3
4
35
 
5
36
  ### Patch Changes
@@ -65,7 +96,6 @@
65
96
  ### Major Changes
66
97
 
67
98
  - bc38fb2: Update to ESLint v9
68
-
69
99
  - Bump ESLint dependencies to support the v9 migration.
70
100
  - Update config file to flat config format.
71
101
  - Drop eslint-plugin-import until they can get their lives together.
@@ -90,7 +120,6 @@
90
120
  - c703d78: Refactor eslint configuration
91
121
 
92
122
  Version 5 brings the following changes:
93
-
94
123
  - Removal of xo and xo-typescript
95
124
  - Separation of javascript and typescript rules
96
125
  - Introduction of @stylistic/eslint-plugin and associated rules (to replace dprint/prettier)
@@ -5,9 +5,10 @@ import stylistic from '@stylistic/eslint-plugin';
5
5
  import nodePlugin from 'eslint-plugin-n';
6
6
  import perfectionist from 'eslint-plugin-perfectionist';
7
7
  import unicorn from 'eslint-plugin-unicorn';
8
+ import { defineConfig } from 'eslint/config';
8
9
  import tseslint from 'typescript-eslint';
9
10
 
10
- export default tseslint.config(
11
+ export default defineConfig([
11
12
  eslint.configs.recommended,
12
13
  ...tseslint.configs.recommended,
13
14
  ...tseslint.configs.stylistic,
@@ -50,10 +51,11 @@ export default tseslint.config(
50
51
  files: [
51
52
  'eslint.config.js',
52
53
  'drizzle.config.ts',
54
+ 'tsdown.config.ts',
53
55
  '**/*.test.ts',
54
56
  ],
55
57
  rules: {
56
58
  'n/no-unpublished-import': 'off',
57
59
  },
58
60
  },
59
- );
61
+ ]);
@@ -0,0 +1,39 @@
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 { defineConfig } from 'eslint/config';
8
+ import globals from 'globals';
9
+ import tseslint from 'typescript-eslint';
10
+
11
+ import baseConfig from './base.mjs';
12
+
13
+ export default defineConfig([
14
+ ...baseConfig,
15
+ js.configs.recommended,
16
+ eslintConfigPrettier,
17
+ ...tseslint.configs.recommended,
18
+ reactPlugin.configs.flat.recommended,
19
+ {
20
+ languageOptions: {
21
+ ...reactPlugin.configs.flat.recommended.languageOptions,
22
+ globals: {
23
+ ...globals.serviceworker,
24
+ ...globals.browser,
25
+ },
26
+ },
27
+ },
28
+ {
29
+ plugins: {
30
+ 'react-hooks': hooksPlugin,
31
+ },
32
+ rules: {
33
+ ...hooksPlugin.configs.recommended.rules,
34
+ // React scope no longer necessary with new JSX transform.
35
+ 'react/react-in-jsx-scope': 'off',
36
+ },
37
+ settings: { react: { version: 'detect' } },
38
+ },
39
+ ]);
package/package.json CHANGED
@@ -1,27 +1,37 @@
1
1
  {
2
2
  "name": "@jarsec/eslint-config",
3
- "version": "6.2.3",
3
+ "version": "6.4.0",
4
4
  "description": "jsec's eslint configurations",
5
5
  "author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
6
6
  "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/jsec/code-quality-tools.git",
10
+ "directory": "packages/eslint-config"
11
+ },
7
12
  "publishConfig": {
8
- "access": "public"
13
+ "access": "public",
14
+ "provenance": true
9
15
  },
10
16
  "exports": {
11
- ".": "./index.mjs"
17
+ ".": "./configs/base.mjs",
18
+ "./react": "./configs/react.mjs"
12
19
  },
13
20
  "dependencies": {
14
- "@eslint/js": "^9.25.1",
21
+ "@eslint/js": "^9.39.1",
15
22
  "@stylistic/eslint-plugin": "^4.4.1",
16
- "eslint-plugin-n": "^17.17.0",
17
- "eslint-plugin-perfectionist": "^4.15.0",
18
- "eslint-plugin-unicorn": "^59.0.1",
19
- "typescript-eslint": "^8.31.1"
23
+ "eslint": "^9.39.1",
24
+ "eslint-plugin-n": "^17.23.1",
25
+ "eslint-plugin-perfectionist": "^4.15.1",
26
+ "eslint-plugin-react": "^7.37.5",
27
+ "eslint-plugin-react-hooks": "^5.2.0",
28
+ "eslint-plugin-unicorn": "^62.0.0",
29
+ "globals": "^16.5.0",
30
+ "typescript-eslint": "^8.49.0"
20
31
  },
21
32
  "devDependencies": {
22
- "@types/node": "^22.16.0",
23
- "eslint": "^9.25.1",
24
- "typescript": "^5.8.3"
33
+ "@types/node": "^22.19.1",
34
+ "typescript": "^5.9.3"
25
35
  },
26
36
  "peerDependencies": {
27
37
  "eslint": "^9.13.0",