Skip to content

Unable to import in betterer config file #1249

@lethanhan97

Description

@lethanhan97

Hey guys,

When setting up a betterer config for a Node 20 with Typescript and Eslint project, I run into the following issue

BettererError: could not import config from "/project/betterer/betterer.ts". 😔

Here is the betterer setup

import { eslint } from '@betterer/eslint';

export default {
  'no deprecated API usage': eslint({
    rules: {
      'deprecation/deprecation': 'error'
    }
  }).include('./src/**/*.ts')
};

It seems that betterer is trying to import, but fails at the import line

Betterer 6, Node 20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions