Skip to content

Eslint 10 compatilibity #325

@blikblum

Description

@blikblum

Is your feature request related to a problem? Please describe.
Current version does not work with ESLint 10

Describe the solution you'd like
Make compatible with ESLint 10

Describe alternatives you've considered
Keep using ESLint 9
Disable MOCHA linting

Additional context
When running with ESLint 10 the following error occurs in eslint-plugin-mocha

eslint-config-oclif depends on eslint-plugin-mocha v10. AFAIK eslint-plugin-mocha v11 removed call to context.getSourceCode

TypeError: context.getSourceCode is not a function
Occurred while linting /home/luiz/repositories/XXX/cli/src/helpers/parser.test.ts:52
Rule: "mocha/consistent-spacing-between-blocks"
at CallExpression (/home/luiz/repositories/XXX/node_modules/eslint-plugin-mocha/lib/rules/consistent-spacing-between-blocks.js:56:41)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions