Giter Club home page Giter Club logo

Comments (7)

martinheidegger avatar martinheidegger commented on May 17, 2024 3

The readme should contain example's linted in the same way as the code is linted in the rest of the project. I think that is a reasonable assumption.

from standard-readme.

hackergrrl avatar hackergrrl commented on May 17, 2024

What if the user could provide the name of a linter program? Opt-in might be nice: perhaps look for a property named "lint" under "scripts" and run that?

from standard-readme.

tunnckoCore avatar tunnckoCore commented on May 17, 2024

Vote for suggestion. It not make sense to be requirement.

What if the user could provide the name of a linter program?

It is not standard-readme job, and it should not care.

from standard-readme.

RichardLitt avatar RichardLitt commented on May 17, 2024

We don't have any optional provisions for users, at the moment; there's no config for standard-readme, basically. So I'm not sure your suggestion works well, @noffle.

Suggestion makes the most sense, for me. But it is partially standard-readme's job; the code snippets are part of the README. What I don't want is to enforce standard in the code-base, though.

from standard-readme.

hackergrrl avatar hackergrrl commented on May 17, 2024

One trick might be to opt-in by embedding an HTML comment hint into your markdown. Something like:

<!--
lint: standard
-->
```js
var foo = require('foo')

console.log(foo(14))
```

This will prevent the hints from showing up in the rendered markdown, but make it easy to perform a pre-processing step in standard-readme that runs the program standard with the following code snippet on stdin. (This'd make a nice little stand-alone UNIXy module!)

from standard-readme.

tunnckoCore avatar tunnckoCore commented on May 17, 2024

Still don't make sense. It's not readme job. Exactly because there's already a tool for such thing, it's not make sense to couple tools - SoC for the win. :) JUst suggestion is enough and users simple will run it.

from standard-readme.

RichardLitt avatar RichardLitt commented on May 17, 2024

I am going to keep this language agnostic. I used @martinheidegger's suggestion, added it as a requirement.

from standard-readme.

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.