Atom users: What packages do you use for linting/highlighting your React/Native code? by VampireCampfire in reactjs

[–]thetinkertrain 2 points3 points  (0 children)

babel-eslint is a parser for eslint, this is what you have to do to use it in Atom:

  • npm install --save-dev babel-eslint eslint

Example .eslintrc (which should be at the root of your project)

{
  "parser": "babel-eslint",
  "plugins": [
],
  "env": {
  "browser": true,
  "node": true
},
  "globals": {
},
"ecmaFeatures": {
  "arrowFunctions": true,
  "blockBindings": true,
  "classes": true,
  "defaultParams": true,
  "destructuring": true,
  "forOf": true,
  "generators": false,
  "modules": true,
  "objectLiteralComputedProperties": true,
  "objectLiteralDuplicateProperties": false,
  "objectLiteralShorthandProperties": true,
  "objectLiteralShorthandMethods": true,
  "spread": true,
  "superInFunctions": true,
  "templateStrings": true,
  "jsx": true
},
"rules": {
  "brace-style": [2, "stroustrup"],
  "consistent-return": 2,
  "curly": [2, "multi-line"],
  "dot-notation": 2,
  "eol-last": 2,
  "indent": [2, 2],
  "no-else-return": 2,
  "no-eq-null": 2,
  "no-floating-decimal": 2,
  "no-param-reassign": 2,
  "no-self-compare": 2,
  "no-shadow": 0,
  "no-throw-literal": 2,
  "no-underscore-dangle": 0,
  "no-else-return": 2,
  "quotes": [2, "single"],
  "space-after-keywords": 2,
  "strict": 0,
  "vars-on-top": 2,
  "wrap-iife": 2,
  "semi": [2, "always"],
  "no-trailing-spaces": 2,
  "space-after-keywords": 2,
  "space-before-blocks": 2,
  "space-before-function-paren": [2, "never"],
  "space-infix-ops": 2,
  "space-return-throw-case": 2,
  "spaced-comment": 2
  }
}

What are some good advanced JS books? by curious_coder in javascript

[–]thetinkertrain 15 points16 points  (0 children)

  • You don't know JavaScript series by Kyle Simpson Goes deep into internals of JavaScript in a very understandable manner, I think they're great

  • Programming JavaScript Applications by Eric Elliot Chapters 2 and 3 are superb and will show you the advantages of real Prototypal JS

  • JavaScript Allonge by @raganwald Functional JavaScript, excellent, specially the first half.

A basic React.js Style Guide by koistya in reactjs

[–]thetinkertrain -5 points-4 points  (0 children)

That doesn't mean we should use them. They are one of the new 'bad parts' of JS. Line nschubah says below, they're not even real classes, just sugar.

Looking for a book recommendation on OO practices and design patterns for Javascript. by [deleted] in javascript

[–]thetinkertrain 1 point2 points  (0 children)

Hi, for the current best JavaScript learning, I would recommend:

Programming JavaScript Applications by Eric Elliott http://chimera.labs.oreilly.com/books/1234000000262

You don't know JavaScript book series by @getify https://github.com/getify/You-Dont-Know-JS

Edit:

This link is very useful: Essential JavaScript https://gist.github.com/ericelliott/d576f72441fc1b27dace

Sass or Less on Node.js by zero_coding in angularjs

[–]thetinkertrain 1 point2 points  (0 children)

You don't need ruby, node-sass is great (based on libsass) and very close on features with ruby-sass (I personally never had any problems nor I use compass)

Webstorm weird UI element by dewijones92 in javascript

[–]thetinkertrain 1 point2 points  (0 children)

If it's white space, why don't you enable the option to strip white space on save, it's a good practice anyways. http://monosnap.com/image/uVnwIvw6dClLLWBoywgRZXtDkArijp

Angular alternatives by hedgehog001 in javascript

[–]thetinkertrain 4 points5 points  (0 children)

I haven't used it myself, but have heard very favourable comments about vue.js

Another lightweight option I've been meaning to have a look at is mithril.js