Skip to content

Commit

Permalink
🔨 chore: make type imports go first instead
Browse files Browse the repository at this point in the history
Signed-off-by: Pauline <git@ethanlibs.co>
  • Loading branch information
pauliesnug committed Sep 12, 2024
1 parent 12e89d5 commit 62fb12c
Show file tree
Hide file tree
Showing 54 changed files with 401 additions and 426 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
"eslint": "^9.10.0",
"jiti": "^1.21.6",
"tsup": "^8.2.4",
"tsx": "^4.19.0",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"unbuild": "^2.0.0",
"vite": "^5.4.3",
"vitest": "^2.0.5"
"vite": "^5.4.4",
"vitest": "^2.1.0"
},
"resolutions": {
"@eslint-community/eslint-utils": "^4.4.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"@stylistic/eslint-plugin": "^2.8.0",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitest/eslint-plugin": "^1.1.0",
"@vitest/eslint-plugin": "^1.1.1",
"eslint-flat-config-utils": "^0.4.0",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-command": "^0.2.4",
Expand All @@ -163,15 +163,15 @@
"yaml-eslint-parser": "^1.2.3"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "^1.14.0",
"@eslint-react/eslint-plugin": "^1.14.1",
"@eslint/config-inspector": "^0.5.4",
"@prettier/plugin-xml": "^3.4.1",
"@tanstack/eslint-plugin-query": "^5.53.0",
"@tanstack/eslint-plugin-query": "^5.56.1",
"@types/eslint-plugin-jsx-a11y": "^6.9.0",
"@types/fs-extra": "^11.0.4",
"@types/prompts": "^2.4.9",
"@unocss/eslint-plugin": "^0.62.3",
"astro-eslint-parser": "^1.0.2",
"astro-eslint-parser": "^1.0.3",
"eslint": "^9.10.0",
"eslint-plugin-astro": "^1.2.3",
"eslint-plugin-format": "^0.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/astro.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsAstro, TypedFlatConfigItem } from '../types';
import { GLOB_ASTRO } from '../globs';
import { ensurePackages, interopDefault } from '../utils';
import type { OptionsAstro, TypedFlatConfigItem } from '../types';

export async function astro(options: OptionsAstro = {}): Promise<TypedFlatConfigItem[]> {
const { accessibility = false, files = [GLOB_ASTRO], overrides = {}, stylistic = true } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createCommand from 'eslint-plugin-command/config';
import type { TypedFlatConfigItem } from '../types';
import createCommand from 'eslint-plugin-command/config';

export async function command(): Promise<TypedFlatConfigItem[]> {
return [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/comments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { interopDefault } from '../utils';
import type { TypedFlatConfigItem } from '../types';
import { interopDefault } from '../utils';

export async function comments(): Promise<TypedFlatConfigItem[]> {
return [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/disables.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GLOB_BIN, GLOB_BIN_SRC, GLOB_CJS, GLOB_CLI, GLOB_CLI_SRC, GLOB_DTS, GLOB_SCRIPTS, GLOB_TEST_TS } from '../globs';
import type { TypedFlatConfigItem } from '../types';
import { GLOB_BIN, GLOB_BIN_SRC, GLOB_CJS, GLOB_CLI, GLOB_CLI_SRC, GLOB_DTS, GLOB_SCRIPTS, GLOB_TEST_TS } from '../globs';

export async function disables(): Promise<TypedFlatConfigItem[]> {
return [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/formatters.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { OptionsFormatters, StylisticConfig, TypedFlatConfigItem, VendoredPrettierOptions, VendoredPrettierXMLOptions } from '../types';
import { isPackageExists } from 'local-pkg';
import { GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_GRAPHQL, GLOB_HTML, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SVG, GLOB_XML } from '../globs';
import { ensurePackages, interopDefault, isPackageInScope, parserPlain } from '../utils';
import { StylisticConfigDefaults } from './stylistic';
import type { OptionsFormatters, StylisticConfig, TypedFlatConfigItem, VendoredPrettierOptions, VendoredPrettierXMLOptions } from '../types';

export async function formatters(options: OptionsFormatters | true = {}, stylistic: StylisticConfig = {}): Promise<TypedFlatConfigItem[]> {
const isXmlInScope = isPackageInScope('@prettier/plugin-xml');
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/gitignore.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { OptionsGitignore, TypedFlatConfigItem } from '../types';
import fs from 'node:fs';
import process from 'node:process';
import { convertIgnorePatternToMinimatch } from '@eslint/compat';
import { findUpSync } from 'find-up-simple';
import path from 'pathe';
import { toArray } from '../utils';
import type { OptionsGitignore, TypedFlatConfigItem } from '../types';

export async function gitignore(options: OptionsGitignore = {}): Promise<TypedFlatConfigItem[]> {
const ignores: string[] = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/ignores.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GLOB_EXCLUDE } from '../globs';
import type { TypedFlatConfigItem } from '../types';
import { GLOB_EXCLUDE } from '../globs';

export async function ignores(userIgnores: string[] = []): Promise<TypedFlatConfigItem[]> {
return [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/imports.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { interopDefault } from '../utils';
import type { OptionsImports, TypedFlatConfigItem } from '../types';
import { interopDefault } from '../utils';

export async function imports(options: OptionsImports = {}): Promise<TypedFlatConfigItem[]> {
const { stylistic = true } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/javascript.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsJavascript, TypedFlatConfigItem } from '../types';
import globals from 'globals';
import { interopDefault } from '../utils';
import type { OptionsJavascript, TypedFlatConfigItem } from '../types';

export async function javascript(options: OptionsJavascript = {}): Promise<TypedFlatConfigItem[]> {
const { isInEditor = false, overrides = {} } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/jsdoc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { interopDefault } from '../utils';
import type { OptionsJsdoc, TypedFlatConfigItem } from '../types';
import { interopDefault } from '../utils';

export async function jsdoc(options: OptionsJsdoc = {}): Promise<TypedFlatConfigItem[]> {
const { stylistic = true } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/jsonc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsJsonc, TypedFlatConfigItem } from '../types';
import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from '../globs';
import { interopDefault } from '../utils';
import type { OptionsJsonc, TypedFlatConfigItem } from '../types';

export async function jsonc(options: OptionsJsonc = {}): Promise<TypedFlatConfigItem[]> {
const { files = [GLOB_JSON, GLOB_JSON5, GLOB_JSONC], overrides = {}, stylistic = true } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/jsx.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GLOB_JSX, GLOB_TSX } from '../globs';
import type { TypedFlatConfigItem } from '../types';
import { GLOB_JSX, GLOB_TSX } from '../globs';

export async function jsx(): Promise<TypedFlatConfigItem[]> {
return [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/markdown.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OptionsMarkdown, TypedFlatConfigItem } from '../types';
import { mergeProcessors, processorPassThrough } from 'eslint-merge-processors';
import { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN } from '../globs';
import { interopDefault, parserPlain } from '../utils';
import type { OptionsMarkdown, TypedFlatConfigItem } from '../types';

export async function markdown(options: OptionsMarkdown = {}): Promise<TypedFlatConfigItem[]> {
const { componentExts = [], files = [GLOB_MARKDOWN], overrides = {} } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { interopDefault } from '../utils';
import type { TypedFlatConfigItem } from '../types';
import { interopDefault } from '../utils';

export async function node(): Promise<TypedFlatConfigItem[]> {
const pluginNode = await interopDefault(import('eslint-plugin-n'));
Expand Down
7 changes: 4 additions & 3 deletions packages/eslint-config/src/configs/perfectionist.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { interopDefault } from '../utils';
import type { TypedFlatConfigItem } from '../types';
import { interopDefault } from '../utils';

/**
* Perfectionist plugin for props and items sorting.
Expand All @@ -18,12 +18,13 @@ export async function perfectionist(): Promise<TypedFlatConfigItem[]> {
'perfectionist/sort-exports': ['error', { order: 'asc', type: 'natural' }],
'perfectionist/sort-imports': ['error', {
groups: [
'type',
['parent-type', 'sibling-type', 'index-type'],

'builtin',
'external',
'type',
['internal', 'internal-type'],
['parent', 'sibling', 'index'],
['parent-type', 'sibling-type', 'index-type'],
'side-effect',
'object',
'unknown',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/query.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsQuery, TypedFlatConfigItem } from '../types';
import { GLOB_SRC } from '../globs';
import { ensurePackages, interopDefault } from '../utils';
import type { OptionsQuery, TypedFlatConfigItem } from '../types';

export async function query(options: OptionsQuery = {}): Promise<TypedFlatConfigItem[]> {
const { files = [GLOB_SRC], overrides = {} } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/react.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OptionsReact, TypedFlatConfigItem } from '../types';
import { isPackageExists } from 'local-pkg';
import { GLOB_SRC } from '../globs';
import { ensurePackages, interopDefault, toArray } from '../utils';
import type { OptionsReact, TypedFlatConfigItem } from '../types';

const ReactRefreshAllowConstantExportPackages = ['vite'];
const RemixPackages = ['@remix-run/node', '@remix-run/react', '@remix-run/serve', '@remix-run/dev'];
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/regexp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { configs } from 'eslint-plugin-regexp';
import type { OptionsRegExp, TypedFlatConfigItem } from '../types';
import { configs } from 'eslint-plugin-regexp';

export async function regexp(options: OptionsRegExp = {}): Promise<TypedFlatConfigItem[]> {
const config = configs['flat/recommended'] as TypedFlatConfigItem;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsSchema, TypedFlatConfigItem } from '../types';
import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_TOML, GLOB_YAML } from '../globs';
import { ensurePackages, interopDefault } from '../utils';
import type { OptionsSchema, TypedFlatConfigItem } from '../types';

export async function schema(options: OptionsSchema = {}): Promise<TypedFlatConfigItem[]> {
const { files = [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML], overrides = {} } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/solid.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OptionsSolid, TypedFlatConfigItem } from '../types';
import globals from 'globals';
import { GLOB_JSX, GLOB_TSX } from '../globs';
import { ensurePackages, interopDefault, toArray } from '../utils';
import type { OptionsSolid, TypedFlatConfigItem } from '../types';

export async function solid(options: OptionsSolid = {}): Promise<TypedFlatConfigItem[]> {
const { accessibility = false, files = [GLOB_JSX, GLOB_TSX], overrides = {}, typescript = true } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/sort.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GLOB_PACKAGE_JSON, GLOB_TSCONFIGS } from '../globs';
import type { TypedFlatConfigItem } from '../types';
import { GLOB_PACKAGE_JSON, GLOB_TSCONFIGS } from '../globs';

/**
* Sort `package.json` fles -- in tandem with `jsonc` config
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/stylistic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { interopDefault } from '../utils';
import type { OptionsOverrides, StylisticConfig, TypedFlatConfigItem } from '../types';
import { interopDefault } from '../utils';

export const StylisticConfigDefaults: StylisticConfig = {
indent: 'tab',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/svelte.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsSvelte, TypedFlatConfigItem } from '../types';
import { GLOB_SVELTE } from '../globs';
import { ensurePackages, interopDefault } from '../utils';
import type { OptionsSvelte, TypedFlatConfigItem } from '../types';

export async function svelte(options: OptionsSvelte = {}): Promise<TypedFlatConfigItem[]> {
const { files = [GLOB_SVELTE], overrides = {}, stylistic = true } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsTest, TypedFlatConfigItem } from '../types';
import { GLOB_TESTS } from '../globs';
import { interopDefault } from '../utils';
import type { OptionsTest, TypedFlatConfigItem } from '../types';

export async function test(options: OptionsTest = {}): Promise<TypedFlatConfigItem[]> {
const { files = GLOB_TESTS, overrides = {} } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/toml.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsToml, TypedFlatConfigItem } from '../types';
import { GLOB_TOML } from '../globs';
import { interopDefault } from '../utils';
import type { OptionsToml, TypedFlatConfigItem } from '../types';

export async function toml(options: OptionsToml = {}): Promise<TypedFlatConfigItem[]> {
const { files = [GLOB_TOML], overrides = {}, stylistic = true } = options;
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/src/configs/typescript.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import process from 'node:process';
import type { Linter } from 'eslint';
import type { OptionsTypeScript, TypedFlatConfigItem } from '../types';
import process from 'node:process';
import { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from '../globs';
import { interopDefault, renameRules } from '../utils';
import type { OptionsTypeScript, TypedFlatConfigItem } from '../types';

export async function typescript(options: OptionsTypeScript = {}): Promise<TypedFlatConfigItem[]> {
const { componentExts = [], overrides = {}, overridesTypeAware = {}, parserOptions = {}, type = 'app' } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/unicorn.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { interopDefault } from '../utils';
import type { OptionsUnicorn, TypedFlatConfigItem } from '../types';
import { interopDefault } from '../utils';

export async function unicorn(options: OptionsUnicorn = {}): Promise<TypedFlatConfigItem[]> {
const pluginUnicorn = await interopDefault(import('eslint-plugin-unicorn'));
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/unocss.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ensurePackages, interopDefault } from '../utils';
import type { OptionsUnoCSS, TypedFlatConfigItem } from '../types';
import { ensurePackages, interopDefault } from '../utils';

export async function unocss(options: OptionsUnoCSS = {}): Promise<TypedFlatConfigItem[]> {
const { attributify = true, strict = false } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/vue.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OptionsVue, TypedFlatConfigItem } from '../types';
import { mergeProcessors } from 'eslint-merge-processors';
import { GLOB_VUE } from '../globs';
import { ensurePackages, interopDefault } from '../utils';
import type { OptionsVue, TypedFlatConfigItem } from '../types';

export async function vue(options: OptionsVue = {}): Promise<TypedFlatConfigItem[]> {
const { accessibility = false, files = [GLOB_VUE], overrides = {}, stylistic = true, vueVersion = 3 } = options;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/yaml.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { OptionsYaml, TypedFlatConfigItem } from '../types';
import { GLOB_YAML } from '../globs';
import { interopDefault } from '../utils';
import type { OptionsYaml, TypedFlatConfigItem } from '../types';

export async function yaml(options: OptionsYaml = {}): Promise<TypedFlatConfigItem[]> {
const { files = [GLOB_YAML], overrides = {}, stylistic = true } = options;
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/src/factory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Linter } from 'eslint';
import type { Awaitable, ConfigNames, OptionsConfig, TypedFlatConfigItem } from './types';
import { FlatConfigComposer } from 'eslint-flat-config-utils';
import { isPackageExists } from 'local-pkg';
import type { Linter } from 'eslint';
import {
astro,
command,
Expand Down Expand Up @@ -35,7 +36,6 @@ import {
yaml,
} from './configs';
import { getOverrides, isInEditorEnv, resolveSubOptions } from './utils';
import type { Awaitable, ConfigNames, OptionsConfig, TypedFlatConfigItem } from './types';

const flatConfigProps = [
'languageOptions',
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-config/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import process from 'node:process';
import { fileURLToPath } from 'node:url';
import { isPackageExists } from 'local-pkg';
import type { Linter } from 'eslint';
import type { Rules } from './index';
import type { Awaitable, OptionsConfig, TypedFlatConfigItem } from './types';
import process from 'node:process';
import { fileURLToPath } from 'node:url';
import { isPackageExists } from 'local-pkg';

const scopeUrl = fileURLToPath(new URL('.', import.meta.url));
const isCwdInScope = isPackageExists('@flowr/eslint-config');
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/test/fixtures.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { OptionsConfig, TypedFlatConfigItem } from '../src/types';
import process from 'node:process';
import { fileURLToPath } from 'node:url';
import { execa } from 'execa';
import fg from 'fast-glob';
import fs from 'fs-extra';
import { join, resolve } from 'pathe';
import { afterAll, beforeAll, it } from 'vitest';
import type { OptionsConfig, TypedFlatConfigItem } from '../src/types';

const fixturesDir = fileURLToPath(new URL('fixtures', import.meta.url));
const outputDir = fileURLToPath(new URL('_fixtures', import.meta.url));
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ESLint, Linter } from 'eslint';
import type { RuleModule } from './utils';
import { version } from '../package.json';
import consistentChaining from './rules/consistent-chaining';
import consistentListNewline from './rules/consistent-list-newline';
Expand All @@ -12,7 +13,6 @@ import noOnlyTests from './rules/no-only-tests';
import noTsExportEqual from './rules/no-ts-export-equal';
import onlyExportComponents from './rules/only-export-components';
import topLevelFunction from './rules/top-level-function';
import type { RuleModule } from './utils';

const plugin = {
meta: {
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/rules/_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import tsParser from '@typescript-eslint/parser';
import { run as _run } from 'eslint-vitest-rule-tester';
// import type { InferOptionsTypeFromRule } from '@typescript-eslint/utils/eslint-utils';
import type { RuleTesterInitOptions, TestCasesOptions } from 'eslint-vitest-rule-tester';
import tsParser from '@typescript-eslint/parser';
import { run as _run } from 'eslint-vitest-rule-tester';

export { unindent as $ } from 'eslint-vitest-rule-tester';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { InvalidTestCase, ValidTestCase } from 'eslint-vitest-rule-tester';
import { unindent as $ } from 'eslint-vitest-rule-tester';
import { expect } from 'vitest';
import type { InvalidTestCase, ValidTestCase } from 'eslint-vitest-rule-tester';
import { run } from './_test';
import rule, { RULE_NAME } from './consistent-chaining';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import jsoncParser from 'jsonc-eslint-parser';
import type { InvalidTestCase, ValidTestCase } from 'eslint-vitest-rule-tester';
import jsoncParser from 'jsonc-eslint-parser';
import { $, run } from './_test';
import rule, { RULE_NAME } from './consistent-list-newline';

Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/rules/file-header.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFileSync } from 'node:fs';
import type { JSONSchema4 } from '@typescript-eslint/utils/json-schema';
import { readFileSync } from 'node:fs';
import { createEslintRule } from '../utils';

type CommentSyntax = string | [string, string];
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"stub": "unbuild --stub"
},
"devDependencies": {
"@std/encoding": "npm:@jsr/std__encoding@1.0.4",
"@std/encoding": "npm:@jsr/std__encoding@1.0.5",
"@types/luxon": "^3.4.2",
"@types/zen-observable": "^0.8.7",
"destr": "^2.0.3",
Expand Down
Loading

0 comments on commit 62fb12c

Please sign in to comment.