Code Monkey home page Code Monkey logo

Comments (6)

xAlien95 avatar xAlien95 commented on May 27, 2024

Does anyone foresee any issues with one solution over the other? If not, I'll probably go with the proposed change.

The current lint script gives an error with variable and function names not in camelCase:

ERROR: 19:7  variable-name  variable name must be in lowerCamelCase or UPPER_CASE

If new actions with names on the line of "URL From Text" will be added to Shortcuts, the proposed change won't work without modifying the linter.

It has also to be noted that in standard JS, locally upper-cased strings aren't always respected for acronyms. As an example: we have XMLHttpRequest instead of XMLHTTPRequest.

from shortcuts-js.

xAlien95 avatar xAlien95 commented on May 27, 2024

@joshfarrant, since #47 has been merged, now all the action function names can be replaced with the proposed ones. In that pull request I added PascalCased variable name validation in tslint.json (that was required for the private Variable class).

from shortcuts-js.

joshfarrant avatar joshfarrant commented on May 27, 2024

@xAlien95 I spotted that in your PR and was wondering if it would do the trick. I'm happy with that then, I'll go through and make the adjustments now.

from shortcuts-js.

joshfarrant avatar joshfarrant commented on May 27, 2024

The naming of showInItunesStore still makes me kind of sad to look at. Would showInITunesStore be better? And if so should runJavascriptOnWebPage be runJavaScriptOnWebPage?

from shortcuts-js.

xAlien95 avatar xAlien95 commented on May 27, 2024

The naming of showInItunesStore still makes me kind of sad to look at. Would showInITunesStore be better?

showInITunesStore looks better.

And if so should runJavascriptOnWebPage be runJavaScriptOnWebPage?

The original shown name is "Run JavaScript on Web Page" if I recall correctly, so runJavaScriptOnWebPage should be the right one.

from shortcuts-js.

joshfarrant avatar joshfarrant commented on May 27, 2024

Cool, I’ll adjust those too then.

from shortcuts-js.

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.