Skip to content

Commit

Permalink
Merge pull request #47 from nix6839/types
Browse files Browse the repository at this point in the history
refactor: update types
  • Loading branch information
nix6839 authored Dec 8, 2023
2 parents 30594ba + fcda36c commit 45f5736
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type MustSetOptions = Required<

type Config = MustSetOptions & Omit<prettier.Config, keyof MustSetOptions>;

const config: Config = {
const config = {
// Overridden options
singleQuote: true,

Expand All @@ -43,6 +43,6 @@ const config: Config = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
};
} satisfies Config;

export default config;
7 changes: 6 additions & 1 deletion prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import config from './dist/index.js';
// @ts-check

import hwyConfig from './dist/index.js';

/** @satisfies {import('prettier').Config} */
const config = hwyConfig;

export default config;

0 comments on commit 45f5736

Please sign in to comment.