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

extends conflict #1250

Closed
jason-ivy opened this issue May 7, 2021 · 1 comment
Closed

extends conflict #1250

jason-ivy opened this issue May 7, 2021 · 1 comment

Comments

@jason-ivy
Copy link

.eslintrc.js

module.exports = {
  extends: "eslint-config-egg/typescript",
  parserOptions: {
    project: "./tsconfig.json"
  },
  rules: {
    indent: ["error", 4]
  }
}

image

after fixed it,still error

image

@dbaeumer
Copy link
Member

To my knowledge you need to disabled the default eslint ident rule when using a specific typescript rule. I always do something like

		"indent": "off",
		"@typescript-eslint/indent": ["warn", "tab", { "SwitchCase": 1 } ]

This is how it is documented by the typescript-eslint plugin.

Please ping if this doesn't solve the issue.

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

2 participants