UNPKG

istanbul-slack-notify

Version:

Sends nyc (aka: istanbul) coverage summary and git build details to Slack using a pass/fail threshold for project coverage.

29 lines (27 loc) 688 B
import globals from "globals"; import pluginJs from "@eslint/js"; import pluginJest from "eslint-plugin-jest"; /** @type {import('eslint').Linter.Config[]} */ export default [ pluginJs.configs.recommended, { languageOptions: { ecmaVersion: "latest", globals: globals.node, }, }, { files: ["**/*.test.js"], plugins: {jest: pluginJest}, languageOptions: { globals: pluginJest.environments.globals.globals, }, rules: { "jest/no-disabled-tests": "warn", "jest/no-focused-tests": "error", "jest/no-identical-title": "error", "jest/prefer-to-have-length": "warn", "jest/valid-expect": "error", }, }, ];