Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
refactor: small changes (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 4, 2024
1 parent e622533 commit b978b18
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineFlatConfig } from 'eslint-define-config';
import { extend } from '@archoleat/eslint-flat-compatibility';

import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
import typescriptParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';
Expand Down Expand Up @@ -40,4 +41,5 @@ export default defineFlatConfig([
'unicorn/string-content': 'error',
},
},
eslintConfigPrettier,
]);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"editorconfig-checker": "^5.1.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^52.0.0",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/utils/compatibility.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { resolve } from 'node:path';
import path from 'node:path';

import { FlatCompat } from '@eslint/eslintrc';

const resolve = path.resolve();
const compatibility = new FlatCompat({
baseDirectory: resolve(),
resolvePluginsRelativeTo: resolve(),
baseDirectory: resolve,
resolvePluginsRelativeTo: resolve,
});

export { compatibility };

0 comments on commit b978b18

Please sign in to comment.