-
Notifications
You must be signed in to change notification settings - Fork 93
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
Error in codeclimate: Configuration for rule "import/order" is invalid #498
Comments
Hello ! |
Same here! Did found solution? |
No. I asked CodeClimate weeks ago, but without an answer yet. |
For those getting this issue, I'm getting the same issue using GitLab CI's code quality jobs (which is just a wrapper around the codeclimate docker image), but noticed that I don't get it if my dependencies are there (i.e. |
I'm also using Gilab's CI and I solve the erros creating my own Here is what I did: plugins:
duplication:
enabled: true
config:
count_threshold: 3
eslint:
enabled: true
channel: "eslint-7"
config:
config: ./.eslintrc.js
extensions:
- .ts
- .tsx
exclude_patterns:
- "__mocks__/"
- "**/tests/"
- "**/__tests__/"
- "**.test.tsx"
- "**.test.ts"
- "README.md"
- "**.min.css"
- "**.min.js"
- "node_modules/"
- "public/" |
@belfortmaycon I did have a |
it seems that eslint-7 channel provides eslint-plugin-import version 2.18.2: https://github.com/codeclimate/codeclimate-eslint/blob/channel/eslint-7/yarn.lock#L2330, which means that there is no is there somebody who can update the package version to at least that one? |
- removed `alphabetize` rule because codeclimate-eslint channel "eslint-7" is bundling an older version, that does not support it - see codeclimate/codeclimate-eslint#498 (comment)
- removed `alphabetize` rule because codeclimate-eslint channel "eslint-7" is bundling an older version, that does not support it - see codeclimate/codeclimate-eslint#498 (comment)
- removed `alphabetize` rule because codeclimate-eslint channel "eslint-7" is bundling an older version, that does not support it - see codeclimate/codeclimate-eslint#498 (comment)
👀 |
I just looked at your configuration and found that the new version of eslint-plugins-import does not depend on the alphabetize configuration item. The existing configuration items are as follows:
You can set the options like this: "import/order": [
"error",
{
"groups": [
"index",
"sibling",
"parent",
"internal",
"external",
"builtin",
"object",
"type"
]
}
] |
Thanks ! It really works |
Bug Template
Hey, I am having the issues with
@typescript-eslint
on codeclimate. Locally eslint works fine but it raises an error when running on codeclimate:Configuration for rule "import/order" is invalid
.Actual Behavior
Expected Behavior
I expect to build to pass
Steps to reproduce
.codeclimate.yml
.eslintrc
package.json
The text was updated successfully, but these errors were encountered: