Leniolabs / layoutit-grid

Layoutit grid is a CSS Grid layout generator. Quickly draw down web pages layouts with our clean editor, and get HTML and CSS code to quickstart your next project.
https://grid.layoutit.com
MIT License
1.64k stars 181 forks source link

Properly setup eslint and prettier with vite #48

Closed patak-dev closed 4 years ago

patak-dev commented 4 years ago

We lost this configuration when we migrated to Vite from vue-cli.

This was the old package.json bits related to this

  "devDependencies": {
    "@vue/cli-plugin-eslint": "^3.8.0",
    "@vue/eslint-config-prettier": "^4.0.1",
    "lint-staged": "^9.0.0",
  },
  "gitHooks": {
    "pre-commit": "lint-staged"
  },
  "lint-staged": {
    "*.js": [
      "vue-cli-service lint",
      "git add"
    ],
    "*.vue": [
      "vue-cli-service lint",
      "git add"
    ]
  }

Looks like we now would have to do something like this though:

https://simohamed.tech/blog/vue3-lint/ https://www.simonwuyts.com/articles/vue-3-a-modern-setup-that-will-save-you-time/

centrodph commented 4 years ago

@matias-capeletto could you assign me this issue?

patak-dev commented 4 years ago

Closed with https://github.com/Leniolabs/layoutit-grid/pull/49 by @centrodph ❤️