diff options
author | 2024-08-02 20:19:41 +0800 | |
---|---|---|
committer | 2024-08-02 20:19:41 +0800 | |
commit | 69d54b4bf26b1c738ea2342da7abe998baeafaee (patch) | |
tree | 4fd3595ea2da453efee29e8c62d889fea6c972a6 /eslint.config.js | |
parent | c2d6c1f727c27f0d541eb2de25480f51442e2106 (diff) | |
download | astro-69d54b4bf26b1c738ea2342da7abe998baeafaee.tar.gz astro-69d54b4bf26b1c738ea2342da7abe998baeafaee.tar.zst astro-69d54b4bf26b1c738ea2342da7abe998baeafaee.zip |
Remove more unused code (#11598)
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 10 |
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, |