From 85e15e0517123c0ade64cff5d3a62f26cabd8d32 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 25 Aug 2024 14:27:22 +0200 Subject: [PATCH] Change ESLint configuration to use CommonJS modules instead of ES modules. --- eslint.config.mjs => eslint.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename eslint.config.mjs => eslint.config.js (67%) diff --git a/eslint.config.mjs b/eslint.config.js similarity index 67% rename from eslint.config.mjs rename to eslint.config.js index 0f7dfa8..fc3777a 100644 --- a/eslint.config.mjs +++ b/eslint.config.js @@ -1,9 +1,9 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; -import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"; -import jest from "eslint-plugin-jest"; +const globals = require("globals"); +const pluginJs = require("@eslint/js"); +const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); +const jest = require("eslint-plugin-jest"); -export default [ +module.exports = [ { files: ["**/*.js"], languageOptions: {