wp-rest-theme
wp-rest-theme copied to clipboard
Some beautiness
Added some ES6 features and formatted.
You are fast like the meteor. With your help needs to be written a new reactive framework.
-
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.
-
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.
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
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!
Thank you!
Peace!
))