@medplum/eslint-config 2.1.4 → 2.1.5

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.
Files changed (2) hide show
  1. package/index.cjs +4 -1
  2. package/package.json +3 -2
package/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  parser: '@typescript-eslint/parser',
3
- plugins: ['@typescript-eslint'],
3
+ plugins: ['@typescript-eslint', 'react-refresh'],
4
4
  extends: [
5
5
  'eslint:recommended',
6
6
  'plugin:@typescript-eslint/recommended',
@@ -120,6 +120,9 @@ module.exports = {
120
120
  },
121
121
  ],
122
122
 
123
+ // React Refresh
124
+ 'react-refresh/only-export-components': 'warn',
125
+
123
126
  // Disable warnings from typescript-eslint:strict
124
127
  '@typescript-eslint/non-nullable-type-assertion-style': 'off',
125
128
  '@typescript-eslint/dot-notation': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/eslint-config",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "Shared ESLint configuration for Medplum projects",
5
5
  "main": "index.cjs",
6
6
  "repository": {
@@ -33,6 +33,7 @@
33
33
  "@typescript-eslint/parser": "6.7.0",
34
34
  "eslint": "8.49.0",
35
35
  "eslint-plugin-jsdoc": "46.8.1",
36
- "eslint-plugin-react-hooks": "4.6.0"
36
+ "eslint-plugin-react-hooks": "4.6.0",
37
+ "eslint-plugin-react-refresh": "0.4.3"
37
38
  }
38
39
  }