codefactor-io / codefactor

Automated static analysis for C#, C++, Java, CSS, JS, Go, Python, Ruby, TypeScript, Scala, CoffeeScript, Groovy, C, SCSS, Less, PHP, Dockerfile, Bash, YAML and Swift.
https://www.codefactor.io
62 stars 31 forks source link

Invalid custom config. Error #32

Closed konkasidiaris closed 3 years ago

konkasidiaris commented 3 years ago

Hello, today we set up our github repo with your service. In tools section under eslint there is this error "Invalid custom config."

I fooled around a little bit, changed some variables and fixed some too but the error still remains. Locally the eslint seems to work correctly. Can you please take a look at the .eslintrc and pinpoint what I am doing wrong?

{
  "env": {
    "es6": true,
    "node": true,
    "jest": true
  },
  "extends": ["airbnb-base", "plugin:prettier/recommended", "plugin:jest/recommended"],
  "plugins": ["jest", "prettier"],
  "globals": {
    "Atomics": "readonly",
    "SharedArrayBuffer": "readonly"
  },
  "parserOptions": {
    "ecmaVersion": 12,
    "sourceType": "module"
  },
  "rules": {
    "no-underscore-dangle": ["error", { "allow": ["_id"] }],
    "comma-dangle": ["warn", "never"],
    "prefer-arrow-callback": ["error"],
    "prefer-const": ["error"],
    "prefer-destructuring": ["warn", { "array": false, "object": false }],
    "space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }]
  }
}

Edit: our dependencies "eslint": "7.20.0", "eslint-config-airbnb-base": "14.2.1", "eslint-config-prettier": "6.12.0", "eslint-plugin-import": "2.22.1", "eslint-plugin-jest": "24.1.0", "eslint-plugin-prettier": "3.1.4"

cordis-dev commented 3 years ago

@konkasidiaris thanks for reporting. It was an internal issue on our side - your repo should now report issues based on your custom config.

konkasidiaris commented 3 years ago

You are awesome, everything seems to work fine! Keep up the good work!!!