Skip to content

Commit

Permalink
Merge pull request #11 from klarna-incubator/fixes-eslint-mjs-file-im…
Browse files Browse the repository at this point in the history
…ports

Fixes mjs files import
  • Loading branch information
katrotz authored Sep 2, 2024
2 parents 864debc + 1147273 commit c9ff9ab
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ import typescriptEslint from 'typescript-eslint'
/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
javascriptEslint.configs.recommended,
pluginNode.configs['flat/recommended-script'],
...typescriptEslint.configs.recommended,

{
settings: {
jest: {
version: 29,
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
ignores: ['**/node_modules', '**/dist', '**/coverage'],
},
Expand Down Expand Up @@ -76,4 +80,10 @@ export default [
'@typescript-eslint/no-explicit-any': ['warn'],
},
},

/* Node files */
{
files: ['**/*.mjs'],
...pluginNode.configs['flat/recommended-script'],
},
]

0 comments on commit c9ff9ab

Please sign in to comment.