Skip to content

Commit 45ea8e6

Browse files
Bump eslint from 8.57.1 to 9.14.0 (#352)
* Bump eslint from 8.57.1 to 9.14.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.14.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.1...v9.14.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Migrate eslint config to new version --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Slawomir Jaranowski <[email protected]>
1 parent adfd5fd commit 45ea8e6

File tree

4 files changed

+218
-299
lines changed

4 files changed

+218
-299
lines changed

.eslintrc.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import globals from "globals";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default [...compat.extends("eslint:recommended"), {
16+
languageOptions: {
17+
globals: {
18+
...globals.commonjs,
19+
...globals.node,
20+
Atomics: "readonly",
21+
SharedArrayBuffer: "readonly",
22+
},
23+
24+
ecmaVersion: 2018,
25+
sourceType: "commonjs",
26+
},
27+
28+
rules: {},
29+
}];

0 commit comments

Comments
 (0)