Git Product home page Git Product logo

Comments (6)

edmundmiller avatar edmundmiller commented on July 28, 2024

The comments are breaking this

/*
 * Tidy up and join elements of a list to return a path string
 */

After running eclint fix on everything it still throws errors about invalid indent size: 1, expected: 0 on the block comments.

from modules.

grst avatar grst commented on July 28, 2024

Maybe this helps:
https://github.com/jedmao/eclint#support-for-doc-comments

from modules.

edmundmiller avatar edmundmiller commented on July 28, 2024

@grst Good catch!

Per jednano/eclint#226, eclint is no longer maintained.

https://github.com/editorconfig-checker/editorconfig-checker.javascript#readme is however, and it works with the comment blocks out of the box. PR incoming.

Something cool might be making a prettier plugin hooked up to the nf-core lint

from modules.

grst avatar grst commented on July 28, 2024

from modules.

drpatelh avatar drpatelh commented on July 28, 2024

Thanks guys! Those comments can be changed to support default options in editor linting tools by the way. Don't really use these normally so opinion neutral as to which one we go for. Ideally, something that has longevity.

from modules.

edmundmiller avatar edmundmiller commented on July 28, 2024

@grst I definitely prefer prettier myself. I was just getting at using it for all the linting would be cool (md, and yaml) and having a nextflow plugin! I was also hoping to avoid adding a .prettierrc to the project though, because I don't think the conversation has been had to possibly move yaml or md over. I don't think we should bother with it unless a nextflow-plugin is created. I'll look into it in a few weeks.

As I thought I can't find a way to just run editorconfig on files that don't have a parser with prettier.

from modules.

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.