Skip to content

Commit

Permalink
fix(config): fixed import/no-default-export
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaPontrandolfo committed Aug 20, 2024
1 parent f11f04a commit 79058a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/eslint-config-sheriff/src/getBaseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,14 @@ export const getBaseConfig = (
files: [supportedFileTypes],
plugins: { import: fixupPluginRules(pluginImport) },
rules: importHandPickedRules,
languageOptions: {
parserOptions: {
sourceType: 'module', // required for https://github.com/import-js/eslint-plugin-import/blob/09476d7dac1ab36668283f9626f85e2223652b37/src/rules/no-default-export.js#L16
},
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
'@typescript-eslint/parser': ['.ts', '.tsx', '.mts'],
espree: ['.js'],
},
'import/resolver': {
Expand Down

0 comments on commit 79058a5

Please sign in to comment.