Skip to content

Commit

Permalink
refactor(eslint): add defineConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl committed Mar 16, 2024
1 parent 3b71a10 commit 63182c6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import globals from 'globals';

import { defineFlatConfig } from 'eslint-define-config';
import { FlatCompat } from '@eslint/eslintrc';
import { resolve } from 'node:path';

import typescriptParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';

import { resolve } from 'node:path';
import { FlatCompat } from '@eslint/eslintrc';

const compat = new FlatCompat({
baseDirectory: resolve(),
resolvePluginsRelativeTo: resolve(),
});

export default [
export default defineFlatConfig([
...compat.extends(
'airbnb-typescript/base',
'plugin:import/recommended',
Expand Down Expand Up @@ -41,4 +42,4 @@ export default [
'unicorn/string-content': 'error',
},
},
];
]);

0 comments on commit 63182c6

Please sign in to comment.