You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
How to config eslint format on save for project using turborepo. Because eslint.js not exist at root file . It appear in:
app/**
packages/**
This is my null ls config:
null_ls.setup({
-- setup formatters & linterssources= {
-- to disable file types use-- "formatting.prettier.with({disabled_filetypes = {}})" (see null-ls docs)formatting.prettier, -- js/ts formatterformatting.stylua, -- lua formatterdiagnostics.eslint_d.with({ -- js/ts linter-- only enable eslint if root has .eslintrc.js (not in youtube nvim video)condition=function(utils)
-- This line ...........returnutils.root_has_file(".eslintrc.js") -- change file extension if you use something elseend,
}),
},
-- configure format on save
This line: return utils.root_has_file(".eslintrc.js") I search eslint.js at root file
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to config eslint format on save for project using
turborepo
. Because eslint.js not exist at root file . It appear in:return utils.root_has_file(".eslintrc.js")
I search eslint.js at root fileBeta Was this translation helpful? Give feedback.
All reactions