DEV Community

Cover image for Creating vite vue ts template: Make eslint and prettier play nice together
Sardorbek Imomaliev
Sardorbek Imomaliev

Posted on • Updated on

 

Creating vite vue ts template: Make eslint and prettier play nice together

Install eslint-config-prettier

  1. npm install --save-dev eslint-config-prettier
  2. Add 'prettier' to .eslintrc.js

    module.exports = {
      ...
      extends: [
        'eslint:recommended',
        'plugin:@typescript-eslint/recommended',
    +    'prettier',
    
      ],
    }
    
  3. Run npm run lint

  4. Run npm run format

  5. git add -u

  6. git commit -m 'install eslint-config-prettier'

Links

Project

GitHub logo imomaliev / vue-ts

Vite + Vue + TypeScript template

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.