feat: detect ESLint flat config (#4753)

This commit is contained in:
Mathew Attlee 2024-04-20 19:14:48 +01:00 committed by GitHub
parent 7516e2e484
commit adee52fba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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',