Skip to content

Commit

Permalink
Modernize eslint.config.mjs. NFC (#23385)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Jan 13, 2025
1 parent a50c562 commit aca6884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
executors:
linux-node:
docker:
- image: cimg/node:18.20.3
- image: cimg/node:20.15.1
linux-python:
docker:
- image: cimg/python:3.10.7
Expand Down
6 changes: 1 addition & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import globals from 'globals';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
baseDirectory: import.meta.dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
Expand Down

0 comments on commit aca6884

Please sign in to comment.