How do I get eslint to work with prettier, TypeScript and null-ls?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • cfg

    My config files (by daliusd)

  • My full Neovim config is here for more ideas (I am mainly Javascript/Node developer): https://github.com/daliusd/cfg/blob/master/.config/nvim/lua/init.lua

  • apskaita

    Individualios Veiklos apskaita

  • Here is example of the project with eslint and prettier if you need something to test your config: https://github.com/daliusd/apskaita

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • eslint-plugin-prettier

    ESLint plugin for Prettier formatting

  • I recommend installing and configuring the eslint-plugin-prettier package in your project: https://github.com/prettier/eslint-plugin-prettier

  • dotfiles

  • And then use the eslint LSP to format using Prettier. To do this, you might have to enable formatting capabilities for ESlint, and disable them for TSServer. Here is an example of how I did it: https://github.com/pprotas/dotfiles/blob/main/.files/.config/nvim/lua/plugins/lsp.lua

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts