From ed2b72a06f7b61157a2bb89516f855daeafda837 Mon Sep 17 00:00:00 2001 From: Andrew Huth Date: Mon, 23 Sep 2024 11:01:21 -0400 Subject: [PATCH] Use esm for eslitn config --- eslint.config.js => eslint.config.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename eslint.config.js => eslint.config.mjs (70%) diff --git a/eslint.config.js b/eslint.config.mjs similarity index 70% rename from eslint.config.js rename to eslint.config.mjs index 8c7505f..d012791 100644 --- a/eslint.config.js +++ b/eslint.config.mjs @@ -1,12 +1,12 @@ -const js = require('@eslint/js'); -const vitest = require('@vitest/eslint-plugin'); -const prettierRecommended = require('eslint-plugin-prettier/recommended'); -const react = require('eslint-plugin-react'); -const globals = require('globals'); -const typescriptEslint = require('typescript-eslint'); +import js from '@eslint/js'; +import vitest from '@vitest/eslint-plugin'; +import prettierRecommended from 'eslint-plugin-prettier/recommended'; +import react from 'eslint-plugin-react'; +import globals from 'globals'; +import typescriptEslint from 'typescript-eslint'; /** @type {import("eslint").Linter.Config[]} */ -module.exports = [ +export default [ { ignores: ['**/storybook-static/', '**/build/'], },