mirror of
https://github.com/dense-analysis/ale
synced 2024-12-17 20:05:31 +00:00
feat: detect ESLint flat config (#4753)
This commit is contained in:
parent
7516e2e484
commit
adee52fba0
@ -18,6 +18,9 @@ call ale#Set('javascript_eslint_suppress_missing_config', 0)
|
|||||||
function! ale#handlers#eslint#FindConfig(buffer) abort
|
function! ale#handlers#eslint#FindConfig(buffer) abort
|
||||||
for l:path in ale#path#Upwards(expand('#' . a:buffer . ':p:h'))
|
for l:path in ale#path#Upwards(expand('#' . a:buffer . ':p:h'))
|
||||||
for l:basename in [
|
for l:basename in [
|
||||||
|
\ 'eslint.config.js',
|
||||||
|
\ 'eslint.config.mjs',
|
||||||
|
\ 'eslint.config.cjs',
|
||||||
\ '.eslintrc.js',
|
\ '.eslintrc.js',
|
||||||
\ '.eslintrc.cjs',
|
\ '.eslintrc.cjs',
|
||||||
\ '.eslintrc.yaml',
|
\ '.eslintrc.yaml',
|
||||||
|
Loading…
Reference in New Issue
Block a user