From 2e6d8813095c6a79ca208bae4c2cf5edc12049a1 Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Tue, 31 Dec 2024 09:17:25 +0900 Subject: [PATCH] chore(eslint): change 'dist' area in 'ignores', sort rules (#2924) * chore(eslint): change 'dist' area in 'ignores' * chore(eslint): sort by the order 'plugins' were added and by name * Update eslint.config.mjs Co-authored-by: Daishi Kato --------- Co-authored-by: Daishi Kato --- eslint.config.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 1d36f759e2..f219d99d16 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -10,7 +10,7 @@ import tseslint from 'typescript-eslint' export default tseslint.config( { - ignores: ['**/dist/', 'examples/**'], + ignores: ['dist/', 'examples/'], }, eslint.configs.recommended, importPlugin.flatConfigs.recommended, @@ -69,13 +69,13 @@ export default tseslint.config( pathGroupsExcludedImportTypes: ['builtin'], }, ], + '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': [ 'warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, ], - '@typescript-eslint/no-explicit-any': 'off', - ...reactHooks.configs.recommended.rules, 'react-compiler/react-compiler': 'warn', + ...reactHooks.configs.recommended.rules, }, }, { @@ -85,13 +85,13 @@ export default tseslint.config( ...vitest.configs.recommended, rules: { 'import/extensions': ['error', 'never'], + '@typescript-eslint/no-unused-vars': 'off', 'testing-library/no-node-access': 'off', 'vitest/expect-expect': 'off', 'vitest/consistent-test-it': [ 'error', { fn: 'it', withinDescribe: 'it' }, ], - '@typescript-eslint/no-unused-vars': 'off', }, }, {