UNPKG

@anolilab/eslint-config

Version:

ESLint shareable config for the Anolilab JavaScript style guide.

10 lines (7 loc) 944 B
'use strict'; require('../../chunk-5RAVHY5O.js'); var packageJsonUtils = require('@anolilab/package-json-utils'); global.hasAnolilabEsLintVitestGlobalsPlugin||(global.hasAnolilabEsLintVitestGlobalsPlugin=packageJsonUtils.hasDependency("eslint-plugin-vitest-globals")||packageJsonUtils.hasDevDependency("eslint-plugin-vitest-globals"));var t=["plugin:vitest/recommended","plugin:vitest/all"];global.hasAnolilabEsLintVitestGlobalsPlugin&&t.push("plugin:vitest-globals/recommended");var i={overrides:[{extends:t,files:["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],plugins:["vitest"],rules:{"vitest/max-expects":"off","vitest/no-hooks":"off","vitest/no-mocks-import":"off","vitest/no-restricted-vi-methods":"off","vitest/no-standalone-expect":"error","vitest/valid-expect":["error",{alwaysAwait:!0,maxArgs:2,minArgs:1}]}}]},o=i; module.exports = o; //# sourceMappingURL=out.js.map //# sourceMappingURL=vitest.js.map