@medplum/eslint-config 3.2.3 → 3.2.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.
- package/index.cjs +7 -3
- package/package.json +5 -5
package/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ module.exports = {
|
|
|
21
21
|
'no-promise-executor-return': 'error',
|
|
22
22
|
'no-self-compare': 'error',
|
|
23
23
|
'no-template-curly-in-string': 'error',
|
|
24
|
+
'no-throw-literal': 'error',
|
|
24
25
|
'no-unmodified-loop-condition': 'error',
|
|
25
26
|
'no-unreachable-loop': 'error',
|
|
26
27
|
'no-unused-private-class-members': 'error',
|
|
@@ -104,9 +105,6 @@ module.exports = {
|
|
|
104
105
|
'@typescript-eslint/prefer-ts-expect-error': 'off', // We must use @ts-ignore for optional dependencies in type definitions
|
|
105
106
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
106
107
|
'@typescript-eslint/unified-signatures': 'error',
|
|
107
|
-
// TypeScript extensions for base rules
|
|
108
|
-
'no-throw-literal': 'off',
|
|
109
|
-
'@typescript-eslint/no-throw-literal': 'error',
|
|
110
108
|
|
|
111
109
|
'no-useless-constructor': 'off',
|
|
112
110
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
@@ -117,9 +115,14 @@ module.exports = {
|
|
|
117
115
|
{
|
|
118
116
|
argsIgnorePattern: '^_',
|
|
119
117
|
varsIgnorePattern: '^_',
|
|
118
|
+
caughtErrors: 'all',
|
|
119
|
+
caughtErrorsIgnorePattern: '^_',
|
|
120
120
|
},
|
|
121
121
|
],
|
|
122
122
|
|
|
123
|
+
// React Hooks
|
|
124
|
+
'react-hooks/exhaustive-deps': 'error',
|
|
125
|
+
|
|
123
126
|
// React Refresh
|
|
124
127
|
'react-refresh/only-export-components': 'warn',
|
|
125
128
|
|
|
@@ -131,6 +134,7 @@ module.exports = {
|
|
|
131
134
|
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
132
135
|
'@typescript-eslint/no-unnecessary-condition': 'off',
|
|
133
136
|
'@typescript-eslint/no-dynamic-delete': 'off',
|
|
137
|
+
'@typescript-eslint/no-empty-object-type': 'off',
|
|
134
138
|
|
|
135
139
|
// JSDoc
|
|
136
140
|
'jsdoc/check-tag-names': [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/eslint-config",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "Shared ESLint configuration for Medplum projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"author": "Medplum <hello@medplum.com>",
|
|
20
20
|
"main": "index.cjs",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "
|
|
23
|
-
"@typescript-eslint/parser": "
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "8.0.1",
|
|
23
|
+
"@typescript-eslint/parser": "8.0.1",
|
|
24
24
|
"eslint": "8.57.0",
|
|
25
|
-
"eslint-plugin-jsdoc": "48.
|
|
25
|
+
"eslint-plugin-jsdoc": "48.11.0",
|
|
26
26
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
27
|
-
"eslint-plugin-react-refresh": "0.4.
|
|
27
|
+
"eslint-plugin-react-refresh": "0.4.9"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "^7",
|