DEV Community

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

Posted on • Edited on

1 1

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay