summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Attlee <hello@codeinabox.com>2024-04-20 19:14:48 +0100
committerGitHub <noreply@github.com>2024-04-20 19:14:48 +0100
commitadee52fba040428264aee956d99033572fc405a3 (patch)
tree2fdd9ccd7a9e5e67cddbafda0f9c84e8cf19a3e7
parent7516e2e4849fb633555d5d40c2137e585ed10b64 (diff)
downloadale-adee52fba040428264aee956d99033572fc405a3.zip
feat: detect ESLint flat config (#4753)
-rw-r--r--autoload/ale/handlers/eslint.vim3
1 files changed, 3 insertions, 0 deletions
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',