Skip to content

Commit 1ca76f6

Browse files
committed
chore: configure eslint
1 parent 7eb7526 commit 1ca76f6

3 files changed

Lines changed: 2559 additions & 77 deletions

File tree

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import globals from "globals";
2+
3+
import path from "path";
4+
import { fileURLToPath } from "url";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
import pluginJs from "@eslint/js";
7+
8+
// mimic CommonJS variables -- not needed if using CommonJS
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended});
12+
13+
export default [
14+
{languageOptions: { globals: globals.node }},
15+
...compat.extends("airbnb-base"),
16+
];

0 commit comments

Comments
 (0)