@sparticuz/eslint-config
Version:
Sparticuz's shareable config for eslint
26 lines (25 loc) • 671 B
JavaScript
import vitest from "@vitest/eslint-plugin";
import tseslint from "typescript-eslint";
export default tseslint.config({ ...vitest.configs.recommended }, {
name: "@sparticuz/eslint-config/vitest.ts",
files: ["**/tests/**", "**/test/**", "vitest.config.ts", "**/*.test.*"],
languageOptions: {
globals: {
...vitest.environments.env.globals,
},
},
rules: {
"n/no-extraneous-import": [
"error",
{
allowModules: ["vite"],
},
],
"n/no-unpublished-import": "off",
},
settings: {
vitest: {
typecheck: true,
},
},
});