Skip to content

Commit

Permalink
Migrate ESLint config to use ESModule syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMattia authored and lberrymage committed Feb 12, 2025
1 parent 966e37f commit 4dd2085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 4 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
//
// SPDX-License-Identifier: AGPL-3.0-only

const js = require("@eslint/js");

const {
FlatCompat,
} = require("@eslint/eslintrc");
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const compat = new FlatCompat({
baseDirectory: __dirname,
baseDirectory: import.meta.dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

module.exports = [{
export default [{
ignores: ["projects/**/*"],
}, ...compat.extends(
"eslint:recommended",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "frontend",
"version": "0.11.0",
"type":"module",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down

0 comments on commit 4dd2085

Please sign in to comment.