Giter Site home page Giter Site logo

Comments (9)

alvarosabu avatar alvarosabu commented on June 22, 2024 1

Here is the task Tresjs/configs#4

from tres.

alvarosabu avatar alvarosabu commented on June 22, 2024 1

Hi @damienmontastier Antfu's config extends the eslint vue rules with some opinionated overrides (which I agree) https://github.com/antfu/eslint-config/blob/main/src/configs/vue.ts

You can check the tres eslint config here https://github.com/Tresjs/eslint-config

from tres.

andretchen0 avatar andretchen0 commented on June 22, 2024 1

Hey @alvarosabu !

  • I've got a working solution. It uses the husky plugin. Is that ok with you?
  • Is this something we want to eventually add to other projects in the ecosystem? If so, I'll start with Cientos as it's where I'm working right now.

from tres.

andretchen0 avatar andretchen0 commented on June 22, 2024 1

Hi, @andretchen0 sounds good, so the pre-commit of husky will lint fix then?

Yeah.

Husky is a plugin that makes git hook configuration a bit more straightforward.

The usual git commit, push, etc. commands won't change. They'll trigger a git hook configured by husky.

from tres.

alvarosabu avatar alvarosabu commented on June 22, 2024

Sounds good, I'm planning to refactor @tresjs/eslint-config to extend https://github.com/antfu/eslint-config flat config and using ESLint Stylistic. I did it with my personal eslint config last week to test it and it works fine.

from tres.

damienmontastier avatar damienmontastier commented on June 22, 2024

Hey @alvarosabu. Wouldn't using ESLint Vue or extending it be more viable for Vue's "good practices"?

from tres.

alvarosabu avatar alvarosabu commented on June 22, 2024

Hi, @andretchen0 sounds good, so the pre-commit of husky will lint fix then?

from tres.

andretchen0 avatar andretchen0 commented on June 22, 2024

Made a PR on Cientos:

https://github.com/Tresjs/cientos/compare/chore/git-pre-push-lint?expand=1

from tres.

andretchen0 avatar andretchen0 commented on June 22, 2024

Closing here on TresJS as there's now a PR on Cientos. Continuing the discussion there.

from tres.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.