Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Nov 21, 2024
1 parent 9899186 commit 8c009ae
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import eslint from '@eslint/js';
import jsonc from 'eslint-plugin-jsonc';
import perfectionist from 'eslint-plugin-perfectionist';
import tseslint from 'typescript-eslint';
import unicorn from 'eslint-plugin-unicorn';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cwd, exit } from 'node:process';
import { bgRed } from 'kleur/colors';
import { loadEnv, normalizePath, type Plugin } from 'vite';
import logSymbols from 'log-symbols';
import { resolve } from 'node:path';
import { cwd, exit } from 'node:process';
import { safeParse, type InferIssue, type ObjectSchema } from 'valibot';
import logSymbols from 'log-symbols';
import { loadEnv, normalizePath, type Plugin } from 'vite';

type PluginOptions = {
/**
Expand Down
9 changes: 5 additions & 4 deletions tests/ignore-prefix.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { build } from 'vite';
import { cwd } from 'node:process';
import dotenv from 'dotenv';
import { resolve } from 'node:path';
import { schema } from './fixtures/schema.ignore-prefix.ts';
import { cwd } from 'node:process';
import { test } from 'uvu';
import * as assert from 'uvu/assert';
import dotenv from 'dotenv';
import { build } from 'vite';

import valibotPlugin from '../src/index.ts';
import { schema } from './fixtures/schema.ignore-prefix.ts';

const fixtures = resolve(cwd(), 'tests/fixtures');

Expand Down
5 changes: 3 additions & 2 deletions tests/invalid.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { build } from 'vite';
import { cwd, env } from 'node:process';
import { resolve } from 'node:path';
import { cwd, env } from 'node:process';
import { test } from 'uvu';
import { build } from 'vite';
const fixtures = resolve(cwd(), 'tests/fixtures');
import * as assert from 'uvu/assert';
import * as v from 'valibot';

import valibotPlugin from '../src/index.ts';

const invalidEnvironmentVariables = {
Expand Down
9 changes: 5 additions & 4 deletions tests/transform.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { build } from 'vite';
import { cwd } from 'node:process';
import dotenv from 'dotenv';
import { resolve } from 'node:path';
import { schema } from './fixtures/schema.transform.ts';
import { cwd } from 'node:process';
import { test } from 'uvu';
import * as assert from 'uvu/assert';
import dotenv from 'dotenv';
import { build } from 'vite';

import valibotPlugin from '../src/index.ts';
import { schema } from './fixtures/schema.transform.ts';

const fixtures = resolve(cwd(), 'tests/fixtures');

Expand Down
9 changes: 5 additions & 4 deletions tests/valid.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { build } from 'vite';
import { cwd } from 'node:process';
import dotenv from 'dotenv';
import { resolve } from 'node:path';
import { schema } from './fixtures/schema.valid.ts';
import { cwd } from 'node:process';
import { test } from 'uvu';
import * as assert from 'uvu/assert';
import dotenv from 'dotenv';
import { build } from 'vite';

import valibotPlugin from '../src/index.ts';
import { schema } from './fixtures/schema.valid.ts';

const fixtures = resolve(cwd(), 'tests/fixtures');

Expand Down

0 comments on commit 8c009ae

Please sign in to comment.