Skip to content

Commit

Permalink
Bump eslint to v9 and adapt config
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Sep 27, 2024
1 parent fefa9a4 commit 19a82f1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc

This file was deleted.

19 changes: 19 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("scality"), {
languageOptions: {
ecmaVersion: 2020,
sourceType: "script",
},
}];

0 comments on commit 19a82f1

Please sign in to comment.