Skip to content

Commit c750486

Browse files
committed
Fix ESLint extension rule for package imports
Use ignorePackages mode to allow package imports without extensions while still requiring extensions for relative imports
1 parent 2d7f4e0 commit c750486

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.config/eslint.config.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,9 @@ export default [
225225
'import-x/no-unresolved': 'off',
226226
'import-x/extensions': [
227227
'error',
228-
'never',
228+
'ignorePackages',
229229
{
230-
js: 'always',
231230
json: 'always',
232-
ts: 'ignorePackages',
233-
mts: 'ignorePackages',
234231
},
235232
],
236233
},

scripts/claude.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { fileURLToPath } from 'node:url'
1111

1212
import colors from 'yoctocolors-cjs'
1313

14-
import { parseArgs } from '@socketsecurity/lib/argv/parse.js'
14+
import { parseArgs } from '@socketsecurity/lib/argv/parse'
1515

1616
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1717
const rootPath = path.join(__dirname, '..')

src/objects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Provides object validation and recursive freezing utilities.
44
*/
55

6-
import { isObject } from '@socketsecurity/lib/objects.js'
6+
import { isObject } from '@socketsecurity/lib/objects'
77

88
import { LOOP_SENTINEL } from './constants.js'
99

0 commit comments

Comments
 (0)