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

Lint our code including test specifics lint rules #62

Open
goldbergyoni opened this issue Jan 21, 2021 · 0 comments
Open

Lint our code including test specifics lint rules #62

goldbergyoni opened this issue Jan 21, 2021 · 0 comments

Comments

@goldbergyoni
Copy link
Contributor

Here is a recommended eslint config:


{
  "plugins": ["@typescript-eslint/eslint-plugin", "jest"],
  "extends": [
    "plugin:security/recommended",
    "plugin:promise/recommended",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended",
    "plugin:import/errors",
    "plugin:import/warnings",
    "plugin:import/typescript",
    "prettier",
    "prettier/@typescript-eslint"
  ],
  "root": true,
  "env": {
    "node": true,
    "jest": true
  },
  "rules": {
    "jest/no-disabled-tests": "error",
    "jest/no-focused-tests": "error",
    "jest/no-identical-title": "error",
    "jest/prefer-to-have-length": "warn",
    "jest/valid-title": "error",
    "jest/valid-expect": "error",
    "jest/no-if": "error",
    "jest/require-top-level-describe": "error",
    "jest/no-test-prefixes": "error",
    "jest/prefer-todo": "warn",
    "jest/expect-expect": "error",
    "jest/no-deprecated-functions": "error"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant