From e9419500a9f327f4e92c8c9ee88c0c0bce473edf Mon Sep 17 00:00:00 2001 From: rasulov1337 <117843890+rasulov1337@users.noreply.github.com> Date: Thu, 24 Oct 2024 01:09:08 +0300 Subject: [PATCH] Update linter config --- eslint.config.mjs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 4ed08187..a390de8b 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,8 +1,9 @@ import globals from 'globals'; -import pluginJs from '@eslint/js'; +import js from '@eslint/js'; import tseslint from 'typescript-eslint'; export default [ + js.configs.recommended, ...tseslint.configs.recommended, { files: ['**/*.js', '**/*.ts', '**/*.mjs'], @@ -11,7 +12,7 @@ export default [ }, }, { - ignores: ['dist/*'], + ignores: ['dist/*', 'components/precompiled-templates.js'], }, { languageOptions: { @@ -22,10 +23,8 @@ export default [ }, }, }, - pluginJs.configs.recommended, { rules: { - 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], semi: ['error', 'always'], quotes: ['error', 'single'], indent: ['error', 4],