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

Feature request: allow to install eslint plugins and config from .eslintrc #1857

Open
leosuncin opened this issue Sep 12, 2021 · 0 comments
Open

Comments

@leosuncin
Copy link

leosuncin commented Sep 12, 2021

I use this eslint config

{
  "extends": ["next"],
  "plugins": ["deprecation"],
  "overrides": [
    {
      "files": ["**/*.ts", "**/*.tsx"],
      "rules": {
        "deprecation/deprecation": "warn"
      }
    },
    {
      "files": ["**/*.spec.ts", "**/*.spec.tsx"],
      "plugins": ["jest", "jest-formatting", "testing-library"],
      "env": {
         "jest": true
      },
      "extends": [
        "plugin:jest/recommended",
        "plugin:jest/style",
        "plugin:jest-formatting/strict",
       "plugin:testing-library/react"
      ]
    }
  ]
}

and this .hound.yml

eslint:
  enabled: true
  version: 7.7.0
  config_file: .eslintrc.json
  ignore_file: .eslintignore

jshint:
  enabled: false

and I'm getting the following messages in the PR from Hound

Also there are some open issues related to missing plugins #1845 #1841 #1838 etc

This can be done by installing eslint's packages in package.json or add a setting to pass an array of packages to Hound  

eslint:
 enabled: true
 version: 7.7.0
 config_file: .eslintrc.json
 ignore_file: .eslintignore
 plugins:
     - eslint-config-next
     - eslint-plugin-deprecation
     - eslint-plugin-jest
     - eslint-plugin-jest-formatting
     - eslint-plugin-testing-library
jshint:
 enabled: false

This will be helpful for you because it will prevent that people open a new issue for every eslint plugin and config in NPM

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