Comments (5)
That would probably mean including jshint in the build itself, which would be a major addition for what seems like a smaller number of use cases.
from snowman.
To clarify- I was meaning before eval, not before eval().
Linting is similar to syntax highlighting in the dev cycle.
Jshint is javascript's linting tool.
from snowman.
@Gpeschke Strict enforcement of ESLint "Standard" is now part of the GitHub action workflow.
from snowman.
Hmmm... still seems like we are talking bout separate things.
I'm talking about within twine, when you are developing a story, it'd be nice to be able to lint.
from snowman.
@Gpeschke: We were originally talking about the same thing, I think. For you to be able to lint in the editor, either Twine 2 would have to add it (which it probably won't) or Snowman would have to carry and maintain the functionality (which is a huge hassle for little gain).
I'd like to eventually be able to add #20 at some point, but linting seems a long way off unless Twine 2 adds it for editing Story JavaScript.
If you want linting in your code, I'd recommend using something like TweeGo or my own Extwee and working on JavaScript outside of the browser or application. Linting could easily be part of the compiling process through ESLint or other tools.
from snowman.
Related Issues (20)
- Add support for story and temporary variables HOT 1
- `s` Is Not Available in All Contexts HOT 2
- Paragraph tags misplaced for first paragraph in Windows HOT 5
- History navigation is broken after one use HOT 3
- Persistent player statistics HOT 1
- How to open passage from script? HOT 2
- renderAttrs breaks custom elements HOT 1
- Global callbacks on snowman standard events don't work in 2.2.0 HOT 6
- [Proposal] Add support to onclick custom code in links HOT 2
- Dist js file in title case HOT 1
- A lot of `index.html` files in `test/` subfolders after `npm run test` HOT 2
- Story `start` event is triggered after first passage is shown, not before HOT 1
- Error if global javascript contains `<% %>` in comments HOT 1
- Save issues in Snowman 3
- Error if global javascript contains </script> in string or comments
- Documentation as a zip HOT 2
- Fix Jest-Puppeteer testing change HOT 1
- Update Snowman 3.0 Cookbook changes
- Class/ES6 Problem with Snowman 2 HOT 1
- HTML shorthands breaking custom elements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowman.