Skip to content

Commit aca6884

Browse files
authored
Modernize eslint.config.mjs. NFC (#23385)
1 parent a50c562 commit aca6884

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
executors:
77
linux-node:
88
docker:
9-
- image: cimg/node:18.20.3
9+
- image: cimg/node:20.15.1
1010
linux-python:
1111
docker:
1212
- image: cimg/python:3.10.7

eslint.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import globals from 'globals';
2-
import path from 'node:path';
3-
import { fileURLToPath } from 'node:url';
42
import js from '@eslint/js';
53
import { FlatCompat } from '@eslint/eslintrc';
64

7-
const __filename = fileURLToPath(import.meta.url);
8-
const __dirname = path.dirname(__filename);
95
const compat = new FlatCompat({
10-
baseDirectory: __dirname,
6+
baseDirectory: import.meta.dirname,
117
recommendedConfig: js.configs.recommended,
128
allConfig: js.configs.all
139
});

0 commit comments

Comments
 (0)