From adee52fba040428264aee956d99033572fc405a3 Mon Sep 17 00:00:00 2001 From: Mathew Attlee Date: Sat, 20 Apr 2024 19:14:48 +0100 Subject: [PATCH] feat: detect ESLint flat config (#4753) --- autoload/ale/handlers/eslint.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim index ad870449..f08ae7c4 100644 --- a/autoload/ale/handlers/eslint.vim +++ b/autoload/ale/handlers/eslint.vim @@ -18,6 +18,9 @@ call ale#Set('javascript_eslint_suppress_missing_config', 0) function! ale#handlers#eslint#FindConfig(buffer) abort for l:path in ale#path#Upwards(expand('#' . a:buffer . ':p:h')) for l:basename in [ + \ 'eslint.config.js', + \ 'eslint.config.mjs', + \ 'eslint.config.cjs', \ '.eslintrc.js', \ '.eslintrc.cjs', \ '.eslintrc.yaml',