wp-rest-theme icon indicating copy to clipboard operation
wp-rest-theme copied to clipboard

Some beautiness

Open Piterden opened this issue 8 years ago • 4 comments

Added some ES6 features and formatted.

Piterden avatar Feb 23 '17 08:02 Piterden

You are fast like the meteor. With your help needs to be written a new reactive framework.

  1. Sorry, could you give me the reference, where from did you know, about it is a bad habit to not use semicolons in the EcmaScript 6 environment. I'd also asked in Vue chat about it, and there I heard the opposite thing, that using of semicolons is the Mauveton.

  2. You know, you should never critic someone about his code style, but should critic him about the absence of complexity in his code. Because it's not matter really, using you single quotes, or double, but if you use double, please use double every time, at least in the limit of one application.

PS Now I use spaces after functions definitions.

Piterden avatar Jul 07 '17 03:07 Piterden

If you are interesting

root: true
extends: default
env:
  es6: true
  browser: true
parserOptions:
  ecmaVersion: 6
  allowImportExportEverywhere: false
globals:
  $: true
  google: true
  window: true
  require: true
  CSRF_TOKEN: true
rules:
  indent:
    - 1
    - 4
  quotes:
    - 1
    - single
  linebreak-style:
    - 2
    - unix
  semi:
    - 1
    - always # - never
  no-undef:
    - 2
  space-before-function-paren:
    - 2
  array-bracket-spacing:
    - 0
  no-var:
    - 0
  one-var:
    - 1
    - never # - always
  prefer-const:
    - 0
  comma-dangle:
    - 2
    - only-multiline
  no-extra-parens:
    - 0

Piterden avatar Jul 07 '17 04:07 Piterden

Dear Piterden: I am very sorry, if my comment came over in a harsh way! Please forgive me!!! I apologise profoundly!!!

I will check up on the semicolon issue. The source I have is somewhere at Angular, where it comes up in the discourse of minification. If I find the link again, I will post it. However, it is very likely that there are changes in ES6, which I missed... so please ignore my statement!

Thanks for your posts! I keep playing around with them and will come back!

rowild avatar Jul 07 '17 07:07 rowild

Thank you! Peace! no_wp ))

Piterden avatar Jul 07 '17 12:07 Piterden