Skip to content

Commit

Permalink
Migrate eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 2, 2024
1 parent 9dcb31b commit d2ca94b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("eslint:recommended"), {
languageOptions: {
globals: {
...globals.node,
...globals.browser,
...globals.jquery,
{{cookiecutter.package}}: false,
},

ecmaVersion: 2020,
sourceType: "module",
},

rules: {
"no-console": 0,
"no-unused-vars": 0,
},
}];

0 comments on commit d2ca94b

Please sign in to comment.