hound icon indicating copy to clipboard operation
hound copied to clipboard

Add support for 'eslint-config-airbnb/hooks'

Open chadwilken opened this issue 5 years ago • 0 comments

Can you add support for 'eslint-config-airbnb/hooks'? It shows that it is using eslint 4.3 for some reason even though I am using 6.x. I'm not sure if my config or hound settings are incorrect.

{
  "parser": "babel-eslint",
  "extends": ["airbnb", "airbnb/hooks", "prettier"],
  "globals": {
    "alert": true,
    "document": true,
    "FormData": true,
    "window": true,
    "confirm": true,
    "google": true,
    "expect": true,
    "describe": true,
    "test": true,
    "jest": true,
    "$": true,
    "Image": true
  },
  "plugins": ["react", "prettier", "react-hooks"],
  "rules": {
    "arrow-body-style": [0],
    "arrow-parens": [2, "always"],
    "camelcase": [0],
    "dot-notation": [0],
    "func-names": [0],
    "function-paren-newline": [0],
    "import/extensions": [0],
    "import/no-unresolved": [2, { "ignore": [".+"] }],
    "import/no-extraneous-dependencies": [0],
    "import/order": [0],
    "import/prefer-default-export": [0],
    "jsx-a11y/anchor-is-valid": [0],
    "jsx-a11y/click-events-have-key-events": [0],
    "jsx-a11y/label-has-for": [0],
    "jsx-a11y/label-has-associated-control": [
      2,
      {
        "controlComponents": ["LocalizedDatePicker"]
      }
    ],
    "jsx-a11y/media-has-caption": [0],
    "jsx-a11y/no-static-element-interactions": [0],
    "new-cap": [0],
    "no-alert": [0],
    "no-confusing-arrow": [0],
    "no-mixed-operators": [0],
    "no-multi-assign": [0],
    "no-prototype-builtins": [0],
    "no-script-url": [0],
    "no-undef": 1,
    "no-underscore-dangle": [0],
    "no-unused-expressions": [
      1,
      { "allowShortCircuit": true, "allowTernary": true }
    ],
    "object-curly-newline": [0],
    "prefer-destructuring": [2, { "array": false }],
    "radix": [0],
    "react/destructuring-assignment": [0],
    "react/forbid-prop-types": [0],
    "react-hooks/rules-of-hooks": "error",
    "react-hooks/exhaustive-deps": "warn",
    "react/jsx-filename-extension": [0],
    "react/jsx-one-expression-per-line": [0],
    "react/jsx-no-target-blank": [0],
    "react/jsx-wrap-multilines": [0],
    "react/no-typos": [0],
    "react/prop-types": [0],
    "react/require-default-props": [0],
    "react/sort-comp": [0],
    "react/style-prop-object": [0]
  }
}
ruby:
  config_file: .rubocop.yml

jshint:
  enabled: false

eslint:
  enabled: true
  config_file: .eslintrc
  ignore_file: .eslintignore

scss:
  enabled: false

sass-lint:
  enabled: false

chadwilken avatar Feb 04 '20 15:02 chadwilken