Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript ruleset does not work standalone only in combination with prettier #95

Open
beuluis opened this issue Dec 4, 2024 · 0 comments

Comments

@beuluis
Copy link
Contributor

beuluis commented Dec 4, 2024

When i run it with this Config:

const typescript = require('eslint-config-canonical/configurations/typescript');
const canonicalBase = require('eslint-config-canonical/configurations/canonical');

module.exports = [
    canonicalBase.recommended,
    typescript.recommended,
];

It fails with:

Oops! Something went wrong! :(

ESLint: 9.16.0

TypeError: Key "rules": Key "@typescript-eslint/object-curly-spacing": Could not find "object-curly-spacing" in plugin "@typescript-eslint". Did you mean "@/object-curly-spacing"?

But this config runs for some reason:

const typescript = require('eslint-config-canonical/configurations/typescript');
const canonicalBase = require('eslint-config-canonical/configurations/canonical');
const prettier = require('eslint-config-canonical/configurations/prettier');

module.exports = [
    canonicalBase.recommended,
    typescript.recommended,
    prettier.recommended,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant