Comments (8)
The reason you are seeing so many of those problems all of a sudden is that I recently added the https://www.npmjs.com/package/sails-hook-eslint by @Globegitter. I haven't yet had a chance to fix them, if you have the time before me, please do!
from how-to-sane.
Please have in mind that, the server/api/blueprint folder is imported into this project from https://github.com/mphasize/sails-generate-ember-blueprints.
So it would make more sense to fix the linting errors as a pull request into that project and re-import, otherwise if I ever have to update the blueprint to a newer version, it would break again...
There is also the issue that sails-generate-ember-blueprints has since upgraded to a new version which I'm not sure if @mphasize has released NPM.
@mphasize can you please advise what you think about this linting and the new version of the blueprint?
EDIT I just looked and it looks like @mphasize released the new blueprints 2 weeks ago. @feitian124 we have to upgrade to them, linting the current ones in how-to-sane
is pointless
from how-to-sane.
It seems to me that any code which is imported into the project from blueprints should be excluded from linting. The reason is that everyone has their own coding style and standards, and there's no way that sails-generate-ember-blueprints can conform to all of them. It would be better to either ignore the generated code or change all errors to warnings for those files, in case someone wants to take the time to go back through and change the generated code to the style in their project.
from how-to-sane.
@IanVS I agree. This does pose the question of how we treat the blueprint folder, which is initially generated by another project, but is then likely added on to by the dev...
from how-to-sane.
@mgenev you can easily exclude folders via a .eslintignore
in the server
folder. In any case, I PRed mphasize/sails-generate-ember-blueprints#32 since these are more or less 'official' sane blueprints it would be nice to have them in the same style.
from how-to-sane.
Ok, I'll do that for the blueprints right now, they do include a little bit of my own code, but it's small and experimental so i'll let it slide.
from how-to-sane.
hi guys, seems there are upstream problems. if so i think we'd better add them to .eslintignore and waiting their updates, or contribute there.
from how-to-sane.
I did. Ignoring blueprints now
from how-to-sane.
Related Issues (20)
- test omission of fields
- fix refresh token problem
- abstract a pattern for creating new records with current user as related user
- improve modals
- add liquid fire
- Code did not pass lint rules HOT 2
- Social Authentication? HOT 1
- Security vulnerability in jsonwebtoken
- switch to huafu's google map addon
- create store for vendor services
- improve events
- add sharing
- Suggested packages "imagemagic" and "graphicmagic" actually called "imagemagick" and "graphicmagick". HOT 1
- Suggested package "graphicmagick" actually called "graphicsmagick". HOT 1
- Lots of errors on sane up and browsing localhost:4200 gives blank page HOT 5
- Please re-open #88 HOT 1
- User data not sent in register request HOT 2
- How do you run npm install to properly get bcrypt? HOT 4
- Question about best practices for sane-stack repo structure HOT 3
- Cannot find tutorials
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 how-to-sane.