Skip to content

Commit

Permalink
chore: eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
u3u committed Aug 7, 2023
1 parent d9bbbb0 commit 873a615
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ If you want to format before every commit, you can add the following to your `pa
"lint-staged": {
"*": ["prettier --write --ignore-unknown"]
},

"simple-git-hooks": {
"pre-commit": "npx lint-staged"
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/prettier-plugin-sort-imports.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@ianvs/prettier-plugin-sort-imports' {
import { type Plugin } from 'prettier';
import type { Plugin } from 'prettier';

const sortImportsPlugin: Required<Plugin>;

Expand Down
2 changes: 1 addition & 1 deletion src/types/prettier-plugin-twin.macro.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'prettier-plugin-twin.macro' {
import { type Plugin } from 'prettier';
import type { Plugin } from 'prettier';

const tailwindPlugin: Required<Plugin>;

Expand Down
2 changes: 1 addition & 1 deletion src/utils/define-config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { type Config } from 'prettier';
import type { Config } from 'prettier';

export const defineConfig = <T extends Config>(config: T) => config;
2 changes: 1 addition & 1 deletion src/utils/define-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { type Plugin } from 'prettier';
import type { Plugin } from 'prettier';

export const definePlugin = <T extends Plugin>(plugin: T) => plugin;
2 changes: 1 addition & 1 deletion src/utils/extend-config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import deepmerge from 'deepmerge';
import { type Config } from 'prettier';
import type { Config } from 'prettier';
import config from '..';

export const extendConfig = <T extends Config | typeof config>(userConfig: T, options?: deepmerge.Options) => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/with-sort-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Plugin } from 'prettier';
import type { Plugin } from 'prettier';
import { mapValues } from 'remeda';
import { definePlugin } from './define-plugin';
import { require } from './require';
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"resolveJsonModule": true,
"target": "esnext"
},

"extends": "@tsconfig/node18/tsconfig.json"
}

0 comments on commit 873a615

Please sign in to comment.