mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-25 07:07:21 +08:00
feat: detect ESLint flat config (#4753)
This commit is contained in:
1 parent
7516e2e484
commit
adee52fba0
1 file changed
+3
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user