summaryrefslogtreecommitdiff
path: root/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/eslint.config.js b/eslint.config.js
index e92f3aea6..ab7efa3df 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -2,7 +2,6 @@ import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { builtinModules } from 'node:module';
-import { FlatCompat } from '@eslint/eslintrc';
import tseslint from 'typescript-eslint';
// plugins
@@ -16,12 +15,6 @@ const typescriptParser = tseslint.parser;
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
-// ref: https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
-// mimic CommonJS variables -- not needed if using CommonJS
-const compat = new FlatCompat({
- baseDirectory: __dirname,
-});
-
export default [
// If ignores is used without any other keys in the configuration object, then the patterns act as global ignores.
// ref: https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
@@ -43,8 +36,7 @@ export default [
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
- // mimic ESLintRC-style extends
- ...compat.extends('plugin:regexp/recommended'),
+ regexpEslint.configs['flat/recommended'],
{
languageOptions: {
parser: typescriptParser,