Skip to content

Commit 5e37f86

Browse files
committed
Migrate ESLint config to flat config format
1 parent ec38290 commit 5e37f86

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

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

eslint.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const js = require("@eslint/js");
2+
const globals = require("globals");
3+
const { defineConfig, globalIgnores } = require("eslint/config");
4+
5+
module.exports = defineConfig([
6+
globalIgnores(["archive/"]),
7+
{
8+
files: ["generators/**/*.js", "**/*.spec.js", "**/*-solution.js", "*.js"],
9+
plugins: { js },
10+
extends: ["js/recommended"],
11+
languageOptions: { globals: { ...globals.node, ...globals.jest } },
12+
},
13+
]);

0 commit comments

Comments
 (0)