From 4345cc60e93d64f3d98dcdf3733648c6c08de2ef Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Mon, 6 Jan 2025 20:33:06 +0100 Subject: [PATCH] update eslint config --- eslint.config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 1ea0844..2cddcaf 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,11 +1,11 @@ -// @ts-check import eslint from '@eslint/js'; import jsonc from 'eslint-plugin-jsonc'; import perfectionist from 'eslint-plugin-perfectionist'; import unicorn from 'eslint-plugin-unicorn'; import tseslint from 'typescript-eslint'; -export default tseslint.config( +/** @type {import('eslint').Linter.Config[]} */ +const config = [ eslint.configs.recommended, ...tseslint.configs.recommended, ...jsonc.configs['flat/recommended-with-json'], @@ -37,4 +37,6 @@ export default tseslint.config( 'jsonc/no-comments': 'off' } }, -); +]; + +export default config;