Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Apr 17, 2024
1 parent 0243afb commit 7d924e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import noel from '@augu/eslint-config';
import { fileURLToPath } from 'url';

export default noel({
export default (typeof noel === 'function' ? noel : noel.default)({
perfectionist: true,
typescript: {
tsconfig: fileURLToPath(new URL('tsconfig.json', import.meta.url))
Expand Down
4 changes: 2 additions & 2 deletions scripts/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
*/

import { Stopwatch } from '@noelware/utils';
import { fileURLToPath } from 'node:url';
import * as log from './util/logging';
import { ESLint } from 'eslint';
import * as colors from 'colorette';
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { ESLint } from 'eslint';

async function main() {
const ROOT = fileURLToPath(new URL('..', import.meta.url));
Expand Down
3 changes: 2 additions & 1 deletion scripts/prettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
*/

import { Stopwatch } from '@noelware/utils';
import { fileURLToPath } from 'node:url';
import * as log from './util/logging';
import * as prettier from 'prettier';
import * as colors from 'colorette';
import { resolve } from 'node:path';

async function main() {
const ROOT = Bun.fileURLToPath(new URL('..', import.meta.url));
const ROOT = fileURLToPath(new URL('..', import.meta.url));
log.info(`root directory: ${ROOT}`);

const config = await prettier.resolveConfig(resolve(ROOT, '.prettierrc.json'));
Expand Down

0 comments on commit 7d924e1

Please sign in to comment.