Skip to content

Commit

Permalink
feat: detect ESLint flat config (#4753)
Browse files Browse the repository at this point in the history
  • Loading branch information
codeinabox committed Apr 20, 2024
1 parent 7516e2e commit adee52f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/ale/handlers/eslint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit adee52f

Please sign in to comment.